X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libopkg%2Fopkg_download.h;h=fd260bc35aa97a2bde34c58eef2e349b22f568ea;hb=ebdfc128a7bc527c1c960eef6105b1ff91e48bdc;hp=00582871c124db4cf0576f5af207f34f50c680fe;hpb=5c709efb3d63562930b181a342a1bc258bccee83;p=oweals%2Fopkg-lede.git diff --git a/libopkg/opkg_download.h b/libopkg/opkg_download.h index 0058287..fd260bc 100644 --- a/libopkg/opkg_download.h +++ b/libopkg/opkg_download.h @@ -18,22 +18,15 @@ #ifndef OPKG_DOWNLOAD_H #define OPKG_DOWNLOAD_H -#include "config.h" #include "pkg.h" -typedef void (*opkg_download_progress_callback)(int percent, char *url); -typedef int (*curl_progress_func)(void *data, double t, double d, double ultotal, double ulnow); - - -int opkg_download(const char *src, const char *dest_file_name, curl_progress_func cb, void *data); -int opkg_download_pkg(pkg_t *pkg, const char *dir); +int opkg_download(const char *src, const char *dest_file_name, + const short hide_error); +int opkg_download_pkg(pkg_t * pkg, const char *dir); /* - * Downloads file from url, installs in package database, return package name. + * Downloads file from url, installs in package database, return package name. */ int opkg_prepare_url_for_install(const char *url, char **namep); -int opkg_verify_file (char *text_file, char *sig_file); -#ifdef HAVE_CURL -void opkg_curl_cleanup(void); -#endif +int opkg_verify_file(char *text_file, char *sig_file); #endif