/********************************************************************************************************************************/ /* Created: 15-MAR-2001 23:37:56 by OpenVMS SDL EV1-33 */ /* Source: 15-MAR-2001 23:34:06 _$11$DUA933:[BUILD.SDL]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $DTIDEF ***/ #ifndef __DTIDEF_LOADED #define __DTIDEF_LOADED 1 #pragma nostandard #ifdef __cplusplus extern "C" { #define __unknown_params ... #else #define __unknown_params #endif #if !defined(__VAXC) && !defined(VAXC) #define __struct struct #define __union union #else #define __struct variant_struct #define __union variant_union #endif /* */ /* DTI flag definitions */ /* */ /* 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 #define DTI$M_SEARCH_STARTING 0x1 #define DTI$M_SEARCH_ACTIVE 0x2 #define DTI$M_SEARCH_1P_COMITTING 0x4 #define DTI$M_SEARCH_PREPARING 0x8 #define DTI$M_SEARCH_PREPARED 0x10 #define DTI$M_SEARCH_COMMITTING 0x20 #define DTI$M_SEARCH_COMMITTED 0x40 #define DTI$M_SEARCH_1P_COMMITTED 0x80 #define DTI$M_SEARCH_ABORTING 0x100 #define DTI$M_SEARCH_ABORTED 0x200 #define DTI$_ENDSEARCH 0 /* End of search list */ #define DTI$_SEARCH_AS_NODE 1 /* Search as node */ #define DTI$_SEARCH_CURRENT_TID 2 /* Search current transaction identifier */ #define DTI$_SEARCH_TID 3 /* Search transaction identifier */ #define DTI$_SEARCH_RM_NAME 4 /* Search resource manager */ #define DTI$_SEARCH_BRANCH_NAME 5 /* Search branch node names */ #define DTI$_SEARCH_STATE 6 /* Search state */ #define DTI$_SEARCH_RESOLVED_STATE 7 /* Search resolved state */ #define DTI$K_MAX_SEARCH_CODE 7 struct dtisearchdef { /* Search list codes */ unsigned dti$v_search_starting : 1; /* Starting state */ unsigned dti$v_search_active : 1; /* Active state */ unsigned dti$v_search_1p_comitting : 1; /* 1P Committing state */ unsigned dti$v_search_preparing : 1; /* Preparing state */ unsigned dti$v_search_prepared : 1; /* Prepared state */ unsigned dti$v_search_committing : 1; /* Committing state */ unsigned dti$v_search_committed : 1; /* Committed state */ unsigned dti$v_search_1p_committed : 1; /* 1P Committed state */ unsigned dti$v_search_aborting : 1; /* Aborting state */ unsigned dti$v_search_aborted : 1; /* Aborted state */ /* Search item list definitions */ unsigned dti$v_fill_76 : 6; } ; #define DTI$M_UPDATE 0x1 #define DTI$M_LOCAL_RM 0x2 #define DTI$S_TRANSACTION_INFORMATION 84 /* length of transaction information record */ struct dtirecdef { /* Transaction information record definitions */ __union { unsigned short int dti$w_flags; /* Modifier flags */ __struct { unsigned dti$v_update : 1; /* Delete resource manager from transaction */ unsigned dti$v_local_rm : 1; /* Participant type (1 = RM, 0 = node) */ unsigned dti$v_fill_79 : 6; } dti$r_fill_78; } dti$r_fill_77; unsigned char dti$b_state; /* Transaction state */ unsigned char dti$b_part_name_len; /* Length of participant name */ char dti$t_part_name [32]; /* Participant name */ char dti$t_part_log_id [16]; /* Participant log id */ char dti$t_tid [16]; /* Transaction ID */ unsigned int dti$o_utc_commit_time [4]; /* UTC commit time */ } ; #if !defined(__VAXC) && !defined(VAXC) #define dti$w_flags dti$r_fill_77.dti$w_flags #define dti$v_update dti$r_fill_77.dti$r_fill_78.dti$v_update #define dti$v_local_rm dti$r_fill_77.dti$r_fill_78.dti$v_local_rm #endif /* #if !defined(__VAXC) && !defined(VAXC) */ #ifdef __cplusplus } #endif #pragma standard #endif /* __DTIDEF_LOADED */