Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Fix handling owner data in phonebook pull
@ 2011-03-02 13:25 Lukasz Pawlik
  2011-03-04 18:46 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Pawlik @ 2011-03-02 13:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Lukasz Pawlik

This patch fix handling "empty" phone owner data in phonebook pull via
PBAP. Previously owner vCard was always present as a first on list in
phonebook pull results even if it was empty. This patch fix this and
owner vCard will not be present in pulled phonebook.
---
 plugins/phonebook-tracker.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index 2cd10de..e71ec7b 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -137,6 +137,7 @@
 "WHERE {"								\
 "	?_contact a nco:PersonContact ."				\
 "	OPTIONAL {?_contact nco:hasAffiliation ?_role .}"		\
+"	FILTER (regex(str(?_contact), \"urn:uuid:\"))"			\
 "}"									\
 "ORDER BY tracker:id(?_contact)"
 
-- 
1.7.0.4


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

* Re: [PATCH] Fix handling owner data in phonebook pull
  2011-03-02 13:25 [PATCH] Fix handling owner data in phonebook pull Lukasz Pawlik
@ 2011-03-04 18:46 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-03-04 18:46 UTC (permalink / raw)
  To: Lukasz Pawlik; +Cc: linux-bluetooth

Hi Lukasz,

On Wed, Mar 02, 2011, Lukasz Pawlik wrote:
> This patch fix handling "empty" phone owner data in phonebook pull via
> PBAP. Previously owner vCard was always present as a first on list in
> phonebook pull results even if it was empty. This patch fix this and
> owner vCard will not be present in pulled phonebook.
> ---
>  plugins/phonebook-tracker.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Pushed upstream. Thanks.

Johan

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

end of thread, other threads:[~2011-03-04 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 13:25 [PATCH] Fix handling owner data in phonebook pull Lukasz Pawlik
2011-03-04 18:46 ` Johan Hedberg

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