Wrap tune2fs.h to be C++ compatible

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian
Tao Bao 2016-03-14 16:35:54 -04:00 committed by Theodore Ts'o
parent c733f9987e
commit 4ccb2366d8
1 changed files with 13 additions and 0 deletions

View File

@ -7,7 +7,20 @@
* %End-Header%
*/
#ifndef _TUNE2FS_H_
#define _TUNE2FS_H_
#ifdef __cplusplus
extern "C" {
#endif
/* Takes exactly the same args as the tune2fs exectuable.
* Is the entrypoint for libtune2fs.
*/
int tune2fs_main(int argc, char **argv);
#ifdef __cplusplus
}
#endif
#endif