checkindsc.h 1.03 KB
Newer Older
Bernhard Link's avatar
Bernhard Link committed
1 2
#ifndef REPREPRO_CHECKINDSC_H
#define REPREPRO_CHECKINDSC_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
8 9 10
#ifndef REPREPRO_DATABASE_H
#include "database.h"
#endif
Bernhard Link's avatar
Bernhard Link committed
11
#ifndef REPREPRO_DISTRIBUTION_H
12 13
#include "distribution.h"
#endif
14 15 16
#ifndef REPREPRO_SOURCES_H
#include "sources.h"
#endif
17

18
/* insert the given .dsc into the mirror in <component> in the <distribution>
19
 * if component is NULL, guess it from the section. */
20
retvalue dsc_add(component_t, /*@null@*/const char * /*forcesection*/, /*@null@*/const char * /*forcepriority*/, struct distribution *, const char * /*dscfilename*/, int /*delete*/, /*@null@*/trackingdb);
Bernhard Link's avatar
Bernhard Link committed
21 22

/* in two steps:
23 24
 * If basename, filekey and directory are != NULL, then they are used instead
 * of being newly calculated.
25
 * (And all files are expected to already be in the pool),
Bernhard Link's avatar
Bernhard Link committed
26 27
 * delete should be D_INPLACE then
 */
28

29
retvalue dsc_addprepared(const struct dsc_headers *, component_t, const struct strlist * /*filekeys*/, struct distribution *, /*@null@*/struct trackingdata *);
30

31
#endif