opkg: include the current url being downloaded in the progress callback
[oweals/opkg-lede.git] / libopkg.h
index 429e3a189d7246a1e91fd37a3895fa0405f5d033..274e37b6fd4c837f3e6e71a6dbc7362d3795a12b 100644 (file)
--- a/libopkg.h
+++ b/libopkg.h
@@ -36,7 +36,7 @@ typedef int (*opkg_list_callback)(char *name, char *desc, char *version,
 typedef int (*opkg_status_callback)(char *name, int istatus, char *desc,
        void *userdata);
 typedef char* (*opkg_response_callback)(char *question);
-typedef void (*opkg_download_progress_callback)(int percent);
+typedef void (*opkg_download_progress_callback)(int percent, char *url);
 
 extern int opkg_op(int argc, char *argv[]); /* opkglib.c */
 extern int opkg_init (opkg_message_callback mcall,