summaryrefslogtreecommitdiff
path: root/send-stream.h
diff options
context:
space:
mode:
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_ */