summaryrefslogtreecommitdiffstats
path: root/src/diff.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-08-26 21:43:31 +0000
committerLennart Poettering <lennart@poettering.net>2003-08-26 21:43:31 +0000
commit3bc3ad24a2c089b4ee80fc1765fab3d2af378d00 (patch)
tree632a002b1c9a507ab49c11875eb373a6642902fb /src/diff.h
parentd4a8a10792c7f9b777487b2d15ab56c737e7e35c (diff)
Initial commit
git-svn-id: file:///home/lennart/svn/public/syrep/trunk@2 07ea20a6-d2c5-0310-9e02-9ef735347d72
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h
new file mode 100644
index 0000000..b4a8295
--- /dev/null
+++ b/src/diff.h
@@ -0,0 +1,18 @@
+#ifndef foodiffhfoo
+#define foodiffhfoo
+
+#include "context.h"
+#include "dbstruct.h"
+
+enum { DIFF_COPY, DIFF_DELETE, DIFF_CONFLICT, DIFF_IGNORE };
+
+struct diff_entry {
+ int action;
+ struct syrep_db_context *repository;
+};
+
+DB* make_diff(struct syrep_db_context *c1, struct syrep_db_context *c2);
+int diff_foreach(DB *ddb, int (*cb)(DB *db, struct syrep_name *name, struct diff_entry *de, void *p), void *p);
+int list_diff(struct syrep_db_context *c1, struct syrep_db_context *c2, DB *ddb);
+
+#endif