Re: [PATCH 5/6] Add FindAdapter method call to obex-client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dmitriy,

On Tue, Jun 28, 2011 at 12:39 AM, Dmitriy Paliy <dmitriy.paliy@xxxxxxxxx> wrote:
> ---
>  client/session.c |   12 +++++++++++-
>  1 files changed, 11 insertions(+), 1 deletions(-)
>
> diff --git a/client/session.c b/client/session.c
> index 423eb8c..d8e3bf2 100644
> --- a/client/session.c
> +++ b/client/session.c
> @@ -848,11 +848,21 @@ proceed:
>        callback->func = function;
>        callback->data = user_data;
>
> -       req = send_method_call(session->conn_system,
> +       if (source) {
> +               req = send_method_call(session->conn_system,
> +                               BT_BUS_NAME, BT_PATH,
> +                               BT_MANAGER_IFACE, "FindAdapter",
> +                               manager_reply, callback,
> +                               DBUS_TYPE_STRING, &source,
> +                               DBUS_TYPE_INVALID);
> +       } else {
> +               req = send_method_call(session->conn_system,
>                                BT_BUS_NAME, BT_PATH,
>                                BT_MANAGER_IFACE, "DefaultAdapter",
>                                manager_reply, callback,
>                                DBUS_TYPE_INVALID);
> +       }
> +
>        if (!req) {
>                session_unref(session);
>                g_free(callback);
> --
> 1.7.4.1

I guess this one belong to the same patch where DefaultAdapter call
was introduced since it actually fix requesting the session to the
wrong adapter in case it the address is not from the default.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux