summaryrefslogtreecommitdiff
path: root/lib/dedupe-range.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dedupe-range.h')
-rw-r--r--lib/dedupe-range.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/dedupe-range.h b/lib/dedupe-range.h
new file mode 100644
index 0000000..028fe08
--- /dev/null
+++ b/lib/dedupe-range.h
@@ -0,0 +1,10 @@
+#include <stdint.h>
+
+struct range {
+ char *filename;
+ int flags; /* to pass to open(2) */
+ uint64_t offset;
+ uint64_t length;
+};
+
+void dedupe_range(struct range src, struct range *dsts);