logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Description

       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.

Name

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

Return Value

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

See Also

SDL_CloseStorage(3), SDL_GetStorageFileSize(3),  SDL_GetStorageSpaceRemaining(3),  SDL_INIT_INTERFACE(3),
       SDL_ReadStorageFile(3), SDL_StorageReady(3), SDL_WriteStorageFile(3)

Simple Directmedia Layer                           SDL 3.2.20                                 SDL_OpenStorage(3)

Synopsis

#include<SDL3/SDL_storage.h>SDL_Storage*SDL_OpenStorage(constSDL_StorageInterface*iface,void*userdata);

See Also