From: Daniel Wagner <[email protected]>

---
 test/monitor-manager |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/test/monitor-manager b/test/monitor-manager
index 05e1efd..2a5b8ed 100755
--- a/test/monitor-manager
+++ b/test/monitor-manager
@@ -24,6 +24,9 @@ def property_changed(name, value):
                val = str(value)
        print "%s = %s" % (name, val)
 
+def state_changed(state):
+       print "StateChanged = %s" % str(state)
+
 if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
@@ -33,6 +36,10 @@ if __name__ == '__main__':
                                bus_name="net.connman",
                                dbus_interface="net.connman.Manager",
                                        signal_name = "PropertyChanged")
+       bus.add_signal_receiver(state_changed,
+                               bus_name="net.connman",
+                               dbus_interface="net.connman.Manager",
+                                       signal_name = "StateChanged")
 
        mainloop = gobject.MainLoop()
        mainloop.run()
-- 
1.7.4.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to