git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added '*=' token
[swftools.git]
/
installer
/
archive.h
diff --git
a/installer/archive.h
b/installer/archive.h
index
eee1a4f
..
357f672
100644
(file)
--- a/
installer/archive.h
+++ b/
installer/archive.h
@@
-1,8
+1,8
@@
/* archive.h
/* 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
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__
#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__
#endif //__archive_h__