gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-27


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-275-g8b2a437
Date: Sun, 10 Jul 2011 14:10:48 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  8b2a437338cdf8065d6bff391e40c5a70a09f5be (commit)
      from  9ba30383f7c8d66dd24d3a1593a36c2f25df3606 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=8b2a437338cdf8065d6bff391e40c5a70a09f5be


commit 8b2a437338cdf8065d6bff391e40c5a70a09f5be
Author: Daniele Forsi <address@hidden>
Date:   Sun Jul 10 16:06:05 2011 +0200

    Update the list of private vcard properties (X-GNOKII-*) or ignored
    
    Make it explicit what is ignored or outputted and remove the default
    case so that if we forget to add a new enum value in future gcc will
    issue the warning: "enumeration value ‘%s’ not handled in switch".

diff --git a/common/vcard.c b/common/vcard.c
index 76c4246..55994b8 100644
--- a/common/vcard.c
+++ b/common/vcard.c
@@ -238,17 +238,29 @@ GNOKII_API char * 
gn_phonebook2vcardstr(gn_phonebook_entry *entry)
                        add_slashes(name, entry->subentries[i].data.number, 
sizeof(name), strlen(entry->subentries[i].data.number));
                        vcard_append_printf(&str, "X-WV-ID:%s", name);
                        break;
-               case GN_PHONEBOOK_ENTRY_Ringtone:
-               case GN_PHONEBOOK_ENTRY_Pointer:
-               case GN_PHONEBOOK_ENTRY_Logo:
-               case GN_PHONEBOOK_ENTRY_LogoSwitch:
+               case GN_PHONEBOOK_ENTRY_Date:
+               case GN_PHONEBOOK_ENTRY_FirstName:
                case GN_PHONEBOOK_ENTRY_Group:
-               case GN_PHONEBOOK_ENTRY_Location:
                case GN_PHONEBOOK_ENTRY_Image:
+               case GN_PHONEBOOK_ENTRY_LastName:
+               case GN_PHONEBOOK_ENTRY_Location:
+               case GN_PHONEBOOK_ENTRY_Logo:
+               case GN_PHONEBOOK_ENTRY_LogoSwitch:
+               case GN_PHONEBOOK_ENTRY_Pointer:
+               case GN_PHONEBOOK_ENTRY_Ringtone:
                case GN_PHONEBOOK_ENTRY_RingtoneAdv:
+               case GN_PHONEBOOK_ENTRY_Video:
                        /* Ignore */
                        break;
-               default:
+               case GN_PHONEBOOK_ENTRY_City:
+               case GN_PHONEBOOK_ENTRY_Country:
+               case GN_PHONEBOOK_ENTRY_ExtendedAddress:
+               case GN_PHONEBOOK_ENTRY_FormalName:
+               case GN_PHONEBOOK_ENTRY_Name:
+               case GN_PHONEBOOK_ENTRY_PostalAddress:
+               case GN_PHONEBOOK_ENTRY_StateProvince:
+               case GN_PHONEBOOK_ENTRY_Street:
+               case GN_PHONEBOOK_ENTRY_ZipCode:
                        add_slashes(name, entry->subentries[i].data.number, 
sizeof(name), strlen(entry->subentries[i].data.number));
                        vcard_append_printf(&str, "X-GNOKII-%d:%s", 
entry->subentries[i].entry_type, name);
                        break;

-----------------------------------------------------------------------

Summary of changes:
 common/vcard.c |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]