src/SDL_loadso.h
author Sam Lantinga
Thu, 07 Mar 2002 20:23:11 +0000
changeset 302 8a86bdf34f0f
parent 297 f6ffac90895c
permissions -rw-r--r--
Added Atari joystick support (thanks Patrice!)
slouken@296
     1
/*
slouken@296
     2
    SDL - Simple DirectMedia Layer
slouken@297
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
slouken@296
     4
slouken@296
     5
    This library is free software; you can redistribute it and/or
slouken@296
     6
    modify it under the terms of the GNU Library General Public
slouken@296
     7
    License as published by the Free Software Foundation; either
slouken@296
     8
    version 2 of the License, or (at your option) any later version.
slouken@296
     9
slouken@296
    10
    This library is distributed in the hope that it will be useful,
slouken@296
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@296
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@296
    13
    Library General Public License for more details.
slouken@296
    14
slouken@296
    15
    You should have received a copy of the GNU Library General Public
slouken@296
    16
    License along with this library; if not, write to the Free
slouken@296
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@296
    18
slouken@296
    19
    Sam Lantinga
slouken@296
    20
    slouken@libsdl.org
slouken@296
    21
*/
slouken@296
    22
slouken@296
    23
#ifdef SAVE_RCSID
slouken@296
    24
static char rcsid =
slouken@296
    25
 "@(#) $Id$";
slouken@296
    26
#endif
slouken@296
    27
slouken@296
    28
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
slouken@296
    29
/* System dependent library loading routines                           */
slouken@296
    30
/* Note: This API isn't meant for public release until SDL 1.3         */
slouken@296
    31
slouken@296
    32
#ifndef _SDL_loadso_h
slouken@296
    33
#define _SDL_loadso_h
slouken@296
    34
slouken@296
    35
#include "begin_code.h"
slouken@296
    36
/* Set up for C function definitions, even when using C++ */
slouken@296
    37
#ifdef __cplusplus
slouken@296
    38
extern "C" {
slouken@296
    39
#endif
slouken@296
    40
slouken@296
    41
/* This function dynamically loads a shared object and returns a pointer
slouken@296
    42
 * to the object handle (or NULL if there was an error).
slouken@296
    43
 * The 'sofile' parameter is a system dependent name of the object file.
slouken@296
    44
 */
slouken@296
    45
extern DECLSPEC void *SDL_LoadObject(const char *sofile);
slouken@296
    46
slouken@296
    47
/* Given an object handle, this function looks up the address of the
slouken@296
    48
 * named function in the shared object and returns it.  This address
slouken@296
    49
 * is no longer valid after calling SDL_UnloadObject().
slouken@296
    50
 */
slouken@296
    51
extern DECLSPEC void *SDL_LoadFunction(void *handle, const char *name);
slouken@296
    52
slouken@296
    53
/* Unload a shared object from memory */
slouken@296
    54
extern DECLSPEC void SDL_UnloadObject(void *handle);
slouken@296
    55
slouken@296
    56
/* Ends C function definitions when using C++ */
slouken@296
    57
#ifdef __cplusplus
slouken@296
    58
}
slouken@296
    59
#endif
slouken@296
    60
#include "close_code.h"
slouken@296
    61
slouken@296
    62
#endif /* _SDL_loadso_h */