mco_db_register_callback

Register a callback for real-time control point monitoring.

Prototype

 
    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);
 
 

Arguments

db The database handle that was established by mco_db_connect()
callback callback function

Description

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.

Return Codes

MCO_S_OK Callback registered successfully
MCO_E_INTERRUPTED Transaction must be interrupted, time ran out