-int opkg_download(opkg_conf_t *conf, const char *src, const char *dest_file_name);
-int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir);
+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, const short hide_error);
+int opkg_download_pkg(pkg_t * pkg, const char *dir);