00001 /* 00002 SDL - Simple DirectMedia Layer 00003 Copyright (C) 1997-2009 Sam Lantinga 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 Sam Lantinga 00020 slouken@libsdl.org 00021 */ 00022 00042 #ifndef _SDL_loadso_h 00043 #define _SDL_loadso_h 00044 00045 #include "SDL_stdinc.h" 00046 #include "SDL_error.h" 00047 00048 #include "begin_code.h" 00049 /* Set up for C function definitions, even when using C++ */ 00050 #ifdef __cplusplus 00051 /* *INDENT-OFF* */ 00052 extern "C" { 00053 /* *INDENT-ON* */ 00054 #endif 00055 00056 /* This function dynamically loads a shared object and returns a pointer 00057 * to the object handle (or NULL if there was an error). 00058 * The 'sofile' parameter is a system dependent name of the object file. 00059 */ 00060 extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 00061 00062 /* Given an object handle, this function looks up the address of the 00063 * named function in the shared object and returns it. This address 00064 * is no longer valid after calling SDL_UnloadObject(). 00065 */ 00066 extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 00067 const char *name); 00068 00069 /* Unload a shared object from memory */ 00070 extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 00071 00072 /* Ends C function definitions when using C++ */ 00073 #ifdef __cplusplus 00074 /* *INDENT-OFF* */ 00075 } 00076 /* *INDENT-ON* */ 00077 #endif 00078 #include "close_code.h" 00079 00080 #endif /* _SDL_loadso_h */ 00081 00082 /* vi: set ts=4 sw=4 expandtab: */