summaryrefslogtreecommitdiff
path: root/test/dbusdef.py
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-09-29 18:45:25 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-09-29 18:45:25 +0000
commitb31cef173e499db68ebdeb56708d300b8a1942d5 (patch)
tree388d920dd2601e4e94cde4773fa1b7c0f94ced83 /test/dbusdef.py
parentcf1c6fe16bd66651951724a7ee6ba7c80b83717a (diff)
downloadbluez-b31cef173e499db68ebdeb56708d300b8a1942d5.tar.gz
Add simple D-Bus preload script for Python
Diffstat (limited to 'test/dbusdef.py')
-rw-r--r--test/dbusdef.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/dbusdef.py b/test/dbusdef.py
new file mode 100644
index 000000000..29cf7ffc0
--- /dev/null
+++ b/test/dbusdef.py
@@ -0,0 +1,7 @@
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
+
+adapter = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.Adapter')