ManaPlus
fsdirrwops.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2013-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef UTILS_VIRTFS_VIRTFSDIRRWOPS_H
23 #define UTILS_VIRTFS_VIRTFSDIRRWOPS_H
24 
25 #include "fs/virtfs/rwopstypes.h"
26 
27 struct SDL_RWops;
28 
29 #include "localconsts.h"
30 
31 namespace VirtFs
32 {
33 
34 namespace FsDir
35 {
36  RWOPSINT rwops_seek(SDL_RWops *const rw,
37  const RWOPSINT offset,
38  const int whence);
39  RWOPSSIZE rwops_read(SDL_RWops *const rw,
40  void *const ptr,
41  const RWOPSSIZE size,
42  const RWOPSSIZE maxnum);
43  RWOPSSIZE rwops_write(SDL_RWops *const rw,
44  const void *const ptr,
45  const RWOPSSIZE size,
46  const RWOPSSIZE maxnum);
47  int rwops_close(SDL_RWops *const rw);
48 #ifdef USE_SDL2
49  RWOPSINT rwops_size(SDL_RWops *const rw);
50 #endif // USE_SDL2
51 
52 } // namespace FsDir
53 
54 } // namespace VirtFs
55 
56 #endif // UTILS_VIRTFS_VIRTFSDIRRWOPS_H
int size()
Definition: emotedb.cpp:306
int rwops_write(SDL_RWops *const rw, const void *const ptr, const int size, const int maxnum)
Definition: fsdirrwops.cpp:196
int32_t rwops_seek(SDL_RWops *const rw, const int32_t offset, const int whence)
Definition: fsdirrwops.cpp:41
int rwops_close(SDL_RWops *const rw)
Definition: fsdirrwops.cpp:233
int rwops_read(SDL_RWops *const rw, void *const ptr, const int size, const int maxnum)
Definition: fsdirrwops.cpp:160
#define RWOPSSIZE
Definition: rwopstypes.h:32
#define RWOPSINT
Definition: rwopstypes.h:31