From owner-freebsd-bluetooth@FreeBSD.ORG Wed May 20 08:41:45 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 4C796106564A for ; Wed, 20 May 2009 08:41:45 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp01.one2one.net (smtp01.one2one.net [149.254.200.196]) by mx1.freebsd.org (Postfix) with ESMTP id 02B818FC15 for ; Wed, 20 May 2009 08:41:43 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by smtpbarns01 with esmtp (Exim 4.50) id 1M6hMt-0000AC-2x; Wed, 20 May 2009 08:41:43 +0000 Received: from smtpbarns01 ([127.0.0.1]) by localhost (smtpbarns01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00596-01; Wed, 20 May 2009 09:41:42 +0100 (BST) Received: from [10.216.196.109] (helo=rya-online.net) by smtpbarns01 with smtp (Exim 4.50) id 1M6hMq-0000A8-D7; Wed, 20 May 2009 08:41:42 +0000 Received: (nullmailer pid 844 invoked by uid 1000); Wed, 20 May 2009 08:40:58 -0000 Date: Wed, 20 May 2009 09:40:58 +0100 (BST) To: Maksim Yevmenkin In-Reply-To: References: <1240386569.369073.696.nullmailer@galant.ukfsn.org> <1242294653.314348.1748.nullmailer@galant.ukfsn.org> <1242322384.832849.4269.nullmailer@galant.ukfsn.org> <1242328962.345875.22296.nullmailer@galant.ukfsn.org> <1242335731.252131.19040.nullmailer@galant.ukfsn.org> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1242808858.879529.970.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 smtpbarns01); SAEximRunCond expanded to false Cc: freebsd-bluetooth@freebsd.org Subject: Re: libhci update 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: Wed, 20 May 2009 08:41:45 -0000 On Fri, 15 May 2009, Maksim Yevmenkin wrote: > however, bt_devsend/recv() can be used with the hci socket that was > created outside of libbluetooth. If this is to be the case (and I like it) then I think bt_devopen() should be documented to return a normal socket handle and have the caller call close() directly rather than bt_devclose() which adds nothing. also, on bt_devsend() can it return ssize_t number of bytes written? (I can't think a reason to want it, but it seems wasteful to discard :) and, going back a bit.. On Sat, Feb 14, 2009 at 1:52 AM, Iain Hibbert wrote: > (size and name could be passed in devinfo?) In the end, I'm not sure I actually like passing the name in the devinfo structure.. means every caller must do a copy rather than just passing it. I think bt_devinfo(name, di) would be better? iain