opkg_download.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /* opkg_download.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 OPKG_DOWNLOAD_H
  14. #define OPKG_DOWNLOAD_H
  15. #include "pkg.h"
  16. int opkg_verify_integrity(pkg_t *pkg, const char *filename);
  17. int opkg_download(const char *src, const char *dest_file_name,
  18. const short hide_error);
  19. int opkg_download_pkg(pkg_t * pkg, const char *dir);
  20. /*
  21. * Downloads file from url, installs in package database, return package name.
  22. */
  23. int opkg_prepare_url_for_install(const char *url, char **namep);
  24. int opkg_verify_file(char *text_file, char *sig_file);
  25. #endif