summaryrefslogtreecommitdiffstats
path: root/audio/test-audio
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-06-11 07:42:56 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-06-11 07:42:56 +0000
commit82a2b31aea724dd0a051e9cda3fb51e018e8b606 (patch)
tree984f1718e9a5fc7973be8e1669b1aedd55363ec5 /audio/test-audio
parentabae7c2638fb280393750d2a7789b0fc8188c644 (diff)
Add audio service test script
Diffstat (limited to 'audio/test-audio')
-rwxr-xr-xaudio/test-audio19
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/test-audio b/audio/test-audio
new file mode 100755
index 00000000..5553f0a5
--- /dev/null
+++ b/audio/test-audio
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
+ 'org.bluez.Manager')
+
+conn = manager.ActivateService('audio')
+
+audio = dbus.Interface(bus.get_object(conn, '/org/bluez/audio'),
+ 'org.bluez.audio.Manager')
+
+try:
+ headset = dbus.Interface(bus.get_object(conn, audio.DefaultHeadset()),
+ 'org.bluez.audio.Headset')
+except:
+ pass