21 #include "../syncml.h" 22 #include "../syncml_internals.h" 23 #include "../sml_error_internals.h" 25 #include <libsyncml/data_sync_api/defines.h> 26 #include <libsyncml/data_sync_api/standard.h> 27 #include <libsyncml/data_sync_api/callbacks.h> 29 #include "data_sync.h" 38 #include "../sml_session_internals.h" 39 #include "../sml_manager_internals.h" 45 smlTrace(TRACE_ENTRY,
"%s", __func__);
48 if (!dsObject->session->sending && !dsObject->session->waiting)
51 smlTrace(TRACE_INTERNAL,
"%s: A careful abort is possible.", __func__);
58 smlTrace(TRACE_INTERNAL,
"%s: A hard abort is required.", __func__);
60 if (SML_DATA_SYNC_STATE_CONNECTED <= dsObject->internalState &&
61 dsObject->internalState < SML_DATA_SYNC_STATE_DISCONNECT_IN_PROGRESS)
63 dsObject->internalState = SML_DATA_SYNC_STATE_DISCONNECT_IN_PROGRESS;
65 SmlLink *link_ = smlManagerSessionGetLink(
72 if (!smlTransportDisconnect(dsObject->tsp, link_, error))
77 smlTrace(TRACE_EXIT,
"%s", __func__);
const char * smlErrorPrint(SmlError **error)
Returns the message of the error.
This is the central synchronization object.
SmlBool smlDataSyncAbort(SmlDataSyncObject *dsObject, SmlError **error)
void smlTrace(SmlTraceType type, const char *message,...)
Used for tracing the application.