Enumeration of directory entries will continue until either all entries
have been provided to the callback, or the callback has requested a stop
through its return value.
Returning SDL_ENUM_CONTINUE will let enumeration proceed, calling the
callback with further entries. SDL_ENUM_SUCCESS and SDL_ENUM_FAILURE will
terminate the enumeration early, and dictate the return value of the
enumeration function itself.
dirname is guaranteed to end with a path separator ('\\' on Windows, '/'
on most other platforms).
Callback for directory enumeration.
Enumeration of directory entries will continue until either all entries have been provided to the callback, or the callback has requested a stop through its return value.
Returning SDL_ENUM_CONTINUE will let enumeration proceed, calling the callback with further entries. SDL_ENUM_SUCCESS and SDL_ENUM_FAILURE will terminate the enumeration early, and dictate the return value of the enumeration function itself.
dirname is guaranteed to end with a path separator ('\\' on Windows, '/' on most other platforms).