Root/qpkg/qpkg.h

Source at commit a9f12d56661a8e6def5a2b32519c3efd55e38d31 created 8 years 11 months ago.
By Werner Almesberger, qpkg: converted ID comparison from "struct id *" to "void *"
1#ifndef QPKG_H
2#define QPKG_H
3
4enum relop {
5    rel_eq,
6    rel_ge,
7    rel_lt,
8};
9
10struct pkg;
11
12struct ref {
13    struct id *pkg;
14    struct id *version;
15    enum relop relop; /* undefined if version == NULL */
16    struct ref *next;
17};
18
19struct pkg {
20    struct id *id;
21    struct id *version;
22    struct ref *conflicts;
23    struct ref *depends;
24    const char *filename;
25    int installed;
26    struct pkg *more;
27    int mark;
28};
29
30
31struct tree *packages;
32struct tree *versions;
33
34#endif /* !QPKG_H */
35

Archive Download this file

Branches:
master



interactive