From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCHv3 3/3] Add sixaxis plugin: USB pairing and LEDs settings From: Bastien Nocera To: Antonio Ospite Cc: Anderson Lizardo , Vinicius Costa Gomes , linux-bluetooth@vger.kernel.org, linux-input@vger.kernel.org, Jim Paris , Ranulf Doswell , "Pascal A . Brisset" , Marcin Tolysz , Christian Birchinger , Filipe Lopes , Alan Ott , Mikko Virkkila , Simon Wood Date: Thu, 09 Jun 2011 16:57:00 +0100 In-Reply-To: <20110609174822.3e922722.ospite@studenti.unina.it> References: <1307538557-9287-1-git-send-email-ospite@studenti.unina.it> <1307538557-9287-4-git-send-email-ospite@studenti.unina.it> <20110608175251.GC20343@piper> <20110609155731.bd2c5a8b.ospite@studenti.unina.it> <20110609174822.3e922722.ospite@studenti.unina.it> Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1307635023.2669.215.camel@novo.hadess.net> Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Thu, 2011-06-09 at 17:48 +0200, Antonio Ospite wrote: > On Thu, 9 Jun 2011 11:30:56 -0400 > Anderson Lizardo wrote: > > > Hi, > > > > On Thu, Jun 9, 2011 at 9:57 AM, Antonio Ospite wrote: > > > Would you mind if I keep these three stdlib ones in? I use this code > > > verbatim in another program which does not link against Glib. > > > > But you use e.g. "g_strcmp0()", GIOChannel etc. How is that? > > > > Also remember sed is your friend :) > > > > I was referring to the "low level" functions: > get_feature_report() > set_feature_report() > get_device_bdaddr() > set_master_bdaddr() > > sorry, I use them in a command line tool which opens the hidraw node > directly without udev. > > But as you say, it is not a big deal to substitute them, if you like a > more uniform style in the bluez plugin then I'll comply. If it makes it easier for testing, split them out in a separate file, add a header, and a test program in bluez directly. That'll stop the 2 copies getting out of sync.