Turn rarch_environment_cb into static function

This commit is contained in:
twinaphex 2019-07-22 19:44:42 +02:00
parent 12cc7b3213
commit 36a48cd7f9
2 changed files with 2 additions and 13 deletions

View File

@ -53,18 +53,6 @@ const struct retro_controller_description *
libretro_find_controller_description( libretro_find_controller_description(
const struct retro_controller_info *info, unsigned id); const struct retro_controller_info *info, unsigned id);
/**
* rarch_environment_cb:
* @cmd : Identifier of command.
* @data : Pointer to data.
*
* Environment callback function implementation.
*
* Returns: true (1) if environment callback command could
* be performed, otherwise false (0).
**/
bool rarch_environment_cb(unsigned cmd, void *data);
struct retro_core_t struct retro_core_t
{ {
void (*retro_init)(void); void (*retro_init)(void);

View File

@ -1634,6 +1634,7 @@ static char *secondary_library_path = NULL;
#endif #endif
/* Forward declarations */ /* Forward declarations */
static bool rarch_environment_cb(unsigned cmd, void *data);
static bool driver_location_get_position(double *lat, double *lon, static bool driver_location_get_position(double *lat, double *lon,
double *horiz_accuracy, double *vert_accuracy); double *horiz_accuracy, double *vert_accuracy);
static void driver_location_set_interval(unsigned interval_msecs, static void driver_location_set_interval(unsigned interval_msecs,
@ -6405,7 +6406,7 @@ static bool rarch_clear_all_thread_waits(unsigned clear_threads, void *data)
* Returns: true (1) if environment callback command could * Returns: true (1) if environment callback command could
* be performed, otherwise false (0). * be performed, otherwise false (0).
**/ **/
bool rarch_environment_cb(unsigned cmd, void *data) static bool rarch_environment_cb(unsigned cmd, void *data)
{ {
unsigned p; unsigned p;
settings_t *settings = configuration_settings; settings_t *settings = configuration_settings;