SDL_OpenStorage3
Opens up a container using a client-provided storage interface.
Usage
#include "SDL3/SDL.h"
SDL_Storage * SDL_OpenStorage(const SDL_StorageInterface *iface, void *userdata);
Header file
Defined in SDL3/SDL_storage.h
Overview
Applications do not need to use this function unless they are providing their own SDL_Storage
implementation. If you just need an
SDL_Storage , you should use the built-in implementations in SDL, like SDL_OpenTitleStorage () or
SDL_OpenUserStorage ().
This function makes a copy of iface and the caller does not need to keep it around after this call.
Function parameters
- iface
-
the interface that implements this storage, initialized using
SDL_INIT_INTERFACE().
- userdata
-
the pointer that will be passed to the interface functions.
Return value
( SDL_Storage
*) Returns a storage container on success or NULL on failure; call SDL_GetError () for more information.