pkg_extract.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. /* pkg_extract.c - 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_EXTRACT_H
  14. #define PKG_EXTRACT_H
  15. #include "pkg.h"
  16. int pkg_extract_control_file_to_stream(pkg_t * pkg, FILE * stream);
  17. int pkg_extract_control_files_to_dir(pkg_t * pkg, const char *dir);
  18. int pkg_extract_control_files_to_dir_with_prefix(pkg_t * pkg,
  19. const char *dir,
  20. const char *prefix);
  21. int pkg_extract_data_files_to_dir(pkg_t * pkg, const char *dir);
  22. int pkg_extract_data_file_names_to_stream(pkg_t * pkg, FILE * file);
  23. #endif