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.
 
 
 

32 lines
797 B

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