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