From owner-freebsd-bluetooth@FreeBSD.ORG Thu Feb 5 14:47:22 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 663FB106564A for ; Thu, 5 Feb 2009 14:47:22 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp02.one2one.net (smtp02.one2one.net [149.254.192.174]) by mx1.freebsd.org (Postfix) with ESMTP id 24ADB8FC16 for ; Thu, 5 Feb 2009 14:47:22 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by localhost.localdomain with esmtp (Exim 4.50) id 1LV5Vh-0005VB-Em; Thu, 05 Feb 2009 14:47:21 +0000 Received: from localhost.t-mobile.co.uk ([127.0.0.1]) by localhost (smtpbeckt01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20932-10; Thu, 5 Feb 2009 14:47:21 +0000 (GMT) Received: from [10.35.255.231] (helo=rya-online.net) by localhost.localdomain with smtp (Exim 4.50) id 1LV5Vf-0005V6-GX; Thu, 05 Feb 2009 14:47:21 +0000 Received: (nullmailer pid 8346 invoked by uid 1000); Thu, 05 Feb 2009 14:46:07 -0000 Date: Thu, 5 Feb 2009 14:46:07 +0000 (GMT) To: Maksim Yevmenkin In-Reply-To: References: <1233365217.00068654.1233354838@10.7.7.3> <4988DCCC.80201@mavhome.dp.ua> <4988EBAC.3080202@mavhome.dp.ua> <1233758519.360141.162.nullmailer@galant.ukfsn.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1233845167.798942.24919.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on localhost.localdomain); SAEximRunCond expanded to false Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: libhci X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 14:47:22 -0000 On Wed, 4 Feb 2009, Maksim Yevmenkin wrote: > int hci_inquiry(...) > > and all the way down to the end of the file :) basically map dev_id to > unit numbers, i.e. dev_id 0 is "ubt0" node, etc. Well, I really dislike that dev_id method to start with. But anyway, I think they are working on a new API that is somewhat higher level and more related to the dbus access. Also, I think that looking at that code, it was written in the beginning and is full of 'good ideas' that somebody might want to use, but in reality much of it has no need to be in a shared library. hci_inquiry() is perhaps the only function that really needs to have a generic cross platform API and it would be nice if it was oriented towards application level rather than tied to a lower layer implementation. I do not know what kind of API the Microsoft (Widcom?) or Apple stacks expose to applications for this, but I suspect they would be a better place to start. iain