diff options
Diffstat (limited to 'src/diff.h')
-rw-r--r-- | src/diff.h | 18 |
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 |