File: wrap.h

package info (click to toggle)
zziplib 0.13.56-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,760 kB
  • ctags: 2,135
  • sloc: sh: 12,147; ansic: 7,392; perl: 2,826; python: 2,190; makefile: 968; sed: 44
file content (36 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Author: 
 *	Andreas Schiffler <aschiffler@appwares.com>
 *
 *	Copyright (c) 2001 Andreas Schiffler
 * 	    All rights reserved, 
 *          usage allowed under the restrictions of the
 *	    Lesser GNU General Public License 
 */

#ifndef _ZZIPWRAP_H
#define _ZZIPWRAP_H

#include <zzip/zzip.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * toggle alternate read routine and set callback and callback data
 * return: a plugin_io pointer to be used 
 *  with => zzip_opendir_ext_io or => zzip_open_ext_io and cousins
 */
typedef void (*zzipwrap_pfn_t)(void* mem, int blocksize, void* privatedata);
_zzip_export
zzip_plugin_io_t
zzipwrap_use_memory_io(int blocksize, zzipwrap_pfn_t callback, void *callbackdata);


#ifdef __cplusplus
};
#endif

#endif /* _ZZIPWRAP_H */