trepo.h - repo - list/download/sync packs with remote repositories
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
trepo.h (582B)
---
1 #include <limits.h>
2 #include <sys/queue.h>
3
4 #define DEFLISTFILE ".list"
5 #define DEFLOCALREPO "/var/cache/repo"
6 #define DEFCFGFILE "/etc/repo.conf"
7
8 struct pack {
9 char name[LINE_MAX];
10 char version[LINE_MAX];
11 char url[PATH_MAX];
12 TAILQ_ENTRY(pack) entries;
13 };
14 TAILQ_HEAD(packs, pack);
15
16 struct repo {
17 char *url;
18 TAILQ_ENTRY(repo) entries;
19 };
20 TAILQ_HEAD(repos, repo);
21
22 struct pack *addpack(struct packs *, char *, char *, char *);
23 struct repo *addrepo(struct repos *, char *);
24 int repolist(struct packs *, char *);
25 int parseconf(struct repos *, char *, int *, const char *);