use public scope for init_filter and deinit_filter

This commit is contained in:
twinaphex 2014-04-13 18:29:57 +02:00
parent 189096b867
commit 552c0ab495
2 changed files with 10 additions and 5 deletions

View File

@ -1282,7 +1282,7 @@ void uninit_audio(void)
}
#ifdef HAVE_DYLIB
static void deinit_filter(void)
void rarch_deinit_filter(void)
{
g_extern.filter.active = false;
@ -1301,7 +1301,7 @@ static void deinit_filter(void)
memset(&g_extern.filter.scaler, 0, sizeof(g_extern.filter.scaler));
}
static void init_filter(bool rgb32)
void rarch_init_filter(bool rgb32)
{
unsigned i;
if (g_extern.filter.active)
@ -1390,7 +1390,7 @@ static void init_filter(bool rgb32)
error:
RARCH_ERR("CPU filter init failed.\n");
deinit_filter();
rarch_deinit_filter();
}
#endif
@ -1457,7 +1457,7 @@ static bool init_video_pixel_converter(unsigned size)
void init_video_input(void)
{
#ifdef HAVE_DYLIB
init_filter(g_extern.system.pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888);
rarch_init_filter(g_extern.system.pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888);
#endif
init_shader_dir();
@ -1640,7 +1640,7 @@ void uninit_video_input(void)
deinit_pixel_converter();
#ifdef HAVE_DYLIB
deinit_filter();
rarch_deinit_filter();
#endif
deinit_shader_dir();

View File

@ -645,6 +645,11 @@ bool driver_set_rumble_state(unsigned port, enum retro_rumble_effect effect, uin
bool driver_set_sensor_state(unsigned port, enum retro_sensor_action action, unsigned rate);
float driver_sensor_get_input(unsigned port, unsigned action);
#ifdef HAVE_DYLIB
void rarch_deinit_filter(void);
void rarch_init_filter(bool rgb32);
#endif
// Used by RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE
#ifdef HAVE_CAMERA
bool driver_camera_start(void);