updates.h 1.15 KB
Newer Older
1 2 3 4 5 6 7 8
#ifndef __MIRRORER_UPDATES_H
#define __MIRRORER_UPDATES_H

#ifndef __MIRRORER_ERROR_H
#include "error.h"
#warning "What's hapening here?"
#endif

9 10 11
#include "release.h"
#include "strlist.h"

12 13 14
struct update_pattern;
struct update_origin;
struct update_target;
15

16
retvalue updates_getpatterns(const char *confdir,struct update_pattern **patterns,int force);
17

18 19 20
void updates_freepatterns(struct update_pattern *p);
void updates_freeorigins(struct update_origin *o);
void updates_freetargets(struct update_target *t);
21

22
retvalue updates_getindices(const char *listdir,const struct update_pattern *patterns,struct distribution *distributions);
23

24 25
// struct aptmethodrun;
// struct downloadcache;
26

27 28 29
// retvalue updates_prepare(struct aptmethodrun *run,struct distribution *distribution);
// retvalue updates_queuelists(struct aptmethodrun *run,struct distribution *distribution,int force);
// retvalue updates_readindices(const char *dbdir,struct downloadcache *cache,filesdb filesdb,struct distribution *distribution,int force);
30 31

retvalue updates_update(const char *dbdir,const char *listdir,const char *methoddir,filesdb filesdb,DB *refsdb,struct distribution *distributions,int force);
32

33
#endif