summaryrefslogtreecommitdiffstats
path: root/test/dbusdef.py
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-04-05 20:10:01 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-04-05 20:10:01 +0000
commit232610dea7be7fc8ca6a6bd22a02eca4a072b9c1 (patch)
tree56796c122fc74eea08447c01400809f63e4c3dbe /test/dbusdef.py
parent40d78525064e6d725a1050dea641c80640edee5d (diff)
Use generic service connect function
Diffstat (limited to 'test/dbusdef.py')
-rw-r--r--test/dbusdef.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dbusdef.py b/test/dbusdef.py
index 97a0eb4d..ca6debf4 100644
--- a/test/dbusdef.py
+++ b/test/dbusdef.py
@@ -49,11 +49,11 @@ audio = create_service("audio")
headset = create_service("headset")
-def connect_headset():
+def connect_service(identifier):
try:
- conn = manager.ActivateService("headset")
+ conn = manager.ActivateService(identifier)
except:
conn = ""
if (conn != ""):
- return dbus.Interface(bus.get_object(conn, "/org/bluez/audio"), 'org.bluez.audio.Manager')
+ return dbus.Interface(bus.get_object(conn, "/org/bluez/" + identifier), 'org.bluez.' + identifier + '.Manager')