mm_sync_status_get_byid()

Get the status of a synchronization based on the operation ID

Synopsis:

#include <mmsync/mmsyncclient.h>
int mm_sync_status_get_byid( mmsync_hdl_t *hdl, 
                             mmsync_status_t *status, 
                             uint32_t id, 
                             uint32_t flags )

Arguments:

hdl
The mm-sync connection handle pointer.
status
A structure to store the status in.
id
The operation ID of the synchronization for which the status is being retrieved.
flags
Reserved for future use, must be 0.

Library:

mmsyncclient

Returns:

On success, a value greater than 0 indicating the number of results. When no synchronization with the given operation ID is found, the function returns 0 because there are no results; this isn't considered an error case. On failure, -1 is returned.