diff options
Diffstat (limited to 'test/dbusdef.py')
-rw-r--r-- | test/dbusdef.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/dbusdef.py b/test/dbusdef.py index c48f8479..b0ab1b89 100644 --- a/test/dbusdef.py +++ b/test/dbusdef.py @@ -3,8 +3,14 @@ import dbus bus = dbus.SystemBus() +dummy = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.freedesktop.DBus.Introspectable') + +#print dummy.Introspect() + manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager') +database = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Database') + adapter = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.Adapter') test = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.Test') @@ -21,6 +27,8 @@ def create_service(identifier): if (path != ""): return dbus.Interface(bus.get_object('org.bluez', path), 'org.bluez.Service') +echo = create_service("echo") + transfer = create_service("transfer") network = create_service("network") |