Exposed SDL_LoadObject(), SDL_LoadFunction(), and SDL_UnloadObject() APIs
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40649
This commit is contained in:
parent
e3a333deb4
commit
52cb5fc147
11 changed files with 23 additions and 5 deletions
3
WhatsNew
3
WhatsNew
|
@ -3,6 +3,9 @@ This is a list of API changes in SDL's version history.
|
||||||
|
|
||||||
Version 1.0:
|
Version 1.0:
|
||||||
|
|
||||||
|
1.2.6:
|
||||||
|
Added SDL_LoadObject(), SDL_LoadFunction(), and SDL_UnloadObject()
|
||||||
|
|
||||||
1.2.5:
|
1.2.5:
|
||||||
Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)
|
Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)
|
||||||
|
|
||||||
|
|
|
@ -1558,7 +1558,7 @@ CheckDLOPEN()
|
||||||
{
|
{
|
||||||
AC_ARG_ENABLE(dlopen,
|
AC_ARG_ENABLE(dlopen,
|
||||||
[ --enable-dlopen use dlopen for shared object loading [default=no]],
|
[ --enable-dlopen use dlopen for shared object loading [default=no]],
|
||||||
, enable_dlopen=no)
|
, enable_dlopen=yes)
|
||||||
if test x$enable_dlopen = xyes; then
|
if test x$enable_dlopen = xyes; then
|
||||||
AC_MSG_CHECKING(for dlopen)
|
AC_MSG_CHECKING(for dlopen)
|
||||||
use_dlopen=no
|
use_dlopen=no
|
||||||
|
|
|
@ -27,7 +27,6 @@ static char rcsid =
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
/* System dependent library loading routines */
|
/* System dependent library loading routines */
|
||||||
/* Note: This API isn't meant for public release until SDL 1.3 */
|
|
||||||
|
|
||||||
#ifndef _SDL_loadso_h
|
#ifndef _SDL_loadso_h
|
||||||
#define _SDL_loadso_h
|
#define _SDL_loadso_h
|
||||||
|
@ -42,16 +41,16 @@ extern "C" {
|
||||||
* to the object handle (or NULL if there was an error).
|
* to the object handle (or NULL if there was an error).
|
||||||
* The 'sofile' parameter is a system dependent name of the object file.
|
* The 'sofile' parameter is a system dependent name of the object file.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void *SDL_LoadObject(const char *sofile);
|
extern DECLSPEC void * SDLCALL SDL_LoadObject(const char *sofile);
|
||||||
|
|
||||||
/* Given an object handle, this function looks up the address of the
|
/* Given an object handle, this function looks up the address of the
|
||||||
* named function in the shared object and returns it. This address
|
* named function in the shared object and returns it. This address
|
||||||
* is no longer valid after calling SDL_UnloadObject().
|
* is no longer valid after calling SDL_UnloadObject().
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void *SDL_LoadFunction(void *handle, const char *name);
|
extern DECLSPEC void * SDLCALL SDL_LoadFunction(void *handle, const char *name);
|
||||||
|
|
||||||
/* Unload a shared object from memory */
|
/* Unload a shared object from memory */
|
||||||
extern DECLSPEC void SDL_UnloadObject(void *handle);
|
extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);
|
||||||
|
|
||||||
/* Ends C function definitions when using C++ */
|
/* Ends C function definitions when using C++ */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
|
@ -12,6 +12,7 @@ HEADERS = \
|
||||||
../../../../include/SDL_joystick.h \
|
../../../../include/SDL_joystick.h \
|
||||||
../../../../include/SDL_keyboard.h \
|
../../../../include/SDL_keyboard.h \
|
||||||
../../../../include/SDL_keysym.h \
|
../../../../include/SDL_keysym.h \
|
||||||
|
../../../../include/SDL_loadso.h \
|
||||||
../../../../include/SDL_main.h \
|
../../../../include/SDL_main.h \
|
||||||
../../../../include/SDL_mouse.h \
|
../../../../include/SDL_mouse.h \
|
||||||
../../../../include/SDL_mutex.h \
|
../../../../include/SDL_mutex.h \
|
||||||
|
|
|
@ -74,6 +74,9 @@ _SDL_GetKeyState
|
||||||
_SDL_GetModState
|
_SDL_GetModState
|
||||||
_SDL_SetModState
|
_SDL_SetModState
|
||||||
_SDL_GetKeyName
|
_SDL_GetKeyName
|
||||||
|
_SDL_LoadObject
|
||||||
|
_SDL_LoadFunction
|
||||||
|
_SDL_UnloadObject
|
||||||
_SDL_SetModuleHandle
|
_SDL_SetModuleHandle
|
||||||
_SDL_RegisterApp
|
_SDL_RegisterApp
|
||||||
_SDL_InitQuickDraw
|
_SDL_InitQuickDraw
|
||||||
|
|
|
@ -14,6 +14,7 @@ HEADERS = \
|
||||||
../../../../include/SDL_joystick.h \
|
../../../../include/SDL_joystick.h \
|
||||||
../../../../include/SDL_keyboard.h \
|
../../../../include/SDL_keyboard.h \
|
||||||
../../../../include/SDL_keysym.h \
|
../../../../include/SDL_keysym.h \
|
||||||
|
../../../../include/SDL_loadso.h \
|
||||||
../../../../include/SDL_mouse.h \
|
../../../../include/SDL_mouse.h \
|
||||||
../../../../include/SDL_mutex.h \
|
../../../../include/SDL_mutex.h \
|
||||||
../../../../include/SDL_quit.h \
|
../../../../include/SDL_quit.h \
|
||||||
|
|
|
@ -76,6 +76,9 @@
|
||||||
SDL_GetModState
|
SDL_GetModState
|
||||||
SDL_SetModState
|
SDL_SetModState
|
||||||
SDL_GetKeyName
|
SDL_GetKeyName
|
||||||
|
SDL_LoadObject
|
||||||
|
SDL_LoadFunction
|
||||||
|
SDL_UnloadObject
|
||||||
SDL_GetMouseState
|
SDL_GetMouseState
|
||||||
SDL_GetRelativeMouseState
|
SDL_GetRelativeMouseState
|
||||||
SDL_WarpMouse
|
SDL_WarpMouse
|
||||||
|
|
|
@ -13,6 +13,7 @@ HEADERS = \
|
||||||
../../../../include/SDL_joystick.h \
|
../../../../include/SDL_joystick.h \
|
||||||
../../../../include/SDL_keyboard.h \
|
../../../../include/SDL_keyboard.h \
|
||||||
../../../../include/SDL_keysym.h \
|
../../../../include/SDL_keysym.h \
|
||||||
|
../../../../include/SDL_loadso.h \
|
||||||
../../../../include/SDL_mouse.h \
|
../../../../include/SDL_mouse.h \
|
||||||
../../../../include/SDL_mutex.h \
|
../../../../include/SDL_mutex.h \
|
||||||
../../../../include/SDL_quit.h \
|
../../../../include/SDL_quit.h \
|
||||||
|
|
|
@ -74,6 +74,9 @@
|
||||||
_SDL_GetModState
|
_SDL_GetModState
|
||||||
_SDL_SetModState
|
_SDL_SetModState
|
||||||
_SDL_GetKeyName
|
_SDL_GetKeyName
|
||||||
|
_SDL_LoadObject
|
||||||
|
_SDL_LoadFunction
|
||||||
|
_SDL_UnloadObject
|
||||||
_SDL_GetMouseState
|
_SDL_GetMouseState
|
||||||
_SDL_GetRelativeMouseState
|
_SDL_GetRelativeMouseState
|
||||||
_SDL_WarpMouse
|
_SDL_WarpMouse
|
||||||
|
|
|
@ -13,6 +13,7 @@ HEADERS = \
|
||||||
../../../../include/SDL_joystick.h \
|
../../../../include/SDL_joystick.h \
|
||||||
../../../../include/SDL_keyboard.h \
|
../../../../include/SDL_keyboard.h \
|
||||||
../../../../include/SDL_keysym.h \
|
../../../../include/SDL_keysym.h \
|
||||||
|
../../../../include/SDL_loadso.h \
|
||||||
../../../../include/SDL_main.h \
|
../../../../include/SDL_main.h \
|
||||||
../../../../include/SDL_mouse.h \
|
../../../../include/SDL_mouse.h \
|
||||||
../../../../include/SDL_mutex.h \
|
../../../../include/SDL_mutex.h \
|
||||||
|
|
|
@ -74,6 +74,9 @@
|
||||||
SDL_GetModState
|
SDL_GetModState
|
||||||
SDL_SetModState
|
SDL_SetModState
|
||||||
SDL_GetKeyName
|
SDL_GetKeyName
|
||||||
|
SDL_LoadObject
|
||||||
|
SDL_LoadFunction
|
||||||
|
SDL_UnloadObject
|
||||||
SDL_SetModuleHandle
|
SDL_SetModuleHandle
|
||||||
SDL_RegisterApp
|
SDL_RegisterApp
|
||||||
SDL_InitQuickDraw
|
SDL_InitQuickDraw
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue