[Libpst-commits] r66 - trunk
Joseph Nahmias
jello at alioth.debian.org
Wed Dec 13 20:58:55 CET 2006
Author: jello
Date: 2006-12-13 20:58:54 +0100 (Wed, 13 Dec 2006)
New Revision: 66
Modified:
trunk/libpst.c
trunk/libpst.h
Log:
Teach libpst about the "All Day Event" flag for appointments.
Thanks to Chris Hall for the patch.
Index: trunk/libpst.h
===================================================================
--- trunk/libpst.h (revision 65)
+++ trunk/libpst.h (revision 66)
@@ -375,6 +375,7 @@ typedef struct _pst_item_appointment {
char *timezonestring;
int32_t showas;
int32_t label;
+ int32_t all_day;
} pst_item_appointment;
typedef struct _pst_item {
Index: trunk/libpst.c
===================================================================
--- trunk/libpst.c (revision 65)
+++ trunk/libpst.c (revision 66)
@@ -3160,6 +3160,17 @@ int32_t _pst_process(pst_num_array *list
DEBUG_EMAIL(("Phone Call\n")); break;
}
break;
+ case 0x8215: // All day appointment flag
+ DEBUG_EMAIL(("All day flag - "));
+ MALLOC_APPOINTMENT(item);
+ if (*(int16_t*)list->items[x]->data != 0) {
+ DEBUG_EMAIL(("True\n"));
+ item->appointment->all_day = 1;
+ } else {
+ DEBUG_EMAIL(("False\n"));
+ item->appointment->all_day = 0;
+ }
+ break;
case 0x8234: // TimeZone as String
DEBUG_EMAIL(("TimeZone of times - "));
MALLOC_APPOINTMENT(item);
More information about the Libpst-commits
mailing list