You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
569 B

#define BUFSIZE 4096
#define STATUSFILE "/var/lib/dpkg/status"
#define DEPENDSMAX 64 /* maximum number of depends we can handle */
#define COLOR_WHITE 0
#define COLOR_GRAY 1
#define COLOR_BLACK 2
/* data structures */
struct package_t {
char *package;
char *provides;
int installer_menu_item;
char *description; /* short only */
char color; /* for topo-sort */
char refcount;
struct package_t *requiredfor[DEPENDSMAX];
unsigned short requiredcount;
struct package_t *next;
};
int package_compare(const void *p1, const void *p2);
void *status_read(void);