trackingt.h 675 Bytes
Newer Older
1 2 3
#ifndef REPREPRO_TRACKINGT_H
#define REPREPRO_TRACKINGT_H

4
enum filetype { ft_ALL_BINARY='a',
5 6
		ft_ARCH_BINARY='b',
		ft_CHANGES = 'c',
7
		ft_LOG='l',
8 9 10
		ft_SOURCE='s',
		ft_XTRA_DATA='x'};

11 12 13 14 15
struct trackedpackage {
	char *sourcename;
	char *sourceversion;
	struct strlist filekeys;
	int *refcounts;
16 17
	enum filetype *filetypes;
	struct {
18 19
		bool isnew:1;
		bool deleted:1;
20
	} flags;
21 22 23 24 25 26 27 28 29 30 31 32 33
};
typedef struct s_tracking *trackingdb;

struct trackingdata {
	/*@temp@*/trackingdb tracks;
	struct trackedpackage *pkg;
	/*@null@*/ struct trackingdata_remember {
		/*@null@*/struct trackingdata_remember *next;
		char *name;
		char *version;
	} *remembered;
};
#endif /*REPREPRO_TRACKINGT_H*/