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-stream.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'send-stream.h') 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_ */ -- cgit v1.2.3