Return-Path: From: Bartosz Szatkowski To: linux-bluetooth@vger.kernel.org Cc: Bartosz Szatkowski Subject: [PATCH obexd 2/5 v2] Add constraint on pulled path Date: Tue, 5 Jul 2011 22:53:19 +0200 Message-Id: <1309899202-23849-2-git-send-email-bulislaw@linux.com> In-Reply-To: <1309899202-23849-1-git-send-email-bulislaw@linux.com> References: <1309899202-23849-1-git-send-email-bulislaw@linux.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: EDS backend supports only phonebook (/telecom/pb.vcf). --- plugins/phonebook-ebook.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/plugins/phonebook-ebook.c b/plugins/phonebook-ebook.c index 067bcc7..9c55860 100644 --- a/plugins/phonebook-ebook.c +++ b/plugins/phonebook-ebook.c @@ -529,6 +529,13 @@ void *phonebook_pull(const char *name, const struct apparam_field *params, { struct query_context *data; + if (g_strcmp0("/telecom/pb.vcf", name) != 0) { + if (err) + *err = -ENOENT; + + return NULL; + } + data = g_new0(struct query_context, 1); data->contacts_cb = cb; data->params = params; -- 1.7.5.3