mm_sync_status_get_bydbname()

Get the status of a synchronization by providing the database name

Synopsis:

#include <mmsync/mmsyncclient.h>
int mm_sync_status_get_bydbname(mmsync_hdl_t *hdl,
                                mmsync_status_t *status,
                                const char *dbname,
                                uint32_t flags)

Arguments:

hdl
The mm-sync connection handle pointer.
status
A structure to store the status in.
dbname
The name of the database 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 database with the given name is found, the function returns 0 because there are no results; this isn't considered an error case. On failure, -1 is returned.