summaryrefslogtreecommitdiffstats
path: root/diffindex.h
diff options
context:
space:
mode:
Diffstat (limited to 'diffindex.h')
-rw-r--r--diffindex.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/diffindex.h b/diffindex.h
new file mode 100644
index 0000000..db78f6f
--- /dev/null
+++ b/diffindex.h
@@ -0,0 +1,19 @@
+#ifndef REPREPRO_DIFFINDEX_H
+#define REPREPRO_DIFFINDEX_H
+
+struct diffindex {
+ struct checksums *destination;
+ int patchcount;
+ struct diffindex_patch {
+ struct checksums *frompackages;
+ char *name;
+ struct checksums *checksums;
+ /* safe-guard against cycles */
+ bool done;
+ } patches[];
+};
+
+void diffindex_free(/*@only@*/struct diffindex *);
+retvalue diffindex_read(const char *, /*@out@*/struct diffindex **);
+
+#endif