summaryrefslogtreecommitdiffstats
path: root/src/diff.h
blob: b4a8295085155c57d93dcfb827a95f87b6ce0cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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