/* * * DTI flag definitions */ #ifndef _DTIDEF_H #define _DTIDEF_H /* Item list definitions */ #define DTI$_ENDITEM 0 /* end of item list code */ #define DTI$_TRANSACTION_INFORMATION 1 /* active transaction list */ #define DTI$_CURRENT_TID 2 /* current transaction identifier */ #define DTI$_MEMBERSHIP_COUNT 3 /* # members still in transaction */ #define DTI$_BRANCH_COUNT 4 /* # branches still in transaction */ #define DTI$_ROOT_NODE_NAME 5 /* root node */ #define DTI$_STARTING_TIME 6 /* transaction start time */ #define dti$K_MAX_ITEM_CODE 6 /* Transaction states */ #define DTI$K_NULL 0 #define DTI$K_STARTING 1 /* starting state */ #define DTI$K_ACTIVE 2 /* active state */ #define DTI$K_ONE_P_COMMITTING 3 /* committing (one-phase) */ #define DTI$K_PREPARING 4 /* preparing state */ #define DTI$K_PREPARED 5 /* prepared state */ #define DTI$K_COMMITTING 6 /* committing state */ #define DTI$K_COMMITTED 7 /* committed state */ #define DTI$K_ONE_P_COMMITTED 8 /* committed (one-phase) */ #define DTI$K_ABORTING 9 /* aborting state */ #define DTI$K_ABORTED 10 /* aborted or forgotten state */ /* SET item codes */ #define DTI$K_ILLEGAL 0 /* make code 0 illegal */ #define DTI$K_DELETE_TRANSACTION 1 /* delete transaction */ #define DTI$K_DELETE_RM_NAME 2 /* delete resource manager */ #define DTI$K_MODIFY_STATE 3 /* modify transaction state */ #define DTI$K_DELETE_BRANCH_NODE 4 /* delete branch node */ #define DTI$K_SET_CURRENT_TID 5 /* set the current transaction identifier */ #define DTI$K_MAX_SET_CODE 5 /* Search list codes */ #define DTI$V_SEARCH_STARTING 0 #define DTI$V_SEARCH_ACTIVE 1 #define DTI$V_SEARCH_1P_COMITTING 2 #define DTI$V_SEARCH_PREPARING 3 #define DTI$V_SEARCH_PREPARED 4 #define DTI$V_SEARCH_COMMITTING 5 #define DTI$V_SEARCH_COMMITTED 6 #define DTI$V_SEARCH_1P_COMMITTED 7 #define DTI$V_SEARCH_ABORTING 8 #define DTI$V_SEARCH_ABORTED 9 #define DTI$M_SEARCH_STARTING (1<