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