Return-Path: MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 12 Nov 2011 13:03:48 +0200 Message-ID: Subject: Re: Out of tree plugins From: Alon Bar-Lev To: Lucas De Marchi Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Sat, Nov 12, 2011 at 2:29 AM, Alon Bar-Lev wrote: > On Sat, Nov 12, 2011 at 2:17 AM, Lucas De Marchi > wrote: >> ( e.g. in the mail thread you mentioned, dbus_connection_unref() and >> dbus_bus_get() are not right. If you need those you should link >> against d-bus instead when building as an external module ) > > This is needed in order to get the address of the bluetooth controller. > I am no expert in this library so maybe there is another way to do so. > > The code currently uses: > --- > struct btd_device *adapter_get_device(DBusConnection *conn, >                                struct btd_adapter *adapter, const > char *address); > --- > > Can this be somehow be replaced with: > --- > struct btd_device *adapter_find_device(struct btd_adapter *adapter, > const char *dest); > --- I could not find how to do this, as the device should be created, and all creation funcitons needs dbus connection. How do you suggest to replace the adapter_get_device() to something else that does not need dbus? Thanks, Alon.