From 9162dfde2d6a7625849aa873fc5ef9220779e7a9 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 3 Jun 2008 12:54:26 +0000 Subject: Move D-Bus config file and example clients back into hcid directory --- daemon/test-database | 119 --------------------------------------------------- 1 file changed, 119 deletions(-) delete mode 100755 daemon/test-database (limited to 'daemon/test-database') diff --git a/daemon/test-database b/daemon/test-database deleted file mode 100755 index 44a872a9..00000000 --- a/daemon/test-database +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/python - -import time -import dbus - -bus = dbus.SystemBus() - -xml = ' \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -' - -database = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), - 'org.bluez.Database') - -handle = database.AddServiceRecordFromXML(xml) - -print "Service record with handle 0x%04x added" % (handle) - -print "Press CTRL-C to remove service record" - -try: - time.sleep(1000) - print "Terminating session" -except: - pass - -database.RemoveServiceRecord(dbus.UInt32(handle)) -- cgit