fixed bug in jpeg2000 decoding
[swftools.git] / installer / archive.h
index eee1a4f..357f672 100644 (file)
@@ -1,8 +1,8 @@
 /* archive.h
 
-   Part of the swftools installer.
+   Part of the rfx installer.
    
-   Copyright (c) 2004 Matthias Kramm <kramm@quiss.org> 
+   Copyright (c) 2004-2008 Matthias Kramm <kramm@quiss.org> 
  
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #ifndef __archive_h__
 #define __archive_h__
 
-typedef void (*statusfunc_t)(int type, char*text);
+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, statusfunc_t f);
+int unpack_archive(void*data, int len, char*destdir, status_t* f);
 
 #endif //__archive_h__