home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1999 February / VPR9902B.ISO / TurboLinux / base / tlcomps.h < prev    next >
C/C++ Source or Header  |  1998-04-24  |  991b  |  48 lines

  1. /* parsecomps.h - header file for new component list format */
  2.  
  3. #define CGROUP_FLAG_INMENU 1
  4. #define CGROUP_FLAG_REQUIRED 2
  5. #define CGROUP_FLAG_WARN 4
  6. #define CGROUP_FLAG_OPTIONAL 8
  7.  
  8. #define DEFAULT_PRIORITY 30000
  9.  
  10. struct _componentGroup {
  11.     struct _componentGroup *next;
  12.     char *name;
  13.     char *installtypes;
  14.     char flags;
  15.     int priority;
  16.     char *helptext;
  17.     int numRequires;
  18.     int numSuggests;
  19.     int numConflicts;
  20.     struct _componentGroup **requires;
  21.     struct _componentGroup **suggests;
  22.     struct _componentGroup **conflicts;
  23. };
  24.  
  25. typedef struct _componentGroup componentGroup;
  26.  
  27. #define ITYPE_FLAG_DOREQUIRED 1
  28. #define ITYPE_FLAG_DOSUGGESTED 2
  29. #define ITYPE_FLAG_SATISFYDEPS 4
  30.  
  31. typedef struct _installType installType;
  32. typedef int (*itypeFunction)(installType *, componentGroup *);
  33.  
  34. struct _installType {
  35.     struct _installType *next;
  36.     char *name;
  37.     componentGroup *compList;
  38.     int size;
  39.     itypeFunction prepareFunction;
  40.     char *helptext;
  41. };
  42.  
  43. struct _helptextTable {
  44.     char *componentname;
  45.     char *helptext;
  46. };
  47.  
  48.