/** * Callout queue periodic event to synchronize persistent DB. */ static bool stable_sync(void *unused_obj) { (void) unused_obj; dbstore_sync(db_lifedata); return TRUE; /* Keep calling */ }
/** * Callout queue periodic event to synchronize persistent DB. */ static gboolean stable_sync(gpointer unused_obj) { (void) unused_obj; dbstore_sync(db_lifedata); return TRUE; /* Keep calling */ }
/** * Fully synchronize DBMW database: flush local cache, then the SDBM layer. */ void dbstore_sync_flush(dbmw_t *dw) { dbstore_flush(dw); /* Flush cached dirty values... */ dbstore_sync(dw); /* ...then sync database layer */ }