public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Source device selection for org.bluez.client.SendFiles
@ 2009-09-10  3:16 Timothy Madden
  2009-09-10  6:32 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Timothy Madden @ 2009-09-10  3:16 UTC (permalink / raw)
  To: linux-bluetooth

I noticed method SendFiles in org.bluez.client was ignoring the given
source in the device dictionary passed as argument.

I had to modify the send_files() function in obexd-0.17/client/main.c
and replace the NULL parameter it was passing on to session_create
with the given source from the dictionary. Than I could select the
source device when calling SendFiles from python. Should I send in a
patch ?


Thank you,
Timothy Madden

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Source device selection for org.bluez.client.SendFiles
  2009-09-10  3:16 Source device selection for org.bluez.client.SendFiles Timothy Madden
@ 2009-09-10  6:32 ` Marcel Holtmann
  2009-09-10 15:24   ` Timothy Madden
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2009-09-10  6:32 UTC (permalink / raw)
  To: Timothy Madden; +Cc: linux-bluetooth

Hi Timothy,

> I noticed method SendFiles in org.bluez.client was ignoring the given
> source in the device dictionary passed as argument.
> 
> I had to modify the send_files() function in obexd-0.17/client/main.c
> and replace the NULL parameter it was passing on to session_create
> with the given source from the dictionary. Than I could select the
> source device when calling SendFiles from python. Should I send in a
> patch ?

you mean something like this:

commit e1214330b4391d5577e5e2411a6ee34604d6bea4
Author: Claudio Takahasi <claudio.takahasi@openbossa.org>
Date:   Thu Sep 3 11:17:42 2009 -0300

    Fixed SendFiles to use "Source" argument.
    
    SendFiles was ignoring "Source" argument and using the default adapter
    always.

diff --git a/client/main.c b/client/main.c
index e903a75..32eca26 100644
--- a/client/main.c
+++ b/client/main.c
@@ -187,7 +187,7 @@ static DBusMessage *send_files(DBusConnection *connection,
        data->agent = g_strdup(agent);
        data->files = files;
 
-       if (session_create(NULL, dest, "OPP", channel, create_callback,
+       if (session_create(source, dest, "OPP", channel, create_callback,
                                data) == 0)
                return NULL;

Regards

Marcel



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Source device selection for org.bluez.client.SendFiles
  2009-09-10  6:32 ` Marcel Holtmann
@ 2009-09-10 15:24   ` Timothy Madden
  0 siblings, 0 replies; 3+ messages in thread
From: Timothy Madden @ 2009-09-10 15:24 UTC (permalink / raw)
  Cc: linux-bluetooth

Oh, yes, indeed

On Thu, Sep 10, 2009 at 9:32 AM, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Timothy,
>
>> I noticed method SendFiles in org.bluez.client was ignoring the given
>> source in the device dictionary passed as argument.
>>
>> I had to modify the send_files() function in obexd-0.17/client/main.c
>> and replace the NULL parameter it was passing on to session_create
>> with the given source from the dictionary. Than I could select the
>> source device when calling SendFiles from python. Should I send in a
>> patch ?
>
> you mean something like this:
>
> commit e1214330b4391d5577e5e2411a6ee34604d6bea4
> Author: Claudio Takahasi <claudio.takahasi@openbossa.org>
> Date:   Thu Sep 3 11:17:42 2009 -0300
>
>    Fixed SendFiles to use "Source" argument.
>
>    SendFiles was ignoring "Source" argument and using the default adapter
>    always.
>
> diff --git a/client/main.c b/client/main.c
> index e903a75..32eca26 100644
> --- a/client/main.c
> +++ b/client/main.c
> @@ -187,7 +187,7 @@ static DBusMessage *send_files(DBusConnection *connection,
>        data->agent = g_strdup(agent);
>        data->files = files;
>
> -       if (session_create(NULL, dest, "OPP", channel, create_callback,
> +       if (session_create(source, dest, "OPP", channel, create_callback,
>                                data) == 0)
>                return NULL;
>
> Regards
>
> Marcel
>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-10 15:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10  3:16 Source device selection for org.bluez.client.SendFiles Timothy Madden
2009-09-10  6:32 ` Marcel Holtmann
2009-09-10 15:24   ` Timothy Madden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox