changed statusfunc to a struct
authorkramm <kramm>
Tue, 10 Jun 2008 10:45:27 +0000 (10:45 +0000)
committerkramm <kramm>
Tue, 10 Jun 2008 10:45:27 +0000 (10:45 +0000)
installer/archive.h

index eee1a4f..d2af9a2 100644 (file)
 #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__