From 9c9467f4d5c8a807b9a424431c374a2dc5d086e9 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 10 Jun 2008 10:45:27 +0000 Subject: [PATCH] changed statusfunc to a struct --- installer/archive.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/installer/archive.h b/installer/archive.h index eee1a4f..d2af9a2 100644 --- a/installer/archive.h +++ b/installer/archive.h @@ -21,9 +21,16 @@ #ifndef __archive_h__ #define __archive_h__ -typedef void (*statusfunc_t)(int type, char*text); - -int unpack_archive(void*data, int len, char*destdir, statusfunc_t f); +typedef struct _status +{ + void (*message)(char*text); + void (*status)(int pos, int len); + void (*error)(char*text); + void (*new_file)(char*filename); + void (*new_directory)(char*filename); +} status_t; + +int unpack_archive(void*data, int len, char*destdir, status_t* f); #endif //__archive_h__ -- 1.7.10.4