Btrfs-progs: record errno for ioctl DEFRAG_RANGE
[platform/upstream/btrfs-progs.git] / send-stream.h
index b69b7f1..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);
@@ -49,10 +53,15 @@ struct btrfs_send_ops {
        int (*utimes)(const char *path, struct timespec *at,
                      struct timespec *mt, struct timespec *ct,
                      void *user);
+       int (*update_extent)(const char *path, u64 offset, u64 len, void *user);
 };
 
 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_ */