Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Exposed SDL_LoadObject(), SDL_LoadFunction(), and SDL_UnloadObject() …
…APIs
  • Loading branch information
slouken committed Jul 10, 2003
1 parent 8bf2dbf commit 7727703
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 5 deletions.
3 changes: 3 additions & 0 deletions WhatsNew
Expand Up @@ -3,6 +3,9 @@ This is a list of API changes in SDL's version history.

Version 1.0:

1.2.6:
Added SDL_LoadObject(), SDL_LoadFunction(), and SDL_UnloadObject()

1.2.5:
Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)

Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -1558,7 +1558,7 @@ CheckDLOPEN()
{
AC_ARG_ENABLE(dlopen,
[ --enable-dlopen use dlopen for shared object loading [default=no]],
, enable_dlopen=no)
, enable_dlopen=yes)
if test x$enable_dlopen = xyes; then
AC_MSG_CHECKING(for dlopen)
use_dlopen=no
Expand Down
7 changes: 3 additions & 4 deletions src/SDL_loadso.h → include/SDL_loadso.h
Expand Up @@ -27,7 +27,6 @@ static char rcsid =

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
/* Note: This API isn't meant for public release until SDL 1.3 */

#ifndef _SDL_loadso_h
#define _SDL_loadso_h
Expand All @@ -42,16 +41,16 @@ extern "C" {
* to the object handle (or NULL if there was an error).
* 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
* named function in the shared object and returns it. This address
* 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 */
extern DECLSPEC void SDL_UnloadObject(void *handle);
extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);

/* Ends C function definitions when using C++ */
#ifdef __cplusplus
Expand Down
1 change: 1 addition & 0 deletions src/main/beos/exports/Makefile
Expand Up @@ -12,6 +12,7 @@ HEADERS = \
../../../../include/SDL_joystick.h \
../../../../include/SDL_keyboard.h \
../../../../include/SDL_keysym.h \
../../../../include/SDL_loadso.h \
../../../../include/SDL_main.h \
../../../../include/SDL_mouse.h \
../../../../include/SDL_mutex.h \
Expand Down
3 changes: 3 additions & 0 deletions src/main/beos/exports/SDL.exp
Expand Up @@ -74,6 +74,9 @@ _SDL_GetKeyState
_SDL_GetModState
_SDL_SetModState
_SDL_GetKeyName
_SDL_LoadObject
_SDL_LoadFunction
_SDL_UnloadObject
_SDL_SetModuleHandle
_SDL_RegisterApp
_SDL_InitQuickDraw
Expand Down
1 change: 1 addition & 0 deletions src/main/macos/exports/Makefile
Expand Up @@ -14,6 +14,7 @@ HEADERS = \
../../../../include/SDL_joystick.h \
../../../../include/SDL_keyboard.h \
../../../../include/SDL_keysym.h \
../../../../include/SDL_loadso.h \
../../../../include/SDL_mouse.h \
../../../../include/SDL_mutex.h \
../../../../include/SDL_quit.h \
Expand Down
3 changes: 3 additions & 0 deletions src/main/macos/exports/SDL.x
Expand Up @@ -76,6 +76,9 @@
SDL_GetModState
SDL_SetModState
SDL_GetKeyName
SDL_LoadObject
SDL_LoadFunction
SDL_UnloadObject
SDL_GetMouseState
SDL_GetRelativeMouseState
SDL_WarpMouse
Expand Down
1 change: 1 addition & 0 deletions src/main/macosx/exports/Makefile
Expand Up @@ -13,6 +13,7 @@ HEADERS = \
../../../../include/SDL_joystick.h \
../../../../include/SDL_keyboard.h \
../../../../include/SDL_keysym.h \
../../../../include/SDL_loadso.h \
../../../../include/SDL_mouse.h \
../../../../include/SDL_mutex.h \
../../../../include/SDL_quit.h \
Expand Down
3 changes: 3 additions & 0 deletions src/main/macosx/exports/SDL.x
Expand Up @@ -74,6 +74,9 @@
_SDL_GetModState
_SDL_SetModState
_SDL_GetKeyName
_SDL_LoadObject
_SDL_LoadFunction
_SDL_UnloadObject
_SDL_GetMouseState
_SDL_GetRelativeMouseState
_SDL_WarpMouse
Expand Down
1 change: 1 addition & 0 deletions src/main/win32/exports/Makefile
Expand Up @@ -13,6 +13,7 @@ HEADERS = \
../../../../include/SDL_joystick.h \
../../../../include/SDL_keyboard.h \
../../../../include/SDL_keysym.h \
../../../../include/SDL_loadso.h \
../../../../include/SDL_main.h \
../../../../include/SDL_mouse.h \
../../../../include/SDL_mutex.h \
Expand Down
3 changes: 3 additions & 0 deletions src/main/win32/exports/SDL.def
Expand Up @@ -74,6 +74,9 @@
SDL_GetModState
SDL_SetModState
SDL_GetKeyName
SDL_LoadObject
SDL_LoadFunction
SDL_UnloadObject
SDL_SetModuleHandle
SDL_RegisterApp
SDL_InitQuickDraw
Expand Down

0 comments on commit 7727703

Please sign in to comment.