When mco_trans_iterate()
is called, it must be passed a callback function defined as follows:
typedef MCO_RET (*mco_trans_iterator_callback_t)(mco_trans_h t, MCO_Hf* obj, int cid, int obj_state, void* user_ctx);
The parameters are as follows:
t
obj
cid
obj_state
ctx
An example of an iterator callback implementation is provided in the SDK sample "samples/native/core/07-transactions/iterate".