From b31cef173e499db68ebdeb56708d300b8a1942d5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 29 Sep 2006 18:45:25 +0000 Subject: [PATCH] Add simple D-Bus preload script for Python --- test/Makefile.am | 2 +- test/dbusdef.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/dbusdef.py diff --git a/test/Makefile.am b/test/Makefile.am index dde68ed05..7b1f07133 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 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')