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.

28 lines
671 B

#ifdef DODEBUG
#include <assert.h>
#define ASSERT(x) assert(x)
#define SYSTEM(x) do_system(x)
#define DPRINTF(fmt,args...) fprintf(stderr, fmt, ##args)
#else
#define ASSERT(x) /* nothing */
#define SYSTEM(x) system(x)
#define DPRINTF(fmt,args...) /* nothing */
#endif
#define BUFSIZE 4096
#define DPKGDIR "/var/lib/dpkg/"
#define STATUSFILE DPKGDIR "status"
#define MAIN_MENU "debian-installer/main-menu"
#define DPKG_CONFIGURE_COMMAND "/usr/bin/udpkg --configure"
#include <debian-installer.h>
/* status.c */
struct package_t *status_read(void);
/* tree.c */
struct package_t *tree_find(char *);
struct package_t *tree_add(struct package_t *);
void tree_clear();