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>
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.
10 * Alternatively, this software may be distributed under the terms of BSD
13 * See README and COPYING for more details.
16 #ifndef CTRL_IFACE_DBUS_NEW_HANDLERS_H
17 #define CTRL_IFACE_DBUS_NEW_HANDLERS_H
19 struct network_handler_args
{
20 struct wpa_supplicant
*wpa_s
;
21 struct wpa_ssid
*ssid
;
24 struct bss_handler_args
{
25 struct wpa_supplicant
*wpa_s
;
29 DBusMessage
* wpas_dbus_simple_property_getter(DBusMessage
*message
,
33 DBusMessage
* wpas_dbus_simple_property_setter(DBusMessage
*message
,
34 const int type
, void *val
);
36 DBusMessage
* wpas_dbus_simple_array_property_getter(DBusMessage
*message
,
41 DBusMessage
* wpas_dbus_handler_create_interface(DBusMessage
*message
,
42 struct wpa_global
*global
);
44 DBusMessage
* wpas_dbus_handler_remove_interface(DBusMessage
*message
,
45 struct wpa_global
*global
);
47 DBusMessage
* wpas_dbus_handler_get_interface(DBusMessage
*message
,
48 struct wpa_global
*global
);
50 DBusMessage
* wpas_dbus_getter_debug_level(DBusMessage
*message
,
51 struct wpa_global
*global
);
53 DBusMessage
* wpas_dbus_getter_debug_timestamp(DBusMessage
*message
,
54 struct wpa_global
*global
);
56 DBusMessage
* wpas_dbus_getter_debug_show_keys(DBusMessage
*message
,
57 struct wpa_global
*global
);
59 DBusMessage
* wpas_dbus_setter_debug_level(DBusMessage
*message
,
60 struct wpa_global
*global
);
62 DBusMessage
* wpas_dbus_setter_debug_timestamp(DBusMessage
*message
,
63 struct wpa_global
*global
);
65 DBusMessage
* wpas_dbus_setter_debug_show_keys(DBusMessage
*message
,
66 struct wpa_global
*global
);
68 DBusMessage
* wpas_dbus_getter_interfaces(DBusMessage
*message
,
69 struct wpa_global
*global
);
71 DBusMessage
* wpas_dbus_getter_eap_methods(DBusMessage
*message
,
74 DBusMessage
* wpas_dbus_handler_scan(DBusMessage
*message
,
75 struct wpa_supplicant
*wpa_s
);
77 DBusMessage
* wpas_dbus_handler_disconnect(DBusMessage
*message
,
78 struct wpa_supplicant
*wpa_s
);
80 DBusMessage
* wpas_dbus_handler_add_network(DBusMessage
*message
,
81 struct wpa_supplicant
*wpa_s
);
83 DBusMessage
* wpas_dbus_handler_remove_network(DBusMessage
*message
,
84 struct wpa_supplicant
*wpa_s
);
86 DBusMessage
* wpas_dbus_handler_select_network(DBusMessage
*message
,
87 struct wpa_supplicant
*wpa_s
);
89 DBusMessage
* wpas_dbus_handler_add_blob(DBusMessage
*message
,
90 struct wpa_supplicant
*wpa_s
);
92 DBusMessage
* wpas_dbus_handler_get_blob(DBusMessage
*message
,
93 struct wpa_supplicant
*wpa_s
);
95 DBusMessage
* wpas_dbus_handler_remove_blob(DBusMessage
*message
,
96 struct wpa_supplicant
*wpa_s
);
98 DBusMessage
* wpas_dbus_getter_capabilities(DBusMessage
*message
,
99 struct wpa_supplicant
*wpa_s
);
101 DBusMessage
* wpas_dbus_getter_state(DBusMessage
*message
,
102 struct wpa_supplicant
*wpa_s
);
104 DBusMessage
* wpas_dbus_getter_scanning(DBusMessage
*message
,
105 struct wpa_supplicant
*wpa_s
);
107 DBusMessage
* wpas_dbus_getter_ap_scan(DBusMessage
*message
,
108 struct wpa_supplicant
*wpa_s
);
110 DBusMessage
* wpas_dbus_setter_ap_scan(DBusMessage
*message
,
111 struct wpa_supplicant
*wpa_s
);
113 DBusMessage
* wpas_dbus_getter_ifname(DBusMessage
*message
,
114 struct wpa_supplicant
*wpa_s
);
116 DBusMessage
* wpas_dbus_getter_driver(DBusMessage
*message
,
117 struct wpa_supplicant
*wpa_s
);
119 DBusMessage
* wpas_dbus_getter_bridge_ifname(DBusMessage
*message
,
120 struct wpa_supplicant
*wpa_s
);
122 DBusMessage
* wpas_dbus_getter_current_bss(DBusMessage
*message
,
123 struct wpa_supplicant
*wpa_s
);
125 DBusMessage
* wpas_dbus_getter_current_network(DBusMessage
*message
,
126 struct wpa_supplicant
*wpa_s
);
128 DBusMessage
* wpas_dbus_getter_bsss(DBusMessage
*message
,
129 struct wpa_supplicant
*wpa_s
);
131 DBusMessage
* wpas_dbus_getter_networks(DBusMessage
*message
,
132 struct wpa_supplicant
*wpa_s
);
134 DBusMessage
* wpas_dbus_getter_blobs(DBusMessage
*message
,
135 struct wpa_supplicant
*bss
);
137 DBusMessage
* wpas_dbus_getter_bss_bssid(DBusMessage
*message
,
138 struct bss_handler_args
*bss
);
140 DBusMessage
* wpas_dbus_getter_bss_ssid(DBusMessage
*message
,
141 struct bss_handler_args
*bss
);
143 DBusMessage
* wpas_dbus_getter_bss_privacy(DBusMessage
*message
,
144 struct bss_handler_args
*bss
);
146 DBusMessage
* wpas_dbus_getter_bss_mode(DBusMessage
*message
,
147 struct bss_handler_args
*bss
);
149 DBusMessage
* wpas_dbus_getter_bss_signal(DBusMessage
*message
,
150 struct bss_handler_args
*bss
);
152 DBusMessage
* wpas_dbus_getter_bss_frequency(DBusMessage
*message
,
153 struct bss_handler_args
*bss
);
155 DBusMessage
* wpas_dbus_getter_bss_rates(DBusMessage
*message
,
156 struct bss_handler_args
*bss
);
158 DBusMessage
* wpas_dbus_getter_bss_wpa(DBusMessage
*message
,
159 struct bss_handler_args
*bss
);
161 DBusMessage
* wpas_dbus_getter_bss_rsn(DBusMessage
*message
,
162 struct bss_handler_args
*bss
);
164 DBusMessage
* wpas_dbus_getter_bss_ies(DBusMessage
*message
,
165 struct bss_handler_args
*bss
);
167 DBusMessage
* wpas_dbus_getter_enabled(DBusMessage
*message
,
168 struct network_handler_args
*net
);
170 DBusMessage
* wpas_dbus_setter_enabled(DBusMessage
*message
,
171 struct network_handler_args
*net
);
173 DBusMessage
* wpas_dbus_getter_network_properties(
174 DBusMessage
*message
, struct network_handler_args
*net
);
176 DBusMessage
* wpas_dbus_setter_network_properties(
177 DBusMessage
*message
, struct network_handler_args
*net
);
179 DBusMessage
* wpas_dbus_handler_wps_start(DBusMessage
*message
,
180 struct wpa_supplicant
*wpa_s
);
182 DBusMessage
* wpas_dbus_getter_process_credentials(
183 DBusMessage
*message
, struct wpa_supplicant
*wpa_s
);
185 DBusMessage
* wpas_dbus_setter_process_credentials(
186 DBusMessage
*message
, struct wpa_supplicant
*wpa_s
);
188 DBusMessage
* wpas_dbus_getter_credentials(DBusMessage
*message
,
189 struct wpa_supplicant
*wpa_s
);
191 DBusMessage
* wpas_dbus_error_invalid_args(DBusMessage
*message
,
193 DBusMessage
* wpas_dbus_error_unknown_error(DBusMessage
*message
,
196 #endif /* CTRL_IFACE_DBUS_HANDLERS_NEW_H */