From: <svn...@op...> - 2009-04-28 11:15:47
|
Author: bellmich Date: Tue Apr 28 13:15:31 2009 New Revision: 1073 URL: http://libsyncml.opensync.org/changeset/1073 Log: fixed wrong vCal 1.0 device information If the default format of a datastore is iCal 2.0 then the content type for vCal 1.0 was wrong. Old (buggy): text/calendar 1.0 New (correct): text/x-vcalendar 1.0 Modified: trunk/libsyncml/data_sync_api/data_sync_devinf.c Modified: trunk/libsyncml/data_sync_api/data_sync_devinf.c ============================================================================== --- trunk/libsyncml/data_sync_api/data_sync_devinf.c Tue Apr 28 11:02:31 2009 (r1072) +++ trunk/libsyncml/data_sync_api/data_sync_devinf.c Tue Apr 28 13:15:31 2009 (r1073) @@ -510,11 +510,11 @@ } else if (!strcmp(ct, SML_ELEMENT_TEXT_ICAL)) { - ctype = smlDevInfNewContentType(SML_ELEMENT_TEXT_ICAL, "1.0", error); + ctype = smlDevInfNewContentType(SML_ELEMENT_TEXT_VCAL, "1.0", error); if (!ctype) goto error; smlDevInfDataStoreAddRx(ds, ctype); - ctype = smlDevInfNewContentType(SML_ELEMENT_TEXT_ICAL, "1.0", error); + ctype = smlDevInfNewContentType(SML_ELEMENT_TEXT_VCAL, "1.0", error); if (!ctype) goto error; smlDevInfDataStoreAddTx(ds, ctype); |