Debian Codegraph @

libs/zziplib/zziplib-src/zzip/zzip32.h

raw
1 /*
2 * Author:
3 * Guido Draheim <[email protected]>
4 *
5 * Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
6 *
7 * The compat32 headers is targeted towards those poor souls who can
8 * not compile their application or library with _LARGEFILE_SOURCE but
9 * they may still need to access a libzzip compiled in largefile mode.
10 * In that case they can change back to calling these suffix32 functions
11 * which are ensured to use "long" as the parameter type - just as it used
12 * to be before off_t was defined as an alias for it.
13 */
14
15 #ifndef _ZZIP_ZZIP32_H
16 #define _ZZIP_ZZIP32_H
17
18 #include <zzip/lib.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /*
25 * Scanning files in zip archive.
26 * Implemented in zzip/dir.c
27 */
28 _zzip_export
29 long zzip_telldir32(ZZIP_DIR * dir);
30 _zzip_export
31 void zzip_seekdir32(ZZIP_DIR * dir, long offset);
32
33 /*
34 * seek and tell functions.
35 * Implemented in zzip/file.c
36 */
37 _zzip_export
38 long zzip_seek32(ZZIP_FILE * fp, long offset, int whence);
39 _zzip_export
40 long zzip_tell32(ZZIP_FILE * fp);
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #endif