From 4bfbc81069e03dd3533ddae2e435cbf5d4eada65 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 26 Feb 2008 10:36:58 +0100 Subject: Add example for showing the full introspection data --- test/show-introspection | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test/show-introspection (limited to 'test/show-introspection') diff --git a/test/show-introspection b/test/show-introspection new file mode 100755 index 00000000..9acdd112 --- /dev/null +++ b/test/show-introspection @@ -0,0 +1,21 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SystemBus() + +object = dbus.Interface(bus.get_object('org.freedesktop.connman', '/'), + 'org.freedesktop.DBus.Introspectable') + +print object.Introspect() + +manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"), + 'org.freedesktop.connman.Manager') + +interfaces = manager.ListInterfaces() + +for path in interfaces: + object = dbus.Interface(bus.get_object('org.freedesktop.connman', path), + 'org.freedesktop.DBus.Introspectable') + + print object.Introspect() -- cgit v1.2.3