Added SDL_GetLoadedModule to do the equivalent of GetModuleHandle/dlload(NOLOAD)

CR: Jorgen
This commit is contained in:
Sam Lantinga 2014-02-13 11:05:24 -08:00
parent bf6a7b1a2d
commit 714ed7849a
3 changed files with 33 additions and 0 deletions

View file

@ -57,6 +57,16 @@ extern "C" {
*/
extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile);
/**
* This function returns a handle to an already-loaded shared object and
* returns a pointer to the object handle. If the object file was not loaded
* the function returns NULL. This function adds a reference to the shared
* object, so the caller should call SDL_UnloadObject when they are finished
* with this reference to ensure that the object can be unloaded.
* The 'sofile' parameter is a system dependent name of the object file.
*/
extern DECLSPEC void *SDLCALL SDL_GetLoadedObject(const char *sofile);
/**
* Given an object handle, this function looks up the address of the
* named function in the shared object and returns it. This address