From 0c38ff3ca4f481bbae74283fd00a56fbd938e4b2 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Wed, 30 Jan 2013 14:50:26 -0800 Subject: 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 Signed-off-by: Mark Fasheh --- send-utils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'send-utils.h') diff --git a/send-utils.h b/send-utils.h index da407eba..fea576c0 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_ */ -- cgit v1.2.3