diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-29 04:57:57 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-29 04:57:57 +0200 |
commit | 85161ed17c46ce91fa768576f54c6e2278c07f34 (patch) | |
tree | a86168e5355346b2739efa04a3cd056f485bd45c /test/show-introspection | |
parent | 2f1e2f29dcab50d2111009efc505c496aa0ab494 (diff) | |
download | connman-85161ed17c46ce91fa768576f54c6e2278c07f34.tar.gz connman-85161ed17c46ce91fa768576f54c6e2278c07f34.tar.bz2 connman-85161ed17c46ce91fa768576f54c6e2278c07f34.zip |
Add first draft of new D-Bus API
Diffstat (limited to 'test/show-introspection')
-rwxr-xr-x | test/show-introspection | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/show-introspection b/test/show-introspection index c1cb0ef9..86faca18 100755 --- a/test/show-introspection +++ b/test/show-introspection @@ -4,18 +4,18 @@ import dbus bus = dbus.SystemBus() -object = dbus.Interface(bus.get_object('org.moblin.connman', '/'), - 'org.freedesktop.DBus.Introspectable') +object = dbus.Interface(bus.get_object("org.moblin.connman", '/'), + "org.freedesktop.DBus.Introspectable") print object.Introspect() -manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"), - 'org.moblin.connman.Manager') +manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), + "org.moblin.connman.Manager") -interfaces = manager.ListInterfaces() +elements = manager.ListElements() -for path in interfaces: - object = dbus.Interface(bus.get_object('org.moblin.connman', path), - 'org.freedesktop.DBus.Introspectable') +for path in elements: + object = dbus.Interface(bus.get_object("org.moblin.connman", path), + "org.freedesktop.DBus.Introspectable") print object.Introspect() |