SDL 3.0
|
#include <SDL_storage.h>
Data Fields | |
Uint32 | version |
bool(* | close )(void *userdata) |
bool(* | ready )(void *userdata) |
bool(* | enumerate )(void *userdata, const char *path, SDL_EnumerateDirectoryCallback callback, void *callback_userdata) |
bool(* | info )(void *userdata, const char *path, SDL_PathInfo *info) |
bool(* | read_file )(void *userdata, const char *path, void *destination, Uint64 length) |
bool(* | write_file )(void *userdata, const char *path, const void *source, Uint64 length) |
bool(* | mkdir )(void *userdata, const char *path) |
bool(* | remove )(void *userdata, const char *path) |
bool(* | rename )(void *userdata, const char *oldpath, const char *newpath) |
bool(* | copy )(void *userdata, const char *oldpath, const char *newpath) |
Uint64(* | space_remaining )(void *userdata) |
SDL storage container management. Function interface for SDL_Storage.
Apps that want to supply a custom implementation of SDL_Storage will fill in all the functions in this struct, and then pass it to SDL_OpenStorage to create a custom SDL_Storage object.
It is not usually necessary to do this; SDL provides standard implementations for many things you might expect to do with an SDL_Storage.
This structure should be initialized using SDL_INIT_INTERFACE()
Definition at line 61 of file SDL_storage.h.
bool(* SDL_StorageInterface::close) (void *userdata) |
Definition at line 67 of file SDL_storage.h.
bool(* SDL_StorageInterface::copy) (void *userdata, const char *oldpath, const char *newpath) |
Definition at line 94 of file SDL_storage.h.
bool(* SDL_StorageInterface::enumerate) (void *userdata, const char *path, SDL_EnumerateDirectoryCallback callback, void *callback_userdata) |
Definition at line 73 of file SDL_storage.h.
bool(* SDL_StorageInterface::info) (void *userdata, const char *path, SDL_PathInfo *info) |
Definition at line 76 of file SDL_storage.h.
bool(* SDL_StorageInterface::mkdir) (void *userdata, const char *path) |
Definition at line 85 of file SDL_storage.h.
bool(* SDL_StorageInterface::read_file) (void *userdata, const char *path, void *destination, Uint64 length) |
Definition at line 79 of file SDL_storage.h.
bool(* SDL_StorageInterface::ready) (void *userdata) |
Definition at line 70 of file SDL_storage.h.
bool(* SDL_StorageInterface::remove) (void *userdata, const char *path) |
Definition at line 88 of file SDL_storage.h.
bool(* SDL_StorageInterface::rename) (void *userdata, const char *oldpath, const char *newpath) |
Definition at line 91 of file SDL_storage.h.
Uint64(* SDL_StorageInterface::space_remaining) (void *userdata) |
Definition at line 97 of file SDL_storage.h.
Uint32 SDL_StorageInterface::version |
Definition at line 64 of file SDL_storage.h.
bool(* SDL_StorageInterface::write_file) (void *userdata, const char *path, const void *source, Uint64 length) |
Definition at line 82 of file SDL_storage.h.