Subversion Repositories Kolibri OS

Rev

Rev 5725 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #ifndef __COLLECTION_H__
  2.  
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. #include "list.h"
  8.  
  9. typedef struct
  10. {
  11.     list_t  groups;
  12.     char   *issue;
  13. }collection_t;
  14.  
  15. typedef struct
  16. {
  17.     list_t list;
  18.     list_t packages;
  19.     char   *name;
  20. }pkg_group_t;
  21.  
  22. typedef struct package
  23. {
  24.     list_t list;
  25.     int    id;
  26.     char   *name;
  27.     char   *version;
  28.     char   *filename;
  29.     char   *description;
  30. }package_t;
  31.  
  32. collection_t* load_collection_file(const char *name);
  33. collection_t* load_collection_buffer(const char *buffer);
  34.  
  35. int build_install_list(list_t *list, collection_t *collection);
  36. int build_download_list(list_t *download, list_t *src);
  37. char *make_cache_path(const char *path);
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.  
  43. #endif /* __COLLECTION_H__ */
  44.