From 7641572bde6fcad919a770d7dc35a5886b4e916b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 14 Apr 2014 13:59:34 +0300 Subject: [PATCH] tools: Remove simple-service simple-service no longer works since the API it uses no longer exists and Profile API already has a similar tool. --- Makefile.tools | 2 +- test/simple-service | 128 -------------------------------------------- 2 files changed, 1 insertion(+), 129 deletions(-) delete mode 100755 test/simple-service diff --git a/Makefile.tools b/Makefile.tools index 881404b27..40f076bea 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -409,7 +409,7 @@ test_scripts += test/sap_client.py test/bluezutils.py \ test/dbusdef.py test/monitor-bluetooth test/list-devices \ test/test-discovery test/test-manager test/test-adapter \ test/test-device test/simple-agent \ - test/simple-service test/simple-endpoint test/test-sap-server \ + test/simple-endpoint test/test-sap-server \ test/test-proximity test/test-network \ test/test-thermometer test/test-profile test/test-health \ test/test-health-sink test/service-record.dtd \ diff --git a/test/simple-service b/test/simple-service deleted file mode 100755 index 02d764890..000000000 --- a/test/simple-service +++ /dev/null @@ -1,128 +0,0 @@ -#!/usr/bin/python - -from __future__ import absolute_import, print_function, unicode_literals - -import sys -import time -import dbus -import bluezutils - -xml = ' \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -' - -bus = dbus.SystemBus() - -if len(sys.argv) > 1: - path = bluezutils.find_adapter(sys.argv[1]).object_path -else: - path = bluezutils.find_adapter().object_path - -service = dbus.Interface(bus.get_object("org.bluez", path), - "org.bluez.Service") - -handle = service.AddRecord(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 - -service.RemoveRecord(dbus.UInt32(handle)) -- 2.47.3