From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Szymon Janc To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH BlueZ 1/2] tools: Remove simple-service Date: Wed, 16 Apr 2014 11:50:57 +0200 Message-ID: <4586192.1SOmxEhbCi@uw000953> In-Reply-To: <1397479202-3632-1-git-send-email-luiz.dentz@gmail.com> References: <1397479202-3632-1-git-send-email-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Luiz, On Monday 14 of April 2014 15:40:01 Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz > > simple-service no longer works since the API it uses no longer exists and > Profile API already has a similar tool. > --- > test/simple-service | 128 ---------------------------------------------------- > 1 file changed, 128 deletions(-) > delete mode 100755 test/simple-service You should also remove it from Makefile.tools. > > diff --git a/test/simple-service b/test/simple-service > deleted file mode 100755 > index 02d7648..0000000 > --- 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)) > -- Best regards, Szymon Janc