diff options
author | Arvin Schnell <aschnell@suse.de> | 2013-01-30 14:50:26 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-02-19 11:15:30 +0100 |
commit | 0c38ff3ca4f481bbae74283fd00a56fbd938e4b2 (patch) | |
tree | 0cfb6ca9cf09a104237203bfba74eb52dc47f51c /ioctl.h | |
parent | 7d4dc89f96644c6f1b7efb5a3759bbee58f5b27e (diff) |
btrfs-progs: make libbtrfs usable from C++
Please find attached a patch to make the new libbtrfs usable from
C++ (at least for the parts snapper will likely need).
Signed-off-by: Arvin Schnell <aschnell@suse.de>
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Diffstat (limited to 'ioctl.h')
-rw-r--r-- | ioctl.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -22,6 +22,10 @@ #include <linux/ioctl.h> #include <time.h> +#ifdef __cplusplus +extern "C" { +#endif + #define BTRFS_IOCTL_MAGIC 0x94 #define BTRFS_VOL_NAME_MAX 255 @@ -521,4 +525,8 @@ struct btrfs_ioctl_clone_range_args { #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ struct btrfs_ioctl_dev_replace_args) +#ifdef __cplusplus +} +#endif + #endif |