The Battle for Wesnoth  1.19.0-dev
Namespaces | Macros | Typedefs | Functions | Variables
filesystem_sdl.cpp File Reference
#include <SDL2/SDL_rwops.h>
#include "filesystem.hpp"
#include "log.hpp"
#include <algorithm>
#include <cassert>
Include dependency graph for filesystem_sdl.cpp:

Go to the source code of this file.

Namespaces

 filesystem
 

Macros

#define ERR_FS   LOG_STREAM(err, log_filesystem)
 

Typedefs

typedef std::pair< int64_t, std::ios_base::seekdir > filesystem::offset_dir
 

Functions

static int64_t filesystem::ifs_size (struct SDL_RWops *context)
 
static int64_t filesystem::ofs_size (struct SDL_RWops *context)
 
static int64_t SDLCALL filesystem::ifs_seek (struct SDL_RWops *context, int64_t offset, int whence)
 
static int64_t SDLCALL filesystem::ofs_seek (struct SDL_RWops *context, int64_t offset, int whence)
 
static std::size_t SDLCALL filesystem::ifs_read (struct SDL_RWops *context, void *ptr, std::size_t size, std::size_t maxnum)
 
static std::size_t SDLCALL filesystem::ofs_read (struct SDL_RWops *context, void *ptr, std::size_t size, std::size_t maxnum)
 
static std::size_t SDLCALL filesystem::ifs_write (struct SDL_RWops *context, const void *ptr, std::size_t size, std::size_t num)
 
static std::size_t SDLCALL filesystem::ofs_write (struct SDL_RWops *context, const void *ptr, std::size_t size, std::size_t num)
 
static int SDLCALL filesystem::ifs_close (struct SDL_RWops *context)
 
static int SDLCALL filesystem::ofs_close (struct SDL_RWops *context)
 
rwops_ptr filesystem::make_read_RWops (const std::string &path)
 
rwops_ptr filesystem::make_write_RWops (const std::string &path)
 
static offset_dir filesystem::translate_seekdir (int64_t offset, int whence)
 

Variables

static lg::log_domain log_filesystem ("filesystem")
 
static const uint32_t filesystem::read_type = 7
 
static const uint32_t filesystem::write_type = 8
 

Macro Definition Documentation

◆ ERR_FS

#define ERR_FS   LOG_STREAM(err, log_filesystem)

Definition at line 24 of file filesystem_sdl.cpp.

Variable Documentation

◆ log_filesystem

lg::log_domain log_filesystem("filesystem") ( "filesystem"  )
static