Event interface

The mm-sync API defines general event categories and specific event types as well as structures for holding data returned for particular event types. The data can include the synchronization operation ID, timestamps, and details on the database file entries that were added or modified.

For each event that occurs, its basic information is stored in an mmsync_event_t structure that's written by mm_sync_events_get(). This structure contains the event's type, its data size, and a field to read additional data. This last field points to another structure that holds extra information specific to the event's type.