Return-Path: Date: Sat, 9 Jul 2011 19:20:08 +0300 From: Johan Hedberg To: Slawomir Bochenski Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH obexd] Do not send empty vCard attributes Message-ID: <20110709162008.GC11005@dell.ger.corp.intel.com> References: <1309346033-20242-1-git-send-email-lkslawek@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1309346033-20242-1-git-send-email-lkslawek@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Slawek, On Wed, Jun 29, 2011, Slawomir Bochenski wrote: > PBAP specification v1.1, chap. 5.1.4.1 and 5.4.4.1 states that > non-mandatory attributes shall be sent only when their value is not NULL. > In case of vCards this can be simply understood as non-empty, therefore > the patch makes phonebook_add_contact add only mandatory attributes for > specified vCard version as well as those for which values are of non-zero > length. > --- > plugins/vcard.c | 31 +++++++++---------------------- > 1 files changed, 9 insertions(+), 22 deletions(-) The patch doesn't apply to latest git. Johan