From: Marcel Holtmann <marcel@holtmann.org>
To: Timothy Madden <terminatorul@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Source device selection for org.bluez.client.SendFiles
Date: Thu, 10 Sep 2009 08:32:49 +0200 [thread overview]
Message-ID: <1252564369.8931.38.camel@violet> (raw)
In-Reply-To: <5078d8af0909092016g7ba97265yc725537e04a709d5@mail.gmail.com>
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
next prev parent reply other threads:[~2009-09-10 6:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-10 3:16 Source device selection for org.bluez.client.SendFiles Timothy Madden
2009-09-10 6:32 ` Marcel Holtmann [this message]
2009-09-10 15:24 ` Timothy Madden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1252564369.8931.38.camel@violet \
--to=marcel@holtmann.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=terminatorul@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox