summaryrefslogtreecommitdiffstats
path: root/test/dbusdef.py
diff options
context:
space:
mode:
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 00000000..29cf7ffc
--- /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')