Debian Codegraph @

libs/zziplib/zziplib-src/zzipwrap/wrap.h

raw
1 /*
2 * Author:
3 * Andreas Schiffler <[email protected]>
4 *
5 * Copyright (c) 2001 Andreas Schiffler
6 * All rights reserved,
7 * usage allowed under the restrictions of the
8 * Lesser GNU General Public License
9 */
10
11 #ifndef _ZZIPWRAP_H
12 #define _ZZIPWRAP_H
13
14 #include <zzip/zzip.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 /*
21 * toggle alternate read routine and set callback and callback data
22 * return: a plugin_io pointer to be used
23 * with => zzip_opendir_ext_io or => zzip_open_ext_io and cousins
24 */
25 typedef void (*zzipwrap_pfn_t)(void* mem, int blocksize, void* privatedata);
26 _zzip_export
27 zzip_plugin_io_t
28 zzipwrap_use_memory_io(int blocksize, zzipwrap_pfn_t callback, void *callbackdata);
29
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif /* _ZZIPWRAP_H */
36