243#ifndef SDL_storage_h_
244#define SDL_storage_h_
298 bool (SDLCALL *
mkdir)(
void *userdata,
const char *path);
304 bool (SDLCALL *
rename)(
void *userdata,
const char *oldpath,
const char *newpath);
307 bool (SDLCALL *
copy)(
void *userdata,
const char *oldpath,
const char *newpath);
SDL_EnumerationResult(* SDL_EnumerateDirectoryCallback)(void *userdata, const char *dirname, const char *fname)
#define SDL_COMPILE_TIME_ASSERT(name, x)
SDL_Storage * SDL_OpenTitleStorage(const char *override, SDL_PropertiesID props)
char ** SDL_GlobStorageDirectory(SDL_Storage *storage, const char *path, const char *pattern, SDL_GlobFlags flags, int *count)
bool SDL_GetStorageFileSize(SDL_Storage *storage, const char *path, Uint64 *length)
bool SDL_CopyStorageFile(SDL_Storage *storage, const char *oldpath, const char *newpath)
bool SDL_ReadStorageFile(SDL_Storage *storage, const char *path, void *destination, Uint64 length)
SDL_Storage * SDL_OpenUserStorage(const char *org, const char *app, SDL_PropertiesID props)
struct SDL_Storage SDL_Storage
bool SDL_CloseStorage(SDL_Storage *storage)
SDL_Storage * SDL_OpenStorage(const SDL_StorageInterface *iface, void *userdata)
bool SDL_CreateStorageDirectory(SDL_Storage *storage, const char *path)
Uint64 SDL_GetStorageSpaceRemaining(SDL_Storage *storage)
bool SDL_WriteStorageFile(SDL_Storage *storage, const char *path, const void *source, Uint64 length)
SDL_Storage * SDL_OpenFileStorage(const char *path)
bool SDL_StorageReady(SDL_Storage *storage)
bool SDL_GetStoragePathInfo(SDL_Storage *storage, const char *path, SDL_PathInfo *info)
bool SDL_RenameStoragePath(SDL_Storage *storage, const char *oldpath, const char *newpath)
bool SDL_RemoveStoragePath(SDL_Storage *storage, const char *path)
bool SDL_EnumerateStorageDirectory(SDL_Storage *storage, const char *path, SDL_EnumerateDirectoryCallback callback, void *userdata)
bool(* read_file)(void *userdata, const char *path, void *destination, Uint64 length)
bool(* ready)(void *userdata)
bool(* rename)(void *userdata, const char *oldpath, const char *newpath)
bool(* mkdir)(void *userdata, const char *path)
bool(* enumerate)(void *userdata, const char *path, SDL_EnumerateDirectoryCallback callback, void *callback_userdata)
bool(* write_file)(void *userdata, const char *path, const void *source, Uint64 length)
bool(* info)(void *userdata, const char *path, SDL_PathInfo *info)
Uint64(* space_remaining)(void *userdata)
bool(* close)(void *userdata)
bool(* copy)(void *userdata, const char *oldpath, const char *newpath)
bool(* remove)(void *userdata, const char *path)