1 //from sdl_loadso.h
3 {**
4 * This function dynamically loads a shared object and returns a pointer
5 * to the object handle (or NULL if there was an error).
6 * The 'sofile' parameter is a system dependent name of the object file.
7 *}
8 function SDL_LoadObject(Const sofile: PAnsiChar): Pointer; cdecl;
9 external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_LoadObject' {$ENDIF}{$ENDIF};
11 {**
12 * Given an object handle, this function looks up the address of the
13 * named function in the shared object and returns it. This address
14 * is no longer valid after calling SDL_UnloadObject().
15 *}
16 function SDL_LoadFunction(handle: Pointer; Const name: PAnsiChar): Pointer; cdecl;
17 external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_LoadFunction' {$ENDIF}{$ENDIF};
19 {**
20 * Unload a shared object from memory.
21 *}
22 procedure SDL_UnloadObject(handle: Pointer); cdecl;
23 external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_UnloadObject' {$ENDIF}{$ENDIF};