summaryrefslogtreecommitdiff
path: root/send-stream.h
diff options
context:
space:
mode:
authorArvin Schnell <aschnell@suse.de>2013-01-30 14:50:26 -0800
committerDavid Sterba <dsterba@suse.cz>2013-02-19 11:15:30 +0100
commit0c38ff3ca4f481bbae74283fd00a56fbd938e4b2 (patch)
tree0cfb6ca9cf09a104237203bfba74eb52dc47f51c /send-stream.h
parent7d4dc89f96644c6f1b7efb5a3759bbee58f5b27e (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 'send-stream.h')
-rw-r--r--send-stream.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/send-stream.h b/send-stream.h
index 9a17e32d..92230187 100644
--- a/send-stream.h
+++ b/send-stream.h
@@ -18,6 +18,10 @@
#ifndef SEND_STREAM_H_
#define SEND_STREAM_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct btrfs_send_ops {
int (*subvol)(const char *path, const u8 *uuid, u64 ctransid,
void *user);
@@ -55,5 +59,8 @@ struct btrfs_send_ops {
int btrfs_read_and_process_send_stream(int fd,
struct btrfs_send_ops *ops, void *user);
+#ifdef __cplusplus
+}
+#endif
#endif /* SEND_STREAM_H_ */