mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Turn wifi_driver_ctl into a static function
This commit is contained in:
parent
de9f7e521b
commit
8a5ae0b6cf
63
retroarch.c
63
retroarch.c
@ -439,37 +439,7 @@ const char* config_get_wifi_driver_options(void)
|
||||
return char_list_new_special(STRING_LIST_WIFI_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void driver_wifi_stop(void)
|
||||
{
|
||||
wifi_driver_ctl(RARCH_WIFI_CTL_START, NULL);
|
||||
}
|
||||
|
||||
bool driver_wifi_start(void)
|
||||
{
|
||||
return wifi_driver_ctl(RARCH_WIFI_CTL_START, NULL);
|
||||
}
|
||||
|
||||
void driver_wifi_scan()
|
||||
{
|
||||
wifi_driver->scan();
|
||||
}
|
||||
|
||||
void driver_wifi_get_ssids(struct string_list* ssids)
|
||||
{
|
||||
wifi_driver->get_ssids(ssids);
|
||||
}
|
||||
|
||||
bool driver_wifi_ssid_is_online(unsigned i)
|
||||
{
|
||||
return wifi_driver->ssid_is_online(i);
|
||||
}
|
||||
|
||||
bool driver_wifi_connect_ssid(unsigned i, const char* passphrase)
|
||||
{
|
||||
return wifi_driver->connect_ssid(i, passphrase);
|
||||
}
|
||||
|
||||
bool wifi_driver_ctl(enum rarch_wifi_ctl_state state, void *data)
|
||||
static bool wifi_driver_ctl(enum rarch_wifi_ctl_state state, void *data)
|
||||
{
|
||||
settings_t *settings = configuration_settings;
|
||||
|
||||
@ -577,6 +547,37 @@ bool wifi_driver_ctl(enum rarch_wifi_ctl_state state, void *data)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void driver_wifi_stop(void)
|
||||
{
|
||||
wifi_driver_ctl(RARCH_WIFI_CTL_START, NULL);
|
||||
}
|
||||
|
||||
bool driver_wifi_start(void)
|
||||
{
|
||||
return wifi_driver_ctl(RARCH_WIFI_CTL_START, NULL);
|
||||
}
|
||||
|
||||
void driver_wifi_scan()
|
||||
{
|
||||
wifi_driver->scan();
|
||||
}
|
||||
|
||||
void driver_wifi_get_ssids(struct string_list* ssids)
|
||||
{
|
||||
wifi_driver->get_ssids(ssids);
|
||||
}
|
||||
|
||||
bool driver_wifi_ssid_is_online(unsigned i)
|
||||
{
|
||||
return wifi_driver->ssid_is_online(i);
|
||||
}
|
||||
|
||||
bool driver_wifi_connect_ssid(unsigned i, const char* passphrase)
|
||||
{
|
||||
return wifi_driver->connect_ssid(i, passphrase);
|
||||
}
|
||||
|
||||
/* UI Companion */
|
||||
|
||||
static const ui_companion_driver_t *ui_companion_drivers[] = {
|
||||
|
@ -102,8 +102,6 @@ bool driver_wifi_ssid_is_online(unsigned i);
|
||||
|
||||
bool driver_wifi_connect_ssid(unsigned i, const char* passphrase);
|
||||
|
||||
bool wifi_driver_ctl(enum rarch_wifi_ctl_state state, void *data);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user