summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:14:31 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:14:31 (EST)
commit079a631d12f3d6ae6f33aef318a51799ea78027c (patch)
tree0c48f7f9ed23795ca62e92fa9007c3293810f938 /tests
parent5d73bb62ab80a03c0df9dcba12c5248567121dbd (diff)
opkg: add extra data to libopkg progress callbacks
git-svn-id: http://opkg.googlecode.com/svn/trunk@97 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'tests')
-rw-r--r--tests/libopkg_test.c4
1 files changed, 2 insertions, 2 deletions
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 <stdio.h>
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);
}