SDL Library

Dependents:   H261_decoder



File content as of revision 0:7fb6877b5d7c:

  Simple DirectMedia Layer
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>

  arising from the use of this software.

  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
     misrepresented as being the original software.

 *  \file SDL_loadso.h
 *  System dependent library loading routines
 *  Some things to keep in mind:
 *  \li These functions only work on C function names.  Other languages may
 *      have name mangling and intrinsic language support that varies from
 *      compiler to compiler.
 *  \li Make sure you declare your function pointers with the same calling
 *      convention as the actual library function.  Your code will crash
 *      mysteriously if you do not do this.
 *  \li Avoid namespace collisions.  If you load a symbol from the library,
 *      it is not defined whether or not it goes into the global symbol
 *      namespace for the application.  If it does and it conflicts with
 *      symbols in your code or other shared libraries, you will not get
 *      the results you expect. :)

#ifndef _SDL_loadso_h
#define _SDL_loadso_h

#include "SDL_stdinc.h"
#include "SDL_error.h"

#include "begin_code.h"
#ifdef __cplusplus
extern "C" {

 *  This function dynamically loads a shared object and returns a pointer

 *  is no longer valid after calling SDL_UnloadObject().
extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle,
                                               const char *name);

 *  Unload a shared object from memory.
extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);

#ifdef __cplusplus
#include "close_code.h"

#endif /* _SDL_loadso_h */
