pkg_src.h 876 B

123456789101112131415161718192021222324252627282930313233
  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. int gzip;
  20. } pkg_src_t;
  21. int pkg_src_init(pkg_src_t * src, const char *name, const char *base_url,
  22. int gzip);
  23. void pkg_src_deinit(pkg_src_t * src);
  24. #endif