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 19 struct network_handler_args { 20 struct wpa_supplicant *wpa_s; 21 struct wpa_ssid *ssid; 22 }; 23 24 struct bss_handler_args { 25 struct wpa_supplicant *wpa_s; 26 unsigned int id; 27 }; 28 29 DBusMessage * wpas_dbus_simple_property_getter(DBusMessage *message, 30 const int type, 31 const void *val); 32 33 DBusMessage * wpas_dbus_simple_property_setter(DBusMessage *message, 34 const int type, void *val); 35 36 DBusMessage * wpas_dbus_simple_array_property_getter(DBusMessage *message, 37 const int type, 38 const void *array, 39 size_t array_len); 40 41 DBusMessage * wpas_dbus_handler_create_interface(DBusMessage *message, 42 struct wpa_global *global); 43 44 DBusMessage * wpas_dbus_handler_remove_interface(DBusMessage *message, 45 struct wpa_global *global); 46 47 DBusMessage * wpas_dbus_handler_get_interface(DBusMessage *message, 48 struct wpa_global *global); 49 50 DBusMessage * wpas_dbus_getter_debug_level(DBusMessage *message, 51 struct wpa_global *global); 52 53 DBusMessage * wpas_dbus_getter_debug_timestamp(DBusMessage *message, 54 struct wpa_global *global); 55 56 DBusMessage * wpas_dbus_getter_debug_show_keys(DBusMessage *message, 57 struct wpa_global *global); 58 59 DBusMessage * wpas_dbus_setter_debug_level(DBusMessage *message, 60 struct wpa_global *global); 61 62 DBusMessage * wpas_dbus_setter_debug_timestamp(DBusMessage *message, 63 struct wpa_global *global); 64 65 DBusMessage * wpas_dbus_setter_debug_show_keys(DBusMessage *message, 66 struct wpa_global *global); 67 68 DBusMessage * wpas_dbus_getter_interfaces(DBusMessage *message, 69 struct wpa_global *global); 70 71 DBusMessage * wpas_dbus_getter_eap_methods(DBusMessage *message, 72 void *nothing); 73 74 DBusMessage * wpas_dbus_handler_scan(DBusMessage *message, 75 struct wpa_supplicant *wpa_s); 76 77 DBusMessage * wpas_dbus_handler_disconnect(DBusMessage *message, 78 struct wpa_supplicant *wpa_s); 79 80 DBusMessage * wpas_dbus_handler_add_network(DBusMessage *message, 81 struct wpa_supplicant *wpa_s); 82 83 DBusMessage * wpas_dbus_handler_remove_network(DBusMessage *message, 84 struct wpa_supplicant *wpa_s); 85 86 DBusMessage * wpas_dbus_handler_select_network(DBusMessage *message, 87 struct wpa_supplicant *wpa_s); 88 89 DBusMessage * wpas_dbus_handler_add_blob(DBusMessage *message, 90 struct wpa_supplicant *wpa_s); 91 92 DBusMessage * wpas_dbus_handler_get_blob(DBusMessage *message, 93 struct wpa_supplicant *wpa_s); 94 95 DBusMessage * wpas_dbus_handler_remove_blob(DBusMessage *message, 96 struct wpa_supplicant *wpa_s); 97 98 DBusMessage * wpas_dbus_getter_capabilities(DBusMessage *message, 99 struct wpa_supplicant *wpa_s); 100 101 DBusMessage * wpas_dbus_getter_state(DBusMessage *message, 102 struct wpa_supplicant *wpa_s); 103 104 DBusMessage * wpas_dbus_getter_scanning(DBusMessage *message, 105 struct wpa_supplicant *wpa_s); 106 107 DBusMessage * wpas_dbus_getter_ap_scan(DBusMessage *message, 108 struct wpa_supplicant *wpa_s); 109 110 DBusMessage * wpas_dbus_setter_ap_scan(DBusMessage *message, 111 struct wpa_supplicant *wpa_s); 112 113 DBusMessage * wpas_dbus_getter_ifname(DBusMessage *message, 114 struct wpa_supplicant *wpa_s); 115 116 DBusMessage * wpas_dbus_getter_driver(DBusMessage *message, 117 struct wpa_supplicant *wpa_s); 118 119 DBusMessage * wpas_dbus_getter_bridge_ifname(DBusMessage *message, 120 struct wpa_supplicant *wpa_s); 121 122 DBusMessage * wpas_dbus_getter_current_bss(DBusMessage *message, 123 struct wpa_supplicant *wpa_s); 124 125 DBusMessage * wpas_dbus_getter_current_network(DBusMessage *message, 126 struct wpa_supplicant *wpa_s); 127 128 DBusMessage * wpas_dbus_getter_bsss(DBusMessage *message, 129 struct wpa_supplicant *wpa_s); 130 131 DBusMessage * wpas_dbus_getter_networks(DBusMessage *message, 132 struct wpa_supplicant *wpa_s); 133 134 DBusMessage * wpas_dbus_getter_blobs(DBusMessage *message, 135 struct wpa_supplicant *bss); 136 137 DBusMessage * wpas_dbus_getter_bss_bssid(DBusMessage *message, 138 struct bss_handler_args *bss); 139 140 DBusMessage * wpas_dbus_getter_bss_ssid(DBusMessage *message, 141 struct bss_handler_args *bss); 142 143 DBusMessage * wpas_dbus_getter_bss_privacy(DBusMessage *message, 144 struct bss_handler_args *bss); 145 146 DBusMessage * wpas_dbus_getter_bss_mode(DBusMessage *message, 147 struct bss_handler_args *bss); 148 149 DBusMessage * wpas_dbus_getter_bss_signal(DBusMessage *message, 150 struct bss_handler_args *bss); 151 152 DBusMessage * wpas_dbus_getter_bss_frequency(DBusMessage *message, 153 struct bss_handler_args *bss); 154 155 DBusMessage * wpas_dbus_getter_bss_rates(DBusMessage *message, 156 struct bss_handler_args *bss); 157 158 DBusMessage * wpas_dbus_getter_bss_wpa(DBusMessage *message, 159 struct bss_handler_args *bss); 160 161 DBusMessage * wpas_dbus_getter_bss_rsn(DBusMessage *message, 162 struct bss_handler_args *bss); 163 164 DBusMessage * wpas_dbus_getter_bss_ies(DBusMessage *message, 165 struct bss_handler_args *bss); 166 167 DBusMessage * wpas_dbus_getter_enabled(DBusMessage *message, 168 struct network_handler_args *net); 169 170 DBusMessage * wpas_dbus_setter_enabled(DBusMessage *message, 171 struct network_handler_args *net); 172 173 DBusMessage * wpas_dbus_getter_network_properties( 174 DBusMessage *message, struct network_handler_args *net); 175 176 DBusMessage * wpas_dbus_setter_network_properties( 177 DBusMessage *message, struct network_handler_args *net); 178 179 DBusMessage * wpas_dbus_handler_wps_start(DBusMessage *message, 180 struct wpa_supplicant *wpa_s); 181 182 DBusMessage * wpas_dbus_getter_process_credentials( 183 DBusMessage *message, struct wpa_supplicant *wpa_s); 184 185 DBusMessage * wpas_dbus_setter_process_credentials( 186 DBusMessage *message, struct wpa_supplicant *wpa_s); 187 188 DBusMessage * wpas_dbus_getter_credentials(DBusMessage *message, 189 struct wpa_supplicant *wpa_s); 190 191 DBusMessage * wpas_dbus_error_invalid_args(DBusMessage *message, 192 const char *arg); 193 DBusMessage * wpas_dbus_error_unknown_error(DBusMessage *message, 194 const char *arg); 195 196 #endif /* CTRL_IFACE_DBUS_HANDLERS_NEW_H */ 197