linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Harald Schmitt <linux@hschmitt.de>
To: linux-bluetooth@vger.kernel.org
Cc: Harald Schmitt <linux@hschmitt.de>
Subject: [PATCH 1/2] irmc: Fix phonebook contacts query
Date: Wed, 18 Jul 2012 16:53:07 +0200	[thread overview]
Message-ID: <1342623188-10796-2-git-send-email-linux@hschmitt.de> (raw)
In-Reply-To: <1342623188-10796-1-git-send-email-linux@hschmitt.de>

At the moment IRMC fails to connect for phonebook_ebook and
phonebook_tracker usage because the name parameter for phonebook_pull
is not an absolute path.
---
 plugins/irmc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/irmc.c b/plugins/irmc.c
index 87f3b6c..2283fe6 100644
--- a/plugins/irmc.c
+++ b/plugins/irmc.c
@@ -226,7 +226,7 @@ static void *irmc_connect(struct obex_session *os, int *err)
 	param->maxlistcount = 0; /* to count the number of vcards... */
 	param->filter = 0x200085; /* UID TEL N VERSION */
 	irmc->params = param;
-	irmc->request = phonebook_pull("telecom/pb.vcf", irmc->params,
+	irmc->request = phonebook_pull("/telecom/pb.vcf", irmc->params,
 					phonebook_size_result, irmc, err);
 	ret = phonebook_pull_read(irmc->request);
 	if (err)
@@ -312,7 +312,7 @@ static void *irmc_open_pb(const char *name, struct irmc_session *irmc,
 
 	if (!g_strcmp0(name, ".vcf")) {
 		/* how can we tell if the vcard count call already finished? */
-		irmc->request = phonebook_pull("telecom/pb.vcf", irmc->params,
+		irmc->request = phonebook_pull("/telecom/pb.vcf", irmc->params,
 						query_result, irmc, &ret);
 		if (ret < 0) {
 			DBG("phonebook_pull failed...");
-- 
1.7.9.5


  reply	other threads:[~2012-07-18 14:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 14:53 [PATCH 0/2] obexd: Fix bug in irmc phonebook and prevent to reintroduce it Harald Schmitt
2012-07-18 14:53 ` Harald Schmitt [this message]
2012-07-18 14:53 ` [PATCH 2/2] phonebook: Replace magic strings for phonebook names and folders Harald Schmitt
2012-07-24 20:20 ` [PATCH 0/2] obexd: Fix bug in irmc phonebook and prevent to reintroduce it Luiz Augusto von Dentz
2012-07-25  7:18   ` Harald Schmitt
2012-07-25 14:22     ` Luiz Augusto von Dentz
2012-07-25 15:03       ` Harald Schmitt
2012-07-27 13:40         ` Luiz Augusto von Dentz
2012-07-27 15:07           ` Luiz Augusto von Dentz

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=1342623188-10796-2-git-send-email-linux@hschmitt.de \
    --to=linux@hschmitt.de \
    --cc=linux-bluetooth@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).