1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#ifndef REPREPRO_DATABASE_P_H
#define REPREPRO_DATABASE_P_H
#ifndef REPREPRO_DATABASE_H
#include "database.h"
#endif
struct references;
struct filesdb;
struct database {
/*@null@*/ struct table *checksums, *contents;
/* for the references database: */
/*@null@*/ struct table *references;
/* internal stuff: */
bool locked, verbose;
int dircreationdepth;
bool nopackages, readonly,
packagesdatabaseopen, trackingdatabaseopen;
/*@null@*/ char *version, *lastsupportedversion,
*dbversion, *lastsupporteddbversion;
struct {
bool createnewtables;
} capabilities ;
};
retvalue database_listsubtables(struct database *,const char *,/*@out@*/struct strlist *);
retvalue database_dropsubtable(struct database *, const char *table, const char *subtable);
#endif
|