diff options
author | Witold Sowa <witold.sowa@gmail.com> | 2009-11-09 23:51:59 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-11-09 23:51:59 +0200 |
commit | 8fc2fb56e456b4dfea4ea7c4afc34c20309560cd (patch) | |
tree | 6bf8c3e77dc769e75b9648db1c8b3284f0264f29 /wpa_supplicant/wpa_supplicant_i.h | |
parent | 097c7b372351486e3954d9a8ee4bd9c2cf7066ba (diff) | |
download | external_wpa_supplicant_8_ti-8fc2fb56e456b4dfea4ea7c4afc34c20309560cd.zip external_wpa_supplicant_8_ti-8fc2fb56e456b4dfea4ea7c4afc34c20309560cd.tar.gz external_wpa_supplicant_8_ti-8fc2fb56e456b4dfea4ea7c4afc34c20309560cd.tar.bz2 |
wpa_supplicant: new DBus API implementation
This patch implements the new DBus API. Both, the new and the
previous API may work concurrently and may be turned on or off
separately in .config file.
Some features of the new API are:
- more wpa_supplicant's events are signaled with DBus signals,
- introspection data (requires libxml2 and may be disabled),
- CurrentBSS and CurrentNetwork properties,
- PropertyChanged signal for most of properties,
- Relatively easy to extend.
.config options for the new API are: CONFIG_CTRL_IFACE_DBUS_NEW=y and
CONFIG_CTRL_IFACE_DBUS_INTRO=y for introspection.
This commit misses couple of parts from the full implementation
(these are still under review):
- fetching all configuration parameters for learning WPS information
- scan result BSS add/remove notification (register_bss() and
unregister_bss() notification callbacks)
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
-rw-r--r-- | wpa_supplicant/wpa_supplicant_i.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h index e47ac74..193baa3 100644 --- a/wpa_supplicant/wpa_supplicant_i.h +++ b/wpa_supplicant/wpa_supplicant_i.h @@ -190,7 +190,10 @@ struct wpa_global { struct wpa_supplicant *ifaces; struct wpa_params params; struct ctrl_iface_global_priv *ctrl_iface; + /* old DBus API data */ struct ctrl_iface_dbus_priv *dbus_ctrl_iface; + /* new DBus API data */ + struct ctrl_iface_dbus_new_priv *dbus_new_ctrl_iface; void **drv_priv; size_t drv_count; }; @@ -305,6 +308,9 @@ struct wpa_supplicant { #ifdef CONFIG_CTRL_IFACE_DBUS char *dbus_path; #endif /* CONFIG_CTRL_IFACE_DBUS */ +#ifdef CONFIG_CTRL_IFACE_DBUS_NEW + char *dbus_new_path; +#endif /* CONFIG_CTRL_IFACE_DBUS_NEW */ char bridge_ifname[16]; char *confname; |