Mana
Loading...
Searching...
No Matches
physfsrwops.h
Go to the documentation of this file.
1/*
2 * This code provides a glue layer between PhysicsFS and Simple Directmedia
3 * Layer's (SDL) RWops i/o abstraction.
4 *
5 * License: this code is public domain. I make no warranty that it is useful,
6 * correct, harmless, or environmentally safe.
7 *
8 * This particular file may be used however you like, including copying it
9 * verbatim into a closed-source project, exploiting it commercially, and
10 * removing any trace of my name from the source (although I hope you won't
11 * do that). I welcome enhancements and corrections to this file, but I do
12 * not require you to send me patches if you make changes. This code has
13 * NO WARRANTY.
14 *
15 * Unless otherwise stated, the rest of PhysicsFS falls under the zlib license.
16 * Please see LICENSE.txt in the root of the source tree.
17 *
18 * SDL 1.2 falls under the LGPL license. SDL 1.3+ is zlib, like PhysicsFS.
19 * You can get SDL at https://www.libsdl.org/
20 *
21 * This file was written by Ryan C. Gordon. (icculus@icculus.org).
22 */
23
24#ifndef _INCLUDE_PHYSFSRWOPS_H_
25#define _INCLUDE_PHYSFSRWOPS_H_
26
27#include "physfs.h"
28#include "SDL.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
44PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);
45
56PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);
57
68PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);
69
80PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_File *handle);
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* include-once blocker */
87
88/* end of physfsrwops.h ... */
PHYSFS_DECL SDL_RWops * PHYSFSRWOPS_openRead(const char *fname)
Open a platform-independent filename for reading, and make it accessible via an SDL_RWops structure.
PHYSFS_DECL SDL_RWops * PHYSFSRWOPS_makeRWops(PHYSFS_File *handle)
Make a SDL_RWops from an existing PhysicsFS file handle.
PHYSFS_DECL SDL_RWops * PHYSFSRWOPS_openWrite(const char *fname)
Open a platform-independent filename for writing, and make it accessible via an SDL_RWops structure.
PHYSFS_DECL SDL_RWops * PHYSFSRWOPS_openAppend(const char *fname)
Open a platform-independent filename for appending, and make it accessible via an SDL_RWops structure...