main: Support NetworkInterfaceBlacklist from main.conf
[framework/connectivity/connman.git] / test / show-introspection
index 5e392c7..4b6450f 100755 (executable)
@@ -4,24 +4,18 @@ import dbus
 
 bus = dbus.SystemBus()
 
-object = dbus.Interface(bus.get_object("org.moblin.connman", '/'),
+object = dbus.Interface(bus.get_object("net.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("net.connman", "/"),
+                                       "net.connman.Manager")
 
-properties = manager.GetProperties()
+technologies = manager.GetTechnologies()
 
-for path in properties["Technologies"]:
-       technology = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Technology")
+for path, properties in technologies:
+       object = dbus.Interface(bus.get_object("net.connman", path),
+                                       "org.freedesktop.DBus.Introspectable")
 
-       properties = technology.GetProperties()
-
-       for path in properties["Devices"]:
-               object = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.freedesktop.DBus.Introspectable")
-
-               print object.Introspect()
+       print object.Introspect()