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 /send-utils.h | |
parent | 7d4dc89f96644c6f1b7efb5a3759bbee58f5b27e (diff) | |
download | btrfs-progs-0c38ff3ca4f481bbae74283fd00a56fbd938e4b2.tar.gz |
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 'send-utils.h')
-rw-r--r-- | send-utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/send-utils.h b/send-utils.h index da407eb..fea576c 100644 --- a/send-utils.h +++ b/send-utils.h @@ -21,6 +21,10 @@ #include "ctree.h" #include "rbtree.h" +#ifdef __cplusplus +extern "C" { +#endif + enum subvol_search_type { subvol_search_by_root_id, subvol_search_by_uuid, @@ -65,5 +69,8 @@ void subvol_uuid_search_add(struct subvol_uuid_search *s, char *path_cat(const char *p1, const char *p2); char *path_cat3(const char *p1, const char *p2, const char *p3); +#ifdef __cplusplus +} +#endif #endif /* SEND_UTILS_H_ */ |