00001 00007 #ifndef _TXC_FM_H 00008 #define _TXC_FM_H 00009 00010 #include <core/tx.h> 00011 #include <core/txdesc.h> 00012 00013 00014 /* Failure manager flags */ 00015 #ifndef TXC_FM_FLAGS 00016 # define TXC_FM_FLAGS 00017 # define TXC_FM_NO_RETRY 0x1 00021 #endif 00022 00023 00024 void txc_fm_init(txc_tx_t *txd); 00025 void txc_fm_register(txc_tx_t *txd, int flags, int *err); 00026 void txc_fm_transaction_postbegin(txc_tx_t *txd); 00027 void txc_fm_handle_commit_failure(txc_tx_t *txd, int error_result); 00028 void txc_fm_handle_undo_failure(txc_tx_t *txd, int error_result); 00029 00030 #endif