diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:12:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:12:14 +0000 |
commit | 4b8a0f3f3dcf60dac2ce308ea08d413a535af29f (patch) | |
tree | 0f09c0ad2a4d0f535d89040a63dc3a866a6606e6 /trackingt.h | |
parent | Initial commit. (diff) | |
download | reprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.tar.xz reprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.zip |
Adding upstream version 5.4.4.upstream/5.4.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | trackingt.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/trackingt.h b/trackingt.h new file mode 100644 index 0000000..6faf093 --- /dev/null +++ b/trackingt.h @@ -0,0 +1,38 @@ +#ifndef REPREPRO_TRACKINGT_H +#define REPREPRO_TRACKINGT_H + +enum filetype { ft_ALL_BINARY='a', + ft_ARCH_BINARY='b', + ft_CHANGES = 'c', + ft_LOG='l', + ft_BUILDINFO='i', + ft_SOURCE='s', + ft_XTRA_DATA='x'}; + +struct trackedpackage { + char *sourcename; + char *sourceversion; + struct strlist filekeys; + int *refcounts; + enum filetype *filetypes; + struct { + bool isnew; + bool deleted; + } flags; +}; +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; +}; + +struct distribution; +typedef retvalue tracking_foreach_ro_action(struct distribution *, const struct trackedpackage *); +retvalue tracking_foreach_ro(struct distribution *, tracking_foreach_ro_action *); +#endif /*REPREPRO_TRACKINGT_H*/ |