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.
 
 
 

34 lines
835 B

  1. /* $Id: data.h,v 1.3 2000/01/07 22:45:09 joeyh Exp $ */
  2. #ifndef _DATA_H
  3. #define _DATA_H
  4. struct package_t {
  5. char *name;
  6. char *prettyname;
  7. char *shortdesc;
  8. char *longdesc;
  9. int dependscount;
  10. char **depends;
  11. int recommendscount;
  12. char **recommends;
  13. int suggestscount;
  14. char **suggests;
  15. int selected;
  16. };
  17. struct packages_t {
  18. int count;
  19. int maxnamelen;
  20. void *packages;
  21. };
  22. /* Reads in a list of package and package descriptions */
  23. void packages_readlist(struct packages_t *taskpackages, struct packages_t *packages);
  24. /* free memory allocated to store packages */
  25. void packages_free(struct packages_t *taskpackages, struct packages_t *packages);
  26. struct package_t *packages_find(const struct packages_t *packages, const char *name);
  27. struct package_t **packages_enumerate(const struct packages_t *packages);
  28. #endif