SDL Wiki
(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)


Opens up a container using a client-provided storage interface.

Header File

Defined in <SDL3/SDL_storage.h>


SDL_Storage * SDL_OpenStorage(const SDL_StorageInterface *iface, void *userdata);

Function Parameters

const SDL_StorageInterface * iface the function table to be used by this container.
void * userdata the pointer that will be passed to the store interface.

Return Value

(SDL_Storage *) Returns a storage container on success or NULL on failure; call SDL_GetError() for more information.


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 is available since SDL 3.0.0.

See Also

CategoryAPI, CategoryAPIFunction, CategoryStorage

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.