From 7a2e03b4125f9825c9594e0833e200f75468bd38 Mon Sep 17 00:00:00 2001 From: Radoslaw Jablonski Date: Thu, 12 Aug 2010 10:49:13 +0300 Subject: [PATCH] obexd: Use enum from vcard.h for phone types Removed redundant declarations for phone types. Now using values from phonebook_number_type declared in vcard.h. --- obexd/plugins/phonebook-tracker.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index 9cd82e799..8300fc7f0 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -44,8 +44,6 @@ #define TRACKER_DEFAULT_CONTACT_ME "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#default-contact-me" #define CONTACTS_ID_COL 19 -#define PHONE_ID_HOME 0 -#define PHONE_ID_WORK 3 #define CONTACTS_QUERY_ALL \ "SELECT nco:phoneNumber(?h) nco:fullname(?c) " \ @@ -697,8 +695,8 @@ add_entry: add_numbers: /* Adding phone numbers to contact struct */ - add_phone_number(contact, reply[0], PHONE_ID_HOME); - add_phone_number(contact, reply[8], PHONE_ID_WORK); + add_phone_number(contact, reply[0], TEL_TYPE_HOME); + add_phone_number(contact, reply[8], TEL_TYPE_WORK); DBG("contact %p", contact); -- 2.47.3