From: Radoslaw Jablonski <ext-jablonski.radoslaw@nokia.com>
To: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Question about phonebook_add_contact
Date: Thu, 12 Aug 2010 16:13:07 +0300 [thread overview]
Message-ID: <4C63F363.4000400@nokia.com> (raw)
Hi!
I've got question about this part of code from beginning
phonebook_add_contact func:
if ((contact->numbers == NULL && (contact->fullname == NULL ||
contact->fullname[0] == '\0')))
return;
Is this checking really needed in that place? It is possible to have
contacts data
in phonebook that have all data except phone set (by example: email
addresses,
main address etc). In that condition when we want to pull target vcard
entry, then
empty string will be returned even if user send ATTRIBUTE_MASK to
include all fields
in the result.
I'm asking because I have problem with "0.vcf" vcard (this is
responsible for personal
information of device owner). This entry by default does not have any
phone's data
filled in address book but it is mandatory to put this in vcard-listing.
Actually, I am forced to initialize contact->numbers list with empty
number even if
none of number is available to return correct result for "0.vcf."(in
phonebook-tracker)...
Can this 'contact->numbers' checking be removed from there or maybe
other phonebooks
rely on this behaviour?
BR,
Radek
next reply other threads:[~2010-08-12 13:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 13:13 Radoslaw Jablonski [this message]
2010-08-12 17:59 ` Question about phonebook_add_contact Vinicius Gomes
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=4C63F363.4000400@nokia.com \
--to=ext-jablonski.radoslaw@nokia.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.