diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-19 15:53:19 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-19 15:53:19 +0000 |
commit | f24e25355de0241f9a1c9117e0a3a3be35026611 (patch) | |
tree | 406445a28a24ce6822966dc84d60df8d12592327 /test/dbusdef.py | |
parent | 23a3129d08193398a52ac4830e77cd054f0bf3fc (diff) |
Update pre-created objects
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") |