summaryrefslogtreecommitdiffstats
path: root/aptmethod.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 /aptmethod.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 'aptmethod.h')
-rw-r--r--aptmethod.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/aptmethod.h b/aptmethod.h
new file mode 100644
index 0000000..ab0cf8e
--- /dev/null
+++ b/aptmethod.h
@@ -0,0 +1,27 @@
+#ifndef REPREPRO_APTMETHOD_H
+#define REPREPRO_APTMETHOD_H
+
+#ifndef REPREPRO_DATABASE_H
+#include "database.h"
+#endif
+#ifndef REPREPRO_CHECKSUMS_H
+#include "checksums.h"
+#endif
+
+struct aptmethodrun;
+struct aptmethod;
+
+enum queue_action { qa_abort, qa_got, qa_error };
+
+typedef retvalue queue_callback(enum queue_action, void *, void *, const char * /*uri*/, const char * /*gotfilename*/, const char * /*wantedfilename*/, /*@null@*/const struct checksums *, const char * /*methodname*/);
+
+retvalue aptmethod_initialize_run(/*@out@*/struct aptmethodrun **);
+retvalue aptmethod_newmethod(struct aptmethodrun *, const char * /*uri*/, const char * /*fallbackuri*/, const struct strlist * /*config*/, /*@out@*/struct aptmethod **);
+
+retvalue aptmethod_enqueue(struct aptmethod *, const char * /*origfile*/, /*@only@*/char */*destfile*/, queue_callback *, void *, void *);
+retvalue aptmethod_enqueueindex(struct aptmethod *, const char * /*suite*/, const char * /*origfile*/, const char *, const char * /*destfile*/, const char *, queue_callback *, void *, void *);
+
+retvalue aptmethod_download(struct aptmethodrun *);
+retvalue aptmethod_shutdown(/*@only@*/struct aptmethodrun *);
+
+#endif