Get the status of a synchronization by providing the database name
#include <mmsync/mmsyncclient.h>
int mm_sync_status_get_bydbname(mmsync_hdl_t *hdl, mmsync_status_t *status, const char *dbname, uint32_t flags)
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.