summaryrefslogtreecommitdiffstats
path: root/checkindsc.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 /checkindsc.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 'checkindsc.h')
-rw-r--r--checkindsc.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/checkindsc.h b/checkindsc.h
new file mode 100644
index 0000000..cf732ac
--- /dev/null
+++ b/checkindsc.h
@@ -0,0 +1,31 @@
+#ifndef REPREPRO_CHECKINDSC_H
+#define REPREPRO_CHECKINDSC_H
+
+#ifndef REPREPRO_ERROR_H
+#include "error.h"
+#warning "What's hapening here?"
+#endif
+#ifndef REPREPRO_DATABASE_H
+#include "database.h"
+#endif
+#ifndef REPREPRO_DISTRIBUTION_H
+#include "distribution.h"
+#endif
+#ifndef REPREPRO_SOURCES_H
+#include "sources.h"
+#endif
+
+/* insert the given .dsc into the mirror in <component> in the <distribution>
+ * if component is NULL, guess it from the section. */
+retvalue dsc_add(component_t, /*@null@*/const char * /*forcesection*/, /*@null@*/const char * /*forcepriority*/, struct distribution *, const char * /*dscfilename*/, int /*delete*/, /*@null@*/trackingdb);
+
+/* in two steps:
+ * If basename, filekey and directory are != NULL, then they are used instead
+ * of being newly calculated.
+ * (And all files are expected to already be in the pool),
+ * delete should be D_INPLACE then
+ */
+
+retvalue dsc_addprepared(const struct dsc_headers *, component_t, const struct strlist * /*filekeys*/, struct distribution *, /*@null@*/struct trackingdata *);
+
+#endif