1/*
2 * WPA Supplicant / dbus-based control interface
3 * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
4 * Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Alternatively, this software may be distributed under the terms of BSD
11 * license.
12 *
13 * See README and COPYING for more details.
14 */
15
16#ifndef CTRL_IFACE_DBUS_NEW_HANDLERS_H
17#define CTRL_IFACE_DBUS_NEW_HANDLERS_H
18
19struct network_handler_args {
20 struct wpa_supplicant *wpa_s;
21 struct wpa_ssid *ssid;
22};
23
24struct bss_handler_args {
25 struct wpa_supplicant *wpa_s;
26 unsigned int id;
27};
28
29DBusMessage * wpas_dbus_simple_property_getter(DBusMessage *message,
30 const int type,
31 const void *val);
32
33DBusMessage * wpas_dbus_simple_property_setter(DBusMessage *message,
34 const int type, void *val);
35
36DBusMessage * wpas_dbus_simple_array_property_getter(DBusMessage *message,
37 const int type,
38 const void *array,
39 size_t array_len);
40
41DBusMessage * wpas_dbus_handler_create_interface(DBusMessage *message,
42 struct wpa_global *global);
43
44DBusMessage * wpas_dbus_handler_remove_interface(DBusMessage *message,
45 struct wpa_global *global);
46
47DBusMessage * wpas_dbus_handler_get_interface(DBusMessage *message,
48 struct wpa_global *global);
49
50DBusMessage * wpas_dbus_getter_debug_level(DBusMessage *message,
51 struct wpa_global *global);
52
53DBusMessage * wpas_dbus_getter_debug_timestamp(DBusMessage *message,
54 struct wpa_global *global);
55
56DBusMessage * wpas_dbus_getter_debug_show_keys(DBusMessage *message,
57 struct wpa_global *global);
58
59DBusMessage * wpas_dbus_setter_debug_level(DBusMessage *message,
60 struct wpa_global *global);
61
62DBusMessage * wpas_dbus_setter_debug_timestamp(DBusMessage *message,
63 struct wpa_global *global);
64
65DBusMessage * wpas_dbus_setter_debug_show_keys(DBusMessage *message,
66 struct wpa_global *global);
67
68DBusMessage * wpas_dbus_getter_interfaces(DBusMessage *message,
69 struct wpa_global *global);
70
71DBusMessage * wpas_dbus_getter_eap_methods(DBusMessage *message,
72 void *nothing);
73
74DBusMessage * wpas_dbus_handler_scan(DBusMessage *message,
75 struct wpa_supplicant *wpa_s);
76
77DBusMessage * wpas_dbus_handler_disconnect(DBusMessage *message,
78 struct wpa_supplicant *wpa_s);
79
80DBusMessage * wpas_dbus_handler_add_network(DBusMessage *message,
81 struct wpa_supplicant *wpa_s);
82
83DBusMessage * wpas_dbus_handler_remove_network(DBusMessage *message,
84 struct wpa_supplicant *wpa_s);
85
86DBusMessage * wpas_dbus_handler_select_network(DBusMessage *message,
87 struct wpa_supplicant *wpa_s);
88
89DBusMessage * wpas_dbus_handler_add_blob(DBusMessage *message,
90 struct wpa_supplicant *wpa_s);
91
92DBusMessage * wpas_dbus_handler_get_blob(DBusMessage *message,
93 struct wpa_supplicant *wpa_s);
94
95DBusMessage * wpas_dbus_handler_remove_blob(DBusMessage *message,
96 struct wpa_supplicant *wpa_s);
97
98DBusMessage * wpas_dbus_getter_capabilities(DBusMessage *message,
99 struct wpa_supplicant *wpa_s);
100
101DBusMessage * wpas_dbus_getter_state(DBusMessage *message,
102 struct wpa_supplicant *wpa_s);
103
104DBusMessage * wpas_dbus_getter_scanning(DBusMessage *message,
105 struct wpa_supplicant *wpa_s);
106
107DBusMessage * wpas_dbus_getter_ap_scan(DBusMessage *message,
108 struct wpa_supplicant *wpa_s);
109
110DBusMessage * wpas_dbus_setter_ap_scan(DBusMessage *message,
111 struct wpa_supplicant *wpa_s);
112
113DBusMessage * wpas_dbus_getter_ifname(DBusMessage *message,
114 struct wpa_supplicant *wpa_s);
115
116DBusMessage * wpas_dbus_getter_driver(DBusMessage *message,
117 struct wpa_supplicant *wpa_s);
118
119DBusMessage * wpas_dbus_getter_bridge_ifname(DBusMessage *message,
120 struct wpa_supplicant *wpa_s);
121
122DBusMessage * wpas_dbus_getter_current_bss(DBusMessage *message,
123 struct wpa_supplicant *wpa_s);
124
125DBusMessage * wpas_dbus_getter_current_network(DBusMessage *message,
126 struct wpa_supplicant *wpa_s);
127
128DBusMessage * wpas_dbus_getter_bsss(DBusMessage *message,
129 struct wpa_supplicant *wpa_s);
130
131DBusMessage * wpas_dbus_getter_networks(DBusMessage *message,
132 struct wpa_supplicant *wpa_s);
133
134DBusMessage * wpas_dbus_getter_blobs(DBusMessage *message,
135 struct wpa_supplicant *bss);
136
137DBusMessage * wpas_dbus_getter_bss_bssid(DBusMessage *message,
138 struct bss_handler_args *bss);
139
140DBusMessage * wpas_dbus_getter_bss_ssid(DBusMessage *message,
141 struct bss_handler_args *bss);
142
143DBusMessage * wpas_dbus_getter_bss_privacy(DBusMessage *message,
144 struct bss_handler_args *bss);
145
146DBusMessage * wpas_dbus_getter_bss_mode(DBusMessage *message,
147 struct bss_handler_args *bss);
148
149DBusMessage * wpas_dbus_getter_bss_signal(DBusMessage *message,
150 struct bss_handler_args *bss);
151
152DBusMessage * wpas_dbus_getter_bss_frequency(DBusMessage *message,
153 struct bss_handler_args *bss);
154
155DBusMessage * wpas_dbus_getter_bss_rates(DBusMessage *message,
156 struct bss_handler_args *bss);
157
158DBusMessage * wpas_dbus_getter_bss_wpa(DBusMessage *message,
159 struct bss_handler_args *bss);
160
161DBusMessage * wpas_dbus_getter_bss_rsn(DBusMessage *message,
162 struct bss_handler_args *bss);
163
164DBusMessage * wpas_dbus_getter_bss_ies(DBusMessage *message,
165 struct bss_handler_args *bss);
166
167DBusMessage * wpas_dbus_getter_enabled(DBusMessage *message,
168 struct network_handler_args *net);
169
170DBusMessage * wpas_dbus_setter_enabled(DBusMessage *message,
171 struct network_handler_args *net);
172
173DBusMessage * wpas_dbus_getter_network_properties(
174 DBusMessage *message, struct network_handler_args *net);
175
176DBusMessage * wpas_dbus_setter_network_properties(
177 DBusMessage *message, struct network_handler_args *net);
178
179DBusMessage * wpas_dbus_handler_wps_start(DBusMessage *message,
180 struct wpa_supplicant *wpa_s);
181
182DBusMessage * wpas_dbus_getter_process_credentials(
183 DBusMessage *message, struct wpa_supplicant *wpa_s);
184
185DBusMessage * wpas_dbus_setter_process_credentials(
186 DBusMessage *message, struct wpa_supplicant *wpa_s);
187
188DBusMessage * wpas_dbus_getter_credentials(DBusMessage *message,
189 struct wpa_supplicant *wpa_s);
190
191DBusMessage * wpas_dbus_error_invalid_args(DBusMessage *message,
192 const char *arg);
193DBusMessage * wpas_dbus_error_unknown_error(DBusMessage *message,
194 const char *arg);
195
196#endif /* CTRL_IFACE_DBUS_HANDLERS_NEW_H */
2 * WPA Supplicant / dbus-based control interface
3 * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
4 * Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Alternatively, this software may be distributed under the terms of BSD
11 * license.
12 *
13 * See README and COPYING for more details.
14 */
15
16#ifndef CTRL_IFACE_DBUS_NEW_HANDLERS_H
17#define CTRL_IFACE_DBUS_NEW_HANDLERS_H
18
19struct network_handler_args {
20 struct wpa_supplicant *wpa_s;
21 struct wpa_ssid *ssid;
22};
23
24struct bss_handler_args {
25 struct wpa_supplicant *wpa_s;
26 unsigned int id;
27};
28
29DBusMessage * wpas_dbus_simple_property_getter(DBusMessage *message,
30 const int type,
31 const void *val);
32
33DBusMessage * wpas_dbus_simple_property_setter(DBusMessage *message,
34 const int type, void *val);
35
36DBusMessage * wpas_dbus_simple_array_property_getter(DBusMessage *message,
37 const int type,
38 const void *array,
39 size_t array_len);
40
41DBusMessage * wpas_dbus_handler_create_interface(DBusMessage *message,
42 struct wpa_global *global);
43
44DBusMessage * wpas_dbus_handler_remove_interface(DBusMessage *message,
45 struct wpa_global *global);
46
47DBusMessage * wpas_dbus_handler_get_interface(DBusMessage *message,
48 struct wpa_global *global);
49
50DBusMessage * wpas_dbus_getter_debug_level(DBusMessage *message,
51 struct wpa_global *global);
52
53DBusMessage * wpas_dbus_getter_debug_timestamp(DBusMessage *message,
54 struct wpa_global *global);
55
56DBusMessage * wpas_dbus_getter_debug_show_keys(DBusMessage *message,
57 struct wpa_global *global);
58
59DBusMessage * wpas_dbus_setter_debug_level(DBusMessage *message,
60 struct wpa_global *global);
61
62DBusMessage * wpas_dbus_setter_debug_timestamp(DBusMessage *message,
63 struct wpa_global *global);
64
65DBusMessage * wpas_dbus_setter_debug_show_keys(DBusMessage *message,
66 struct wpa_global *global);
67
68DBusMessage * wpas_dbus_getter_interfaces(DBusMessage *message,
69 struct wpa_global *global);
70
71DBusMessage * wpas_dbus_getter_eap_methods(DBusMessage *message,
72 void *nothing);
73
74DBusMessage * wpas_dbus_handler_scan(DBusMessage *message,
75 struct wpa_supplicant *wpa_s);
76
77DBusMessage * wpas_dbus_handler_disconnect(DBusMessage *message,
78 struct wpa_supplicant *wpa_s);
79
80DBusMessage * wpas_dbus_handler_add_network(DBusMessage *message,
81 struct wpa_supplicant *wpa_s);
82
83DBusMessage * wpas_dbus_handler_remove_network(DBusMessage *message,
84 struct wpa_supplicant *wpa_s);
85
86DBusMessage * wpas_dbus_handler_select_network(DBusMessage *message,
87 struct wpa_supplicant *wpa_s);
88
89DBusMessage * wpas_dbus_handler_add_blob(DBusMessage *message,
90 struct wpa_supplicant *wpa_s);
91
92DBusMessage * wpas_dbus_handler_get_blob(DBusMessage *message,
93 struct wpa_supplicant *wpa_s);
94
95DBusMessage * wpas_dbus_handler_remove_blob(DBusMessage *message,
96 struct wpa_supplicant *wpa_s);
97
98DBusMessage * wpas_dbus_getter_capabilities(DBusMessage *message,
99 struct wpa_supplicant *wpa_s);
100
101DBusMessage * wpas_dbus_getter_state(DBusMessage *message,
102 struct wpa_supplicant *wpa_s);
103
104DBusMessage * wpas_dbus_getter_scanning(DBusMessage *message,
105 struct wpa_supplicant *wpa_s);
106
107DBusMessage * wpas_dbus_getter_ap_scan(DBusMessage *message,
108 struct wpa_supplicant *wpa_s);
109
110DBusMessage * wpas_dbus_setter_ap_scan(DBusMessage *message,
111 struct wpa_supplicant *wpa_s);
112
113DBusMessage * wpas_dbus_getter_ifname(DBusMessage *message,
114 struct wpa_supplicant *wpa_s);
115
116DBusMessage * wpas_dbus_getter_driver(DBusMessage *message,
117 struct wpa_supplicant *wpa_s);
118
119DBusMessage * wpas_dbus_getter_bridge_ifname(DBusMessage *message,
120 struct wpa_supplicant *wpa_s);
121
122DBusMessage * wpas_dbus_getter_current_bss(DBusMessage *message,
123 struct wpa_supplicant *wpa_s);
124
125DBusMessage * wpas_dbus_getter_current_network(DBusMessage *message,
126 struct wpa_supplicant *wpa_s);
127
128DBusMessage * wpas_dbus_getter_bsss(DBusMessage *message,
129 struct wpa_supplicant *wpa_s);
130
131DBusMessage * wpas_dbus_getter_networks(DBusMessage *message,
132 struct wpa_supplicant *wpa_s);
133
134DBusMessage * wpas_dbus_getter_blobs(DBusMessage *message,
135 struct wpa_supplicant *bss);
136
137DBusMessage * wpas_dbus_getter_bss_bssid(DBusMessage *message,
138 struct bss_handler_args *bss);
139
140DBusMessage * wpas_dbus_getter_bss_ssid(DBusMessage *message,
141 struct bss_handler_args *bss);
142
143DBusMessage * wpas_dbus_getter_bss_privacy(DBusMessage *message,
144 struct bss_handler_args *bss);
145
146DBusMessage * wpas_dbus_getter_bss_mode(DBusMessage *message,
147 struct bss_handler_args *bss);
148
149DBusMessage * wpas_dbus_getter_bss_signal(DBusMessage *message,
150 struct bss_handler_args *bss);
151
152DBusMessage * wpas_dbus_getter_bss_frequency(DBusMessage *message,
153 struct bss_handler_args *bss);
154
155DBusMessage * wpas_dbus_getter_bss_rates(DBusMessage *message,
156 struct bss_handler_args *bss);
157
158DBusMessage * wpas_dbus_getter_bss_wpa(DBusMessage *message,
159 struct bss_handler_args *bss);
160
161DBusMessage * wpas_dbus_getter_bss_rsn(DBusMessage *message,
162 struct bss_handler_args *bss);
163
164DBusMessage * wpas_dbus_getter_bss_ies(DBusMessage *message,
165 struct bss_handler_args *bss);
166
167DBusMessage * wpas_dbus_getter_enabled(DBusMessage *message,
168 struct network_handler_args *net);
169
170DBusMessage * wpas_dbus_setter_enabled(DBusMessage *message,
171 struct network_handler_args *net);
172
173DBusMessage * wpas_dbus_getter_network_properties(
174 DBusMessage *message, struct network_handler_args *net);
175
176DBusMessage * wpas_dbus_setter_network_properties(
177 DBusMessage *message, struct network_handler_args *net);
178
179DBusMessage * wpas_dbus_handler_wps_start(DBusMessage *message,
180 struct wpa_supplicant *wpa_s);
181
182DBusMessage * wpas_dbus_getter_process_credentials(
183 DBusMessage *message, struct wpa_supplicant *wpa_s);
184
185DBusMessage * wpas_dbus_setter_process_credentials(
186 DBusMessage *message, struct wpa_supplicant *wpa_s);
187
188DBusMessage * wpas_dbus_getter_credentials(DBusMessage *message,
189 struct wpa_supplicant *wpa_s);
190
191DBusMessage * wpas_dbus_error_invalid_args(DBusMessage *message,
192 const char *arg);
193DBusMessage * wpas_dbus_error_unknown_error(DBusMessage *message,
194 const char *arg);
195
196#endif /* CTRL_IFACE_DBUS_HANDLERS_NEW_H */