From 079a631d12f3d6ae6f33aef318a51799ea78027c Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:14:31 -0500 Subject: opkg: add extra data to libopkg progress callbacks git-svn-id: http://opkg.googlecode.com/svn/trunk@97 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'tests') diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c index fe1cefd..8c64b5e 100644 --- a/tests/libopkg_test.c +++ b/tests/libopkg_test.c @@ -3,9 +3,9 @@ #include void -progress_callback (opkg_t *opkg, int percent, void *data) +progress_callback (opkg_t *opkg, const opkg_progress_data_t *progress, void *data) { - printf ("\r%s %3d%%", (char*) data, percent); + printf ("\r%s %3d%%", (char*) data, progress->percentage); fflush (stdout); } -- cgit v0.9.1