From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 6 03:37:15 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2465616A41F for ; Tue, 6 Dec 2005 03:37:15 +0000 (GMT) (envelope-from shackan@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 707F543D53 for ; Tue, 6 Dec 2005 03:37:14 +0000 (GMT) (envelope-from shackan@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so1252179nzd for ; Mon, 05 Dec 2005 19:37:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VF1yKUU0rArh31KMHYPwYy0ssAALAmZmwCSgseYV9akzw2EGt6Ddnkm1Qzkl6N0GHGDRzasDgpJqJ8CDUG4VKM/QGzDOKw7L0gII8E3XaxiNtN13nRmQSJ6XC053CjnTqvD5AiUABZKpcn/S9wxk1bbW0WmsREPXaZ1ohdw54fU= Received: by 10.65.112.20 with SMTP id p20mr10756qbm; Mon, 05 Dec 2005 19:37:12 -0800 (PST) Received: by 10.65.196.7 with HTTP; Mon, 5 Dec 2005 19:37:11 -0800 (PST) Message-ID: <9307f5f20512051937h26e4a99awb00083dccca21180@mail.gmail.com> Date: Tue, 6 Dec 2005 04:37:11 +0100 From: "P. Durante" To: Maksim Yevmenkin In-Reply-To: <4394E242.7030401@savvis.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9307f5f20512030807x6eadc73cq9d9acc9dd5503a5b@mail.gmail.com> <4391E320.2090006@savvis.net> <9307f5f20512031333x61e9d141u85ea578711740712@mail.gmail.com> <43936F6B.1090003@savvis.net> <1133819097.4559.15.camel@localhost.localdomain> <4394E242.7030401@savvis.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: Automatic bluetooth device initialization 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: Tue, 06 Dec 2005 03:37:15 -0000 > perhaps, we are talking about different things here. i do not really > understand what multiple language bindings have do with bluetooth device > initialization and lower level api. > since coding gui applications in C is the second most boring thing on earth (the first being writing gui applications in asm :-) it's a good idea to do it in a higher level language, and since those clients have to communicate over dbus with the daemon, you'll need dbus bindings for your language of choice, and dbus does have them. > it very much possible that d-bus is very well suited for > inter-application communications in kde/gnome/whatever desktop. after > all, this is what it is being developed for. what i do not understand is > why d-bus is being pushed all the way down and even suggested as > replacement for hci? > I think marcel was talking about a dbus replacement for hcid, the linux bluetooth daemon. (after all HCI is part of the bluetooth specification and you can't replace that one :-) > instead of creating numerous d-bus bluetooth > applications that know how to work on particular system, why not just > create one d-bus bluetooth application that uses common low level > bluetooth api? > yes, that's how it would work in an ideal world... in this world, bluez has one way of doing things, freebsd has another, for example freebsd had its SDP api rewritten from scratch even if sdp has very little low-level programming involved and could easily have borrowed the bluez sdp code, but we all know licensing issues are a Bad Thing so let's not get over this again please. In the end, if you have a well-defined d-bus interface, you'll have applications that DO run regardless of the os. > what about not-kde/gnome/whatever applications (i.e. > non-d-bus)? are those just out of luck? > fell free to suggest alternatives, but all the major linux distributions now have dbus, freebsd does have it, solaris will come along (but I don't know if opensolaris has a bluetooth stack yet ;-) and after 1.0 is out it will become quite a standard (no, I don't like creating dependencies, and I like even less adding new "standards", I _have_ been looking for alternatives, if there was a common low-level api probably noone wouldn't need a d-bus layer in the middle but this is not the case so...) > i admit kde/gnome folks did a lot of work by integrating bluetooth, but > their work can not be re-used :( > yes, that's the point > i wish their work would be in a form of > re-usable user space modules. i wish they would make it so anybody can > just pick this or that module and re-use it. for example, if i want to > run obex file server, i do not have to run kde/gnome/d-bus etc. > but you could make a server which runs on top of the dbus interface, which isn't that bad. strictly speaking the only requirement is dbus, regardless of your favourite desktop manager; of course _clients_ may be more or less integrated into a particular desktop enviroment, for example some developer might want to implement an obex _client_ as a KIOslave for kde, another as a nautilus-vfs extension, yet another as something else, but the fact that there are soo many desktop environments to chose from (like the fact that every operating system has his own low-level api for the bluetooth stack) and that there's no established standard among them is something we have to live with :-( regards, Paul