X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=installer%2Farchive.h;h=357f67226f315b1bda80943447e0c71589e7c80f;hp=eee1a4fffd5f9977faffb0e1255b586033960721;hb=bdad407fb79c2f7be9f3603694ebdeadc645b52d;hpb=8eebd508d27d7ecd7b4ce26d7e99356f92847b75 diff --git a/installer/archive.h b/installer/archive.h index eee1a4f..357f672 100644 --- a/installer/archive.h +++ b/installer/archive.h @@ -1,8 +1,8 @@ /* archive.h - Part of the swftools installer. + Part of the rfx installer. - Copyright (c) 2004 Matthias Kramm + Copyright (c) 2004-2008 Matthias Kramm 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 @@ -21,9 +21,16 @@ #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__