From 3bc3ad24a2c089b4ee80fc1765fab3d2af378d00 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 26 Aug 2003 21:43:31 +0000 Subject: Initial commit git-svn-id: file:///home/lennart/svn/public/syrep/trunk@2 07ea20a6-d2c5-0310-9e02-9ef735347d72 --- src/diff.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/diff.h (limited to 'src/diff.h') 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 -- cgit