uploaderslist.h 936 Bytes
Newer Older
1 2 3 4
#ifndef REPREPRO_UPLOADERSLIST_H
#define REPREPRO_UPLOADERSLIST_H


5
struct upload_conditions;
6 7
struct uploaders;

8
enum upload_condition_type { uc_REJECTED = 0, uc_ALWAYS,
9
/*	uc_COMPONENT, */ uc_ARCHITECTURES,
10
	uc_CODENAME,
11
	uc_SOURCENAME, uc_SECTIONS, uc_BINARIES, uc_BYHAND };
12 13
#define uc_ACCEPTED uc_ALWAYS

14
retvalue uploaders_get(/*@out@*/struct uploaders **list, const char *filename);
15
void uploaders_unlock(/*@only@*//*@null@*/struct uploaders *);
16

17 18 19 20 21
struct signatures;
retvalue uploaders_permissions(struct uploaders *, const struct signatures *, /*@out@*/struct upload_conditions **);

/* uc_FAILED means rejected, uc_ACCEPTED means can go in */
enum upload_condition_type uploaders_nextcondition(struct upload_conditions *);
22
/* true means, give more if more to check, false means enough */
23
bool uploaders_verifystring(struct upload_conditions *, const char *);
24
bool uploaders_verifyatom(struct upload_conditions *, atom_t);
25

26
#endif