#ifndef QPKG_H #define QPKG_H enum relop { rel_eq, rel_ge, rel_lt, }; struct pkg; struct ref { struct id *pkg; struct id *version; enum relop relop; /* undefined if version == NULL */ struct ref *next; }; struct pkg { struct id *id; struct id *version; struct ref *conflicts; struct ref *depends; const char *filename; int installed; struct pkg *more; int mark; }; struct tree *packages; struct tree *versions; #endif /* !QPKG_H */