Added SDL_GlobFlags

This commit is contained in:
Sam Lantinga 2024-05-14 06:47:58 -07:00
parent 03b7e02804
commit 863a9029ae
6 changed files with 21 additions and 9 deletions
include/SDL3

View file

@ -262,6 +262,18 @@ typedef struct SDL_PathInfo
SDL_Time access_time; /* the last time the path was read */
} SDL_PathInfo;
/**
* Flags for path matching
*
* \since This datatype is available since SDL 3.0.0.
*
* \sa SDL_GlobDirectory
* \sa SDL_GlobStorageDirectory
*/
typedef Uint32 SDL_GlobFlags;
#define SDL_GLOB_CASEINSENSITIVE (1u << 0)
/**
* Create a directory.
*
@ -365,7 +377,7 @@ extern DECLSPEC int SDLCALL SDL_GetPathInfo(const char *path, SDL_PathInfo *info
*
* \since This function is available since SDL 3.0.0.
*/
extern DECLSPEC char **SDLCALL SDL_GlobDirectory(const char *path, const char *pattern, Uint32 flags, int *count);
extern DECLSPEC char **SDLCALL SDL_GlobDirectory(const char *path, const char *pattern, SDL_GlobFlags flags, int *count);
#define SDL_GLOB_CASEINSENSITIVE (1u << 0)