Only introspect devices
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2008 21:57:52 +0000 (22:57 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2008 21:57:52 +0000 (22:57 +0100)
test/show-introspection

index 86faca18e4d7ce19d2e51ca697ddd69090883ae8..bbf93c8b6a2fe74dd8e9f991fc16946ea92d3c8a 100755 (executable)
@@ -12,9 +12,9 @@ print object.Introspect()
 manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
                                        "org.moblin.connman.Manager")
 
-elements = manager.ListElements()
+properties = manager.GetProperties()
 
-for path in elements:
+for path in properties["Devices"]:
        object = dbus.Interface(bus.get_object("org.moblin.connman", path),
                                        "org.freedesktop.DBus.Introspectable")