Register a callback for real-time control point monitoring.
typedef MCO_RET (*mco_db_callback_t)(mco_db_h db);
MCO_RET mco_db_register_callback(mco_db_h db, mco_db_callback_t callback);
| db | The database handle that was established by mco_db_connect() |
| callback | callback function |
Register a callback for real-time control point checking. The callback should return MCO_S_OK when the transaction is still fine to progress or MCO_E_INTERRUPT when time ran out.
| MCO_S_OK | Callback registered successfully |
| MCO_E_INTERRUPTED | Transaction must be interrupted, time ran out |