dbus: Replace StateChanged with PropertiesChanged signal
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 4 Jan 2010 14:33:44 +0000 (16:33 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Jan 2010 14:33:44 +0000 (16:33 +0200)
commit27f43d8de5161a77d14e39ccbd0ae5cc8cc0e582
treef8c4244b3f5b04c1e7f21ae03fc23d30c0bc2472
parenta2753c285fc0efc5f65138d8f95de1e903b0fa31
dbus: Replace StateChanged with PropertiesChanged signal

The actual supplicant state is exposed via a property on the interface
object. So having a separate signal StateChanged for notifying about
changes is a bad idea. The standard PropertiesChanged signal should be
used for this.

The advantage of StateChanged signal was that it includes the previous
state, but not even NetworkManager is making use of this. And tracking
the old state via the property and this signal is easily possible anyway.
doc/dbus.doxygen
wpa_supplicant/dbus/dbus_new.c
wpa_supplicant/dbus/dbus_new.h
wpa_supplicant/notify.c
wpa_supplicant/wpa_supplicant.c