RetroArch
wifi_driver.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  * Copyright (C) 2014-2017 - Jean-AndrĂ© Santoni
5  *
6  * RetroArch is free software: you can redistribute it and/or modify it under the terms
7  * of the GNU General Public License as published by the Free Software Found-
8  * ation, either version 3 of the License, or (at your option) any later version.
9  *
10  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  * PURPOSE. See the GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along with RetroArch.
15  * If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __WIFI_DRIVER__H
19 #define __WIFI_DRIVER__H
20 
21 #include <stdint.h>
22 
23 #include <boolean.h>
24 #include <retro_common_api.h>
25 #include <lists/string_list.h>
26 
28 
30 {
45 };
46 
47 typedef struct wifi_driver
48 {
49  void *(*init)(void);
50 
51  void (*free)(void *data);
52 
53  bool (*start)(void *data);
54  void (*stop)(void *data);
55 
56  void (*scan)(void);
57  void (*get_ssids)(struct string_list *list);
58  bool (*ssid_is_online)(unsigned i);
59  bool (*connect_ssid)(unsigned i, const char* passphrase);
60 
61  const char *ident;
63 
66 
76 const char* config_get_wifi_driver_options(void);
77 
85 const void *wifi_driver_find_handle(int index);
86 
94 const char *wifi_driver_find_ident(int index);
95 
96 void driver_wifi_stop(void);
97 
98 bool driver_wifi_start(void);
99 
100 void driver_wifi_scan(void);
101 
102 void driver_wifi_get_ssids(struct string_list *list);
103 
104 bool driver_wifi_ssid_is_online(unsigned i);
105 
106 bool driver_wifi_connect_ssid(unsigned i, const char* passphrase);
107 
109 
111 
112 #endif
Definition: wifi_driver.h:37
Definition: wifi_driver.h:43
const char * ident
Definition: wifi_driver.h:61
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Definition: wifi_driver.h:39
GLuint start
Definition: glext.h:6292
Definition: wifi_driver.h:34
struct wifi_driver wifi_driver_t
bool driver_wifi_connect_ssid(unsigned i, const char *passphrase)
Definition: wifi_driver.c:114
Definition: wifi_driver.h:47
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
Definition: ibxm.h:9
void driver_wifi_get_ssids(struct string_list *list)
Definition: wifi_driver.c:104
bool wifi_driver_ctl(enum rarch_wifi_ctl_state state, void *data)
Definition: wifi_driver.c:119
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:6303
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
void(* scan)(void)
Definition: wifi_driver.h:56
Definition: wifi_driver.h:35
Definition: wifi_driver.h:32
Definition: wifi_driver.h:31
Definition: wifi_driver.h:33
wifi_driver_t wifi_connmanctl
Definition: connmanctl.c:224
Definition: wifi_driver.h:41
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
Definition: wifi_driver.h:38
void(* free)(void *data)
Definition: wifi_driver.h:51
bool(* ssid_is_online)(unsigned i)
Definition: wifi_driver.h:58
const char * wifi_driver_find_ident(int index)
Definition: wifi_driver.c:67
Definition: wifi_driver.h:36
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
wifi_driver_t wifi_null
Definition: nullwifi.c:57
GLuint index
Definition: glext.h:6671
rarch_wifi_ctl_state
Definition: wifi_driver.h:29
void(* stop)(void *data)
Definition: wifi_driver.h:54
bool(* connect_ssid)(unsigned i, const char *passphrase)
Definition: wifi_driver.h:59
Definition: wifi_driver.h:40
const void * wifi_driver_find_handle(int index)
Definition: wifi_driver.c:52
void driver_wifi_scan(void)
Definition: wifi_driver.c:99
bool driver_wifi_ssid_is_online(unsigned i)
Definition: wifi_driver.c:109
bool driver_wifi_start(void)
Definition: wifi_driver.c:94
void driver_wifi_stop(void)
Definition: wifi_driver.c:89
Definition: wifi_driver.h:42
void(* get_ssids)(struct string_list *list)
Definition: wifi_driver.h:57
const char * config_get_wifi_driver_options(void)
Definition: wifi_driver.c:84
Definition: string_list.h:47
Definition: wifi_driver.h:44