pkg_src.h 919 B

12345678910111213141516171819202122232425262728293031323334
  1. /* pkg_src.h - the opkg package management system
  2. Carl D. Worth
  3. Copyright (C) 2001 University of Southern California
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License as
  6. published by the Free Software Foundation; either version 2, or (at
  7. your option) any later version.
  8. This program is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. */
  13. #ifndef PKG_SRC_H
  14. #define PKG_SRC_H
  15. #include "nv_pair.h"
  16. typedef struct {
  17. char *name;
  18. char *value;
  19. char *extra_data;
  20. int gzip;
  21. } pkg_src_t;
  22. int pkg_src_init(pkg_src_t * src, const char *name, const char *base_url,
  23. const char *extra_data, int gzip);
  24. void pkg_src_deinit(pkg_src_t * src);
  25. #endif