Btrfs-progs: record errno for ioctl DEFRAG_RANGE
[platform/upstream/btrfs-progs.git] / send-stream.h
index 9a17e32..17bc669 100644 (file)
 #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);
@@ -53,7 +57,11 @@ struct btrfs_send_ops {
 };
 
 int btrfs_read_and_process_send_stream(int fd,
-                                      struct btrfs_send_ops *ops, void *user);
+                                      struct btrfs_send_ops *ops, void *user,
+                                      int honor_end_cmd);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* SEND_STREAM_H_ */