mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-11 20:44:24 +00:00
Revert "Turn wifi_driver_ctl into a static function"
This reverts commit 8a5ae0b6cf
.
This commit is contained in:
parent
8a5ae0b6cf
commit
b62476da77
63
retroarch.c
63
retroarch.c
@ -439,7 +439,37 @@ const char* config_get_wifi_driver_options(void)
|
|||||||
return char_list_new_special(STRING_LIST_WIFI_DRIVERS, NULL);
|
return char_list_new_special(STRING_LIST_WIFI_DRIVERS, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool wifi_driver_ctl(enum rarch_wifi_ctl_state state, void *data)
|
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)
|
||||||
{
|
{
|
||||||
settings_t *settings = configuration_settings;
|
settings_t *settings = configuration_settings;
|
||||||
|
|
||||||
@ -547,37 +577,6 @@ static bool wifi_driver_ctl(enum rarch_wifi_ctl_state state, void *data)
|
|||||||
return false;
|
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 */
|
/* UI Companion */
|
||||||
|
|
||||||
static const ui_companion_driver_t *ui_companion_drivers[] = {
|
static const ui_companion_driver_t *ui_companion_drivers[] = {
|
||||||
|
@ -102,6 +102,8 @@ bool driver_wifi_ssid_is_online(unsigned i);
|
|||||||
|
|
||||||
bool driver_wifi_connect_ssid(unsigned i, const char* passphrase);
|
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
|
RETRO_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user