diff options
Diffstat (limited to 'aptmethod.h')
-rw-r--r-- | aptmethod.h | 27 |
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 |