include/SDL_loadso.h
changeset 8210 581caa876b2e
parent 8149 681eb46b8ac4
child 8215 54555ad9342c
     1.1 --- a/include/SDL_loadso.h	Wed Feb 12 18:12:14 2014 -0300
     1.2 +++ b/include/SDL_loadso.h	Thu Feb 13 11:05:24 2014 -0800
     1.3 @@ -58,6 +58,16 @@
     1.4  extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile);
     1.5  
     1.6  /**
     1.7 + *  This function returns a handle to an already-loaded shared object and 
     1.8 + *  returns a pointer to the object handle. If the object file was not loaded
     1.9 + *  the function returns NULL. This function adds a reference to the shared
    1.10 + *  object, so the caller should call SDL_UnloadObject when they are finished
    1.11 + *  with this reference to ensure that the object can be unloaded.
    1.12 + *  The 'sofile' parameter is a system dependent name of the object file.
    1.13 + */
    1.14 +extern DECLSPEC void *SDLCALL SDL_GetLoadedObject(const char *sofile);
    1.15 +
    1.16 +/**
    1.17   *  Given an object handle, this function looks up the address of the
    1.18   *  named function in the shared object and returns it.  This address
    1.19   *  is no longer valid after calling SDL_UnloadObject().