/********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:29:49 by OpenVMS SDL EV3-3 */ /* Source: 30-MAR-2010 17:29:21 $1$DGA7274:[STARLET_H.SRC]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $DTIDEF ***/ #ifndef __DTIDEF_LOADED #define __DTIDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #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 */ #define DTI$K_IN_DOUBT 11 /* Transaction has prepared and RM is */ /* coordinator; resolution must come */ /* from external entity */ /* 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 #ifdef __NEW_STARLET typedef 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_114_ : 6; } DTISEARCHDEF; #else /* __OLD_STARLET */ 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_114_ : 6; } ; #endif /* #ifdef __NEW_STARLET */ #define DTI$M_UPDATE 0x1 #define DTI$M_LOCAL_RM 0x2 #define DTI$S_TRANSACTION_INFORMATION 84 /* length of transaction information record */ #ifdef __NEW_STARLET typedef 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_117_ : 6; } dti$r_fill_116_; } dti$r_fill_115_; 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 */ } DTIRECDEF; #if !defined(__VAXC) #define dti$w_flags dti$r_fill_115_.dti$w_flags #define dti$v_update dti$r_fill_115_.dti$r_fill_116_.dti$v_update #define dti$v_local_rm dti$r_fill_115_.dti$r_fill_116_.dti$v_local_rm #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ 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_117_ : 6; } dti$r_fill_116_; } dti$r_fill_115_; 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) #define dti$w_flags dti$r_fill_115_.dti$w_flags #define dti$v_update dti$r_fill_115_.dti$r_fill_116_.dti$v_update #define dti$v_local_rm dti$r_fill_115_.dti$r_fill_116_.dti$v_local_rm #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __DTIDEF_LOADED */