2009-11-09 16:51:59 -05:00
|
|
|
/*
|
|
|
|
* WPA Supplicant / dbus-based control interface
|
|
|
|
* Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
|
2010-01-16 09:37:37 -05:00
|
|
|
* Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com>
|
2009-11-09 16:51:59 -05:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CTRL_IFACE_DBUS_NEW_HANDLERS_H
|
|
|
|
#define CTRL_IFACE_DBUS_NEW_HANDLERS_H
|
|
|
|
|
|
|
|
struct network_handler_args {
|
|
|
|
struct wpa_supplicant *wpa_s;
|
|
|
|
struct wpa_ssid *ssid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct bss_handler_args {
|
|
|
|
struct wpa_supplicant *wpa_s;
|
2009-12-27 18:10:07 -05:00
|
|
|
unsigned int id;
|
2009-11-09 16:51:59 -05:00
|
|
|
};
|
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_simple_property_getter(DBusMessageIter *iter,
|
|
|
|
const int type,
|
|
|
|
const void *val,
|
|
|
|
DBusError *error);
|
2010-01-01 04:56:56 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_simple_property_setter(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
const int type, void *val);
|
2010-01-01 04:56:56 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_simple_array_property_getter(DBusMessageIter *iter,
|
|
|
|
const int type,
|
|
|
|
const void *array,
|
|
|
|
size_t array_len,
|
|
|
|
DBusError *error);
|
2010-01-01 04:56:56 -05:00
|
|
|
|
2012-02-25 03:45:17 -05:00
|
|
|
dbus_bool_t wpas_dbus_simple_array_array_property_getter(DBusMessageIter *iter,
|
|
|
|
const int type,
|
|
|
|
struct wpabuf **array,
|
|
|
|
size_t array_len,
|
|
|
|
DBusError *error);
|
|
|
|
|
2009-11-09 16:51:59 -05:00
|
|
|
DBusMessage * wpas_dbus_handler_create_interface(DBusMessage *message,
|
|
|
|
struct wpa_global *global);
|
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_remove_interface(DBusMessage *message,
|
|
|
|
struct wpa_global *global);
|
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_get_interface(DBusMessage *message,
|
|
|
|
struct wpa_global *global);
|
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_debug_level(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_debug_timestamp(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 06:00:22 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_debug_show_keys(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 06:00:22 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_debug_level(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2010-01-01 06:00:22 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_debug_timestamp(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 06:00:22 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_debug_show_keys(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_interfaces(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_eap_methods(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_scan(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_disconnect(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t set_network_properties(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid,
|
|
|
|
DBusMessageIter *iter,
|
|
|
|
DBusError *error);
|
2011-06-24 04:20:19 -04:00
|
|
|
|
2009-11-09 16:51:59 -05:00
|
|
|
DBusMessage * wpas_dbus_handler_add_network(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_remove_network(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
2011-03-20 06:12:12 -04:00
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_remove_all_networks(
|
|
|
|
DBusMessage *message, struct wpa_supplicant *wpa_s);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_select_network(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
2011-10-24 12:09:06 -04:00
|
|
|
DBusMessage * wpas_dbus_handler_network_reply(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
2009-11-09 16:51:59 -05:00
|
|
|
DBusMessage * wpas_dbus_handler_add_blob(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_get_blob(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_remove_blob(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
2011-03-20 06:02:33 -04:00
|
|
|
DBusMessage * wpas_dbus_handler_flush_bss(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_capabilities(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_state(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_scanning(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_ap_scan(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_ap_scan(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2011-03-20 06:40:59 -04:00
|
|
|
|
2012-01-28 04:21:37 -05:00
|
|
|
dbus_bool_t wpas_dbus_getter_fast_reauth(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
|
|
|
|
|
|
|
dbus_bool_t wpas_dbus_setter_fast_reauth(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_expire_age(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2011-03-20 06:40:59 -04:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_bss_expire_age(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2011-03-20 06:40:59 -04:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_expire_count(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2011-03-20 06:40:59 -04:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_bss_expire_count(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2011-04-04 18:24:26 -04:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_country(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2011-04-04 18:24:26 -04:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_country(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2012-04-01 11:05:22 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_scan_interval(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
|
|
|
|
|
|
|
dbus_bool_t wpas_dbus_setter_scan_interval(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_ifname(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_driver(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bridge_ifname(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_current_bss(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_current_network(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_current_auth_mode(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2011-03-15 07:53:56 -04:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bsss(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_networks(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_blobs(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_bssid(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_ssid(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_privacy(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_mode(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_signal(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_frequency(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_rates(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_wpa(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_rsn(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2010-01-01 05:28:24 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_bss_ies(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_enabled(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_enabled(DBusMessageIter *iter, DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_network_properties(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_network_properties(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
|
|
|
DBusMessage * wpas_dbus_handler_wps_start(DBusMessage *message,
|
|
|
|
struct wpa_supplicant *wpa_s);
|
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_getter_process_credentials(DBusMessageIter *iter,
|
|
|
|
DBusError *error, void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2011-07-29 14:25:39 -04:00
|
|
|
dbus_bool_t wpas_dbus_setter_process_credentials(DBusMessageIter *iter,
|
|
|
|
DBusError *error,
|
|
|
|
void *user_data);
|
2009-11-09 16:51:59 -05:00
|
|
|
|
2010-01-01 14:52:29 -05:00
|
|
|
DBusMessage * wpas_dbus_error_invalid_args(DBusMessage *message,
|
|
|
|
const char *arg);
|
2009-12-20 14:04:40 -05:00
|
|
|
DBusMessage * wpas_dbus_error_unknown_error(DBusMessage *message,
|
|
|
|
const char *arg);
|
|
|
|
|
2009-11-09 16:51:59 -05:00
|
|
|
#endif /* CTRL_IFACE_DBUS_HANDLERS_NEW_H */
|