Add simple D-Bus preload script for Python

This commit is contained in:
Marcel Holtmann 2006-09-29 18:45:25 +00:00
parent cf1c6fe16b
commit b31cef173e
2 changed files with 8 additions and 1 deletions

View File

@ -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

7
test/dbusdef.py Normal file
View File

@ -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')