show-introspection revision 2f48d9572459c2c90d68e8b017b86eb843fe2a74
1#!/usr/bin/python 2 3import dbus 4 5bus = dbus.SystemBus() 6 7flimflam_object = dbus.Interface(bus.get_object("org.chromium.flimflam", '/'), 8 "org.freedesktop.DBus.Introspectable") 9print flimflam_object.Introspect() 10 11manager = dbus.Interface(bus.get_object("org.chromium.flimflam", "/"), 12 "org.chromium.flimflam.Manager") 13properties = manager.GetProperties(utf8_strings = True) 14 15for path in properties["Devices"]: 16 device = dbus.Interface(bus.get_object("org.chromium.flimflam", path), 17 "org.freedesktop.DBus.Introspectable") 18 print device.Introspect() 19 20 device_object = dbus.Interface( 21 bus.get_object("org.chromium.flimflam", path), 22 "org.chromium.flimflam.Device") 23 devprops = device_object.GetProperties(utf8_strings = True) 24 for ipconfig_path in devprops["IPConfigs"]: 25 ipconfig = dbus.Interface( 26 bus.get_object("org.chromium.flimflam", ipconfig_path), 27 "org.freedesktop.DBus.Introspectable") 28 print ipconfig.Introspect() 29