summaryrefslogtreecommitdiffstats
path: root/uploaderslist.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
commit4b8a0f3f3dcf60dac2ce308ea08d413a535af29f (patch)
tree0f09c0ad2a4d0f535d89040a63dc3a866a6606e6 /uploaderslist.h
parentInitial commit. (diff)
downloadreprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.tar.xz
reprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.zip
Adding upstream version 5.4.4.upstream/5.4.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'uploaderslist.h')
-rw-r--r--uploaderslist.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/uploaderslist.h b/uploaderslist.h
new file mode 100644
index 0000000..cd95a7f
--- /dev/null
+++ b/uploaderslist.h
@@ -0,0 +1,26 @@
+#ifndef REPREPRO_UPLOADERSLIST_H
+#define REPREPRO_UPLOADERSLIST_H
+
+
+struct upload_conditions;
+struct uploaders;
+
+enum upload_condition_type { uc_REJECTED = 0, uc_ALWAYS,
+/* uc_COMPONENT, */ uc_ARCHITECTURES,
+ uc_CODENAME,
+ uc_SOURCENAME, uc_SECTIONS, uc_BINARIES, uc_BYHAND };
+#define uc_ACCEPTED uc_ALWAYS
+
+retvalue uploaders_get(/*@out@*/struct uploaders **list, const char *filename);
+void uploaders_unlock(/*@only@*//*@null@*/struct uploaders *);
+
+struct signatures;
+retvalue uploaders_permissions(struct uploaders *, const struct signatures *, /*@out@*/struct upload_conditions **);
+
+/* uc_FAILED means rejected, uc_ACCEPTED means can go in */
+enum upload_condition_type uploaders_nextcondition(struct upload_conditions *);
+/* true means, give more if more to check, false means enough */
+bool uploaders_verifystring(struct upload_conditions *, const char *);
+bool uploaders_verifyatom(struct upload_conditions *, atom_t);
+
+#endif