summaryrefslogtreecommitdiff
path: root/Build/source/libs/zziplib/zziplib-0.13.62/zzip/zzip32.h
blob: 04802507c174ba3dbe09ab0a27434904fefeef65 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Author:
 *      Guido Draheim <guidod@gmx.de>
 *
 *      Copyright (c) 2010 Guido Draheim
 *          All rights reserved,
 *          usage allowed under the restrictions of the
 *          Lesser GNU General Public License
 *          or alternatively the restrictions
 *          of the Mozilla Public License 1.1
 *
 * The compat32 headers is targeted towards those poor souls who can
 * not compile their application or library with _LARGEFILE_SOURCE but
 * they may still need to access a libzzip compiled in largefile mode.
 * In that case they can change back to calling these suffix32 functions
 * which are ensured to use "long" as the parameter type - just as it used
 * to be before off_t was defined as an alias for it.
 */

#ifndef _ZZIP_ZZIP32_H
#define _ZZIP_ZZIP32_H

#include <zzip/lib.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Scanning files in zip archive.
 * Implemented in zzip/dir.c
 */
_zzip_export
long zzip_telldir32(ZZIP_DIR * dir);
_zzip_export
void zzip_seekdir32(ZZIP_DIR * dir, long offset);

/*
 *  seek and tell functions.
 *  Implemented in zzip/file.c
 */
_zzip_export
long      zzip_seek32(ZZIP_FILE * fp, long offset, int whence);
_zzip_export
long      zzip_tell32(ZZIP_FILE * fp);

#ifdef __cplusplus
}
#endif

#endif