source: OGRE/trunk/ogre_dependencies/Dependencies/include/zzip/fseeko.h @ 692

Revision 692, 2.1 KB checked in by mattausch, 18 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1#ifndef _ZZIP_FSEEKO_H_
2#define _ZZIP_FSEEKO_H_
3/*
4 * simplified zip disk access using fseeko on a stdio FILE handle
5 *
6 * Author:
7 *      Guido Draheim <guidod@gmx.de>
8 *
9 * Copyright (c) 2003,2004 Guido Draheim
10 *          All rights reserved,
11 *          use under the restrictions of the
12 *          Lesser GNU General Public License
13 *          or alternatively the restrictions
14 *          of the Mozilla Public License 1.1
15 */
16
17
18#include <zzip/types.h>
19#include <stdio.h>
20
21typedef struct zzip_entry ZZIP_ENTRY;
22typedef struct zzip_entry_file ZZIP_ENTRY_FILE;
23
24typedef int (*zzip_strcmp_fn_t)(char*, char*);
25typedef int (*zzip_fnmatch_fn_t)(char*, char*, int);
26
27#define zzip_entry_extern extern
28
29zzip_off_t
30zzip_entry_data_offset(ZZIP_ENTRY* entry);
31
32char* _zzip_restrict
33zzip_entry_strdup_name(ZZIP_ENTRY* entry);
34
35
36zzip_entry_extern ZZIP_ENTRY* _zzip_restrict
37zzip_entry_findfirst(FILE* file);
38
39zzip_entry_extern ZZIP_ENTRY* _zzip_restrict
40zzip_entry_findnext(ZZIP_ENTRY* _zzip_restrict entry);
41
42#define zzip_entry_findlast      zzip_entry_free
43#define zzip_entry_findlastfile  zzip_entry_free
44#define zzip_entry_findlastmatch zzip_entry_free
45
46zzip_entry_extern int
47zzip_entry_free(ZZIP_ENTRY* entry);
48
49char* _zzip_restrict
50zzip_entry_strdup_name(ZZIP_ENTRY* entry);
51char*
52zzip_entry_to_data(ZZIP_ENTRY* entry);
53
54zzip_entry_extern ZZIP_ENTRY* _zzip_restrict
55zzip_entry_findfile(FILE* disk, char* filename,
56                    ZZIP_ENTRY* _zzip_restrict old,
57                   zzip_strcmp_fn_t compare);
58zzip_entry_extern ZZIP_ENTRY* _zzip_restrict
59zzip_entry_findmatch(FILE* disk, char* filespec,
60                     ZZIP_ENTRY* _zzip_restrict old,
61                    zzip_fnmatch_fn_t compare, int flags);
62
63zzip_entry_extern ZZIP_ENTRY_FILE* _zzip_restrict
64zzip_entry_fopen (ZZIP_ENTRY* entry, int takeover);
65
66zzip_entry_extern ZZIP_ENTRY_FILE* _zzip_restrict
67zzip_entry_ffile (FILE* disk, char* filename);
68
69zzip_entry_extern _zzip_size_t
70zzip_entry_fread (void* ptr, _zzip_size_t size, _zzip_size_t nmemb,
71                 ZZIP_ENTRY_FILE* file);
72zzip_entry_extern int
73zzip_entry_fclose (ZZIP_ENTRY_FILE* file);
74int
75zzip_entry_feof (ZZIP_ENTRY_FILE* file);
76
77#endif
78
Note: See TracBrowser for help on using the repository browser.