diff options
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rw-r--r-- | test/dbusdef.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index dde68ed0..7b1f0713 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -33,6 +33,6 @@ endif INCLUDES = -I$(top_srcdir)/common -EXTRA_DIST = apitest hsplay hsmicro bdaddr.8 +EXTRA_DIST = apitest hsplay hsmicro bdaddr.8 dbusdef.py MAINTAINERCLEANFILES = Makefile.in 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') |