checkindeb.h 1.55 KB
Newer Older
Bernhard Link's avatar
Bernhard Link committed
1 2
#ifndef REPREPRO_CHECKINDEB_H
#define REPREPRO_CHECKINDEB_H
3

Bernhard Link's avatar
Bernhard Link committed
4
#ifndef REPREPRO_ERROR_H
5 6 7
#include "error.h"
#warning "What's hapening here?"
#endif
Bernhard Link's avatar
Bernhard Link committed
8
#ifndef REPREPRO_DISTRIBUTION_H
9 10
#include "distribution.h"
#endif
11 12
#ifndef REPREPRO_DATABASE_H
#include "database.h"
13
#endif
14

15 16 17
/* insert the given .deb into the mirror in <component> in the <distribution>
 * putting things with architecture of "all" into <architectures> (and also
 * causing error, if it is not one of them otherwise)
18 19
 * if overwrite is not NULL, it will be search for fields to reset for this
 * package. (forcesection and forcepriority have higher priority than the
20
 * information there), */
21
retvalue deb_add(component_t, const struct atomlist * /*forcearchitectures*/, /*@null@*/const char * /*forcesection*/, /*@null@*/const char * /*forcepriority*/, packagetype_t, struct distribution *, const char * /*debfilename*/, int /*delete*/, /*@null@*/trackingdb);
22 23 24

/* in two steps */
struct debpackage;
25
retvalue deb_addprepared(const struct debpackage *, const struct atomlist * /*forcearchitectures*/, packagetype_t, struct distribution *, struct trackingdata *);
26 27
retvalue deb_prepare(/*@out@*/struct debpackage **, component_t, architecture_t /*forcearchitectures*/, const char * /*forcesection*/, const char * /*forcepriority*/, packagetype_t, struct distribution *, const char * /*debfilename*/, const char * const /*filekey*/, const struct checksums *, const struct strlist * /*allowed_binaries*/, const char * /*expectedsourcename*/, const char * /*expectedsourceversion*/);
void deb_free(/*@only@*/struct debpackage *);
28
#endif