Take some dependencies out of dylib.h

This commit is contained in:
twinaphex 2015-05-08 09:44:41 +02:00
parent a5b752454a
commit 4665f2d17a
3 changed files with 21 additions and 23 deletions

View File

@ -15,8 +15,7 @@
*/
#include <string.h>
#include "dynamic.h"
#include "dylib.h"
#ifdef NEED_DYNAMIC

21
dylib.h
View File

@ -18,7 +18,6 @@
#define __DYLIB_H
#include <boolean.h>
#include "libretro.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
@ -37,26 +36,6 @@ extern "C" {
typedef void *dylib_t;
typedef void (*function_t)(void);
/**
* init_libretro_sym:
* @dummy : Load dummy symbols if true
*
* Initializes libretro symbols and
* setups environment callback functions.
**/
void init_libretro_sym(bool dummy);
/**
* uninit_libretro_sym:
*
* Frees libretro core.
*
* Frees all core options,
* associated state, and
* unbind all libretro callback symbols.
**/
void uninit_libretro_sym(void);
#ifdef NEED_DYNAMIC
/**
* dylib_load:

View File

@ -166,6 +166,26 @@ extern void *(*pretro_get_memory_data)(unsigned);
extern size_t (*pretro_get_memory_size)(unsigned);
/**
* init_libretro_sym:
* @dummy : Load dummy symbols if true
*
* Initializes libretro symbols and
* setups environment callback functions.
**/
void init_libretro_sym(bool dummy);
/**
* uninit_libretro_sym:
*
* Frees libretro core.
*
* Frees all core options,
* associated state, and
* unbind all libretro callback symbols.
**/
void uninit_libretro_sym(void);
#ifdef __cplusplus
}