summaryrefslogtreecommitdiffstats
path: root/test/dbusdef.py
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-10-29 16:50:26 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-10-29 16:50:26 +0000
commitb467488a2ed54badfff71b4aa892ded051670aa3 (patch)
treeaaecf29e71e64f26581b4e726a5e84494178fb08 /test/dbusdef.py
parent182542f4c66a2685d82e7f9da415ee3337aeadd8 (diff)
Add service objects
Diffstat (limited to 'test/dbusdef.py')
-rw-r--r--test/dbusdef.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/dbusdef.py b/test/dbusdef.py
index 150c5b66..f039cd4b 100644
--- a/test/dbusdef.py
+++ b/test/dbusdef.py
@@ -11,3 +11,18 @@ test = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'or
rfcomm = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.RFCOMM')
sdp = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.SDP')
+
+echo = dbus.Interface(bus.get_object('org.bluez', '/org/bluez/echo'), 'org.bluez.Service')
+
+network = dbus.Interface(bus.get_object('org.bluez', '/org/bluez/network'), 'org.bluez.Service')
+
+input = dbus.Interface(bus.get_object('org.bluez', '/org/bluez/input'), 'org.bluez.Service')
+
+audio = dbus.Interface(bus.get_object('org.bluez', '/org/bluez/audio'), 'org.bluez.Service')
+
+def connect_echo() :
+ return dbus.Interface(bus.get_object(echo.GetConnectionName(), '/org/bluez/echo'), 'org.freedesktop.DBus.Introspectable')
+
+def connect_holtmann() :
+ holtmann = dbus.Interface(bus.get_object('org.bluez', '/org/holtmann'), 'org.bluez.Service')
+ return dbus.Interface(bus.get_object(holtmann.GetConnectionName(), '/org/holtmann'), 'org.freedesktop.DBus.Introspectable')