From: <svn...@op...> - 2009-03-18 17:38:53
|
Author: bellmich Date: Wed Mar 18 18:38:50 2009 New Revision: 998 URL: http://libsyncml.opensync.org/changeset/998 Log: If the alerts and the device information are in the same SyncML message then the alerts are dispatched faster. So it is necessary to check manually for an available remote device information. Modified: trunk/libsyncml/data_sync_api/data_sync_common.c Modified: trunk/libsyncml/data_sync_api/data_sync_common.c ============================================================================== --- trunk/libsyncml/data_sync_api/data_sync_common.c Wed Mar 18 18:37:04 2009 (r997) +++ trunk/libsyncml/data_sync_api/data_sync_common.c Wed Mar 18 18:38:50 2009 (r998) @@ -56,10 +56,24 @@ use_timestamp = smlDataSyncIsTimestamp(last, datastore->dsObject->useTimestampAnchor); - smlTrace(TRACE_INTERNAL, "%s - use timestamp is %d", __func__, use_timestamp); + smlTrace(TRACE_INTERNAL, "%s: use timestamp is %d", __func__, use_timestamp); if (use_timestamp) { + /* It is necessary to be sure that the remote device supports UTC. */ + smlTrace(TRACE_INTERNAL, + "%s: session %p, localtime %d, remoteDevInf %p", + __func__, + datastore->dsObject->session, + datastore->dsObject->onlyLocaltime, + datastore->dsObject->remoteDevInf); + if (datastore->dsObject->session && + !datastore->dsObject->onlyLocaltime && + !datastore->dsObject->remoteDevInf && + !smlDataSyncManageDevInf(datastore->dsObject, error)) + { + goto error; + } next = smlTryMalloc0(sizeof(char)*17, error); if (!next) goto error; |