beta-0.89.2
[luatex.git] / source / libs / zziplib / zziplib-0.13.62 / SDL / SDL_rwops_zzip.h
blob1a2d188de835cb683e2d93afefac758146a87916
1 /*
2 * Copyright (c) 2001 Guido Draheim <guidod@gmx.de>
3 * Use freely under the restrictions of the ZLIB License
5 * You should be able to drop it in the place of a SDL_RWFromFile. Then
6 * go to X/share/myapp and do `cd graphics && zip -9r ../graphics.zip .`
7 * and rename the graphics/ subfolder - and still all your files
8 * are found: a filepath like X/shared/graphics/game/greetings.bmp
9 * will open X/shared/graphics.zip and return the zipped file
10 * game/greetings.bmp in the zip-archive (for reading that is).
14 #ifndef _SDL_RWops_ZZIP_h
15 #define _SDL_RWops_ZZIP_h
17 #include <SDL_rwops.h>
19 #ifndef ZZIP_NO_DECLSPEC
20 #define ZZIP_DECLSPEC
21 #else /* use DECLSPEC from SDL/begin_code.h */
22 #define ZZIP_DECLSPEC DECLSPEC
23 #endif
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 extern ZZIP_DECLSPEC
30 SDL_RWops *SDL_RWFromZZIP(const char* file, const char* mode);
32 #ifdef __cplusplus
33 } /* extern C */
34 #endif
36 #endif