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 /filterlist.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 'filterlist.h')
-rw-r--r-- | filterlist.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/filterlist.h b/filterlist.h new file mode 100644 index 0000000..3120db4 --- /dev/null +++ b/filterlist.h @@ -0,0 +1,41 @@ +#ifndef REPREPRO_FILTERLIST_H +#define REPREPRO_FILTERLIST_H + +enum filterlisttype { + /* must be 0, so it is the default, when there is no list */ + flt_install = 0, + flt_unchanged, /* special value used by the cmdline lists */ + flt_auto_hold, /* special value used by the cmdline lists */ + flt_purge, + flt_warning, + flt_deinstall, + flt_hold, + flt_supersede, + flt_upgradeonly, + flt_error +}; + +struct filterlistfile; + +struct filterlist { + size_t count; + struct filterlistfile **files; + + /* to be used when not found */ + enum filterlisttype defaulttype; + /* true if this is loaded from config */ + bool set; +}; + +struct configiterator; +retvalue filterlist_load(/*@out@*/struct filterlist *, struct configiterator *); + +void filterlist_release(struct filterlist *list); + +enum filterlisttype filterlist_find(const char *name, const char *version, const struct filterlist *); + +extern struct filterlist cmdline_bin_filter, cmdline_src_filter; +retvalue filterlist_cmdline_add_pkg(bool, const char *); +retvalue filterlist_cmdline_add_file(bool, const char *); + +#endif |