loadso: library handles are now SDL_SharedObject* instead of void*.

Improved the SDL_loadso.h documentation a little, too.

Fixes #11009.
This commit is contained in:
Ryan C. Gordon
2024-10-01 11:11:40 -04:00
parent f351395c46
commit 0b5e01a305
38 changed files with 102 additions and 73 deletions

View File

@@ -25,21 +25,19 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// System dependent library loading routines
void *SDL_LoadObject(const char *sofile)
SDL_SharedObject *SDL_LoadObject(const char *sofile)
{
const char *loaderror = "SDL_LoadObject() not implemented";
SDL_SetError("Failed loading %s: %s", sofile, loaderror);
SDL_Unsupported();
return NULL;
}
SDL_FunctionPointer SDL_LoadFunction(void *handle, const char *name)
SDL_FunctionPointer SDL_LoadFunction(SDL_SharedObject *handle, const char *name)
{
const char *loaderror = "SDL_LoadFunction() not implemented";
SDL_SetError("Failed loading %s: %s", name, loaderror);
SDL_Unsupported();
return NULL;
}
void SDL_UnloadObject(void *handle)
void SDL_UnloadObject(SDL_SharedObject *handle)
{
// no-op.
}