wpa_supplicant: new DBus API implementation
authorWitold Sowa <witold.sowa@gmail.com>
Mon, 9 Nov 2009 21:51:59 +0000 (23:51 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 9 Nov 2009 21:51:59 +0000 (23:51 +0200)
commit8fc2fb56e456b4dfea4ea7c4afc34c20309560cd
tree6bf8c3e77dc769e75b9648db1c8b3284f0264f29
parent097c7b372351486e3954d9a8ee4bd9c2cf7066ba
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)
12 files changed:
wpa_supplicant/Makefile
wpa_supplicant/ctrl_iface_dbus_handlers.c
wpa_supplicant/ctrl_iface_dbus_new.c [new file with mode: 0644]
wpa_supplicant/ctrl_iface_dbus_new.h [new file with mode: 0644]
wpa_supplicant/ctrl_iface_dbus_new_handlers.c [new file with mode: 0644]
wpa_supplicant/ctrl_iface_dbus_new_handlers.h [new file with mode: 0644]
wpa_supplicant/ctrl_iface_dbus_new_helpers.c [new file with mode: 0644]
wpa_supplicant/ctrl_iface_dbus_new_helpers.h [new file with mode: 0644]
wpa_supplicant/dbus-wpa_supplicant.conf
wpa_supplicant/defconfig
wpa_supplicant/notify.c
wpa_supplicant/wpa_supplicant_i.h