Typedef anjay_dm_transaction_rollback_t

Typedef Documentation

typedef int anjay_dm_transaction_rollback_t(anjay_t *anjay, const anjay_dm_object_def_t *const *obj_ptr)

A handler that is called whenever there is a need to restore previous Object state during a transaction or during committing a transaction.

Param anjay:

Anjay Object to operate on.

Param obj_ptr:

Object definition pointer, as passed to anjay_register_object .

Return:

  • 0 on success

  • a negative value in case of error.