;	Copyright (C) 1994, 2007 NEC Corporation
;	ProductName HolonEnterprise(CS) 2007/04
;
;
;/*
; * #ident	"@(#) tuxedo/include/atmi.h	$Revision: 1.24 $"
; */
;
;/* Flags to service routines */
TPNOBLOCK	0x00000001	;/* non-blocking send/rcv */
TPSIGRSTRT	0x00000002	;/* restart rcv on interrupt */
TPNOREPLY	0x00000004	;/* no reply expected */
TPNOTRAN	0x00000008	;/* not sent in transaction mode */
TPTRAN		0x00000010	;/* sent in transaction mode */
TPNOTIME	0x00000020	;/* no timeout */
TPABSOLUTE	0x00000040	;/* absolute value on tmsetprio */
TPGETANY	0x00000080	;/* get any valid reply */
TPNOCHANGE	0x00000100	;/* force incoming buffer to match */
RESERVED_BIT1	0x00000200	;/* reserved for future use */
TPCONV		0x00000400	;/* conversational service */
TPSENDONLY	0x00000800	;/* send-only mode */
TPRECVONLY	0x00001000	;/* recv-only mode */
TPACK		0x00002000	;/* */
RESERVED_BIT2   0x00004000	;/* reserved for future use */
RESERVED_BIT3	0x00008000	;/* reserved for future use */
RESERVED_BIT4	0x00010000	;/* reserved for future use */
RESERVED_BIT5	0x00020000	;/* reserved for future use */
;
;/* Flags to tpreturn() */
TPFAIL		0x00000001	;/* service FAILure for tpreturn */
TPSUCCESS	0x00000002	;/* service SUCCESS for tpreturn */
TPEXIT		0x08000000	;/* service failue with server exit */
;
;/* Flags to tpscmt() - Valid TP_COMMIT_CONTROL characteristic values */
TP_CMT_LOGGED	0x01		;/* return after commit decision is logged */
TP_CMT_COMPLETE	0x02		;/* return after commit has completed */
;
;/* Flags to tpinit() */
;TPU_MASK	0x00000007	;/* unsolicited notification mask */
TPU_MASK	0x00000047	;/* unsolicited notification mask */
TPU_SIG		0x00000001	;/* signal based notification */
TPU_DIP		0x00000002	;/* dip-in based notification */
TPU_IGN		0x00000004	;/* ignore unsolicited messages */
;
TPSA_FASTPATH	0x00000008	;/* System access == fastpath */
TPSA_PROTECTED	0x00000010	;/* System access == protected */
TPMULTICONTEXTS	0x00000020	;/* Enable MULTI context */
TPU_THREAD      0x00000040	;/* thread based notification */
;
;/* Flags to tpconvert() */
TPTOSTRING	0x40000000	;/* Convert structure to string */
TPCONVCLTID	0x00000001	;/* Convert CLIENTID */
TPCONVTRANID	0x00000002	;/* Convert TRANID */
TPCONVXID	0x00000004	;/* Convert XID */
;
TPCONVMAXSTR	256		;/* Maximum string size */
;
;/* Return values to tpchkauth() */
TPNOAUTH	0		;/* no authentication */
TPSYSAUTH	1		;/* system authentication */
TPAPPAUTH	2		;/* system and application authentication */
;
; * tperrno values - error codes
TPMINVAL	0	;/* minimum error message */
TPEABORT	1
TPEBADDESC	2
TPEBLOCK	3
TPEINVAL	4
TPELIMIT	5
TPENOENT	6
TPEOS		7
TPEPERM		8
TPEPROTO	9
TPESVCERR	10
TPESVCFAIL	11
TPESYSTEM	12
TPETIME		13
TPETRAN		14
TPGOTSIG	15
TPERMERR	16
TPEITYPE	17
TPEOTYPE	18
TPERELEASE	19
TPEHAZARD	20
TPEHEURISTIC	21
TPEEVENT	22
TPEMATCH	23
TPEDIAGNOSTIC	24
TPEMIB		25
TPMAXVAL	26	;/* maximum error message */
;
; * tperrordetail values - error detail codes
TPED_MINVAL             0       ;/* minimum error message */
TPED_SVCTIMEOUT         1
TPED_TERM               2
TPED_NOUNSOLHANDLER     3
TPED_NOCLIENT           4
TPED_DOMAINUNREACHABLE  5
TPED_CLIENTDISCONNECTED 6
TPED_PERM               7
TPED_OTS_INTERNAL       8
TPED_INVALID_CERTIFICATE	9
TPED_INVALID_SIGNATURE	10
TPED_DECRYPTION_FAILURE	11
TPED_INVALIDCONTEXT	12
TPED_INVALID_XA_TRANSACTION	13
TPED_MBCONV		14
TPED_DECUTCM_FAILURE    15
TPED_GROUP_FORBIDDEN    16
TPED_MAXVAL             17      ;/* maximum error message */
;
;/* conversations - events */
TPEV_DISCONIMM	0x0001
TPEV_SVCERR	0x0002
TPEV_SVCFAIL	0x0004
TPEV_SVCSUCC	0x0008
TPEV_SENDONLY	0x0020
;
;/* START QUEUED MESSAGES ADD-ON */
TMQNAMELEN	15
TMMSGIDLEN	32
TMCORRIDLEN	32
;
;/* structure elements that are valid - set in flags */
TPNOFLAGS	0x00000
TPQCORRID	0x00001		;/* set/get correlation id */
TPQFAILUREQ	0x00002		;/* set/get failure queue */
TPQBEFOREMSGID	0x00004		;/* enqueue before message id */
TPQGETBYMSGIDOLD	0x00008		;/* dequeue by msgid */
TPQMSGID	0x00010		;/* get msgid of enq/deq message */
TPQPRIORITY	0x00020		;/* set/get message priority */
TPQTOP		0x00040		;/* enqueue at queue top */
TPQWAIT		0x00080		;/* wait for dequeuing */
TPQREPLYQ	0x00100		;/* set/get reply queue */
TPQTIME_ABS	0x00200		;/* set absolute time */
TPQTIME_REL	0x00400		;/* set absolute time */
TPQGETBYCORRIDOLD	0x00800		;/* dequeue by corrid */
TPQPEEK		0x01000		;/* peek */
TPQDELIVERYQOS   0x02000        ;/* delivery quality of service */
TPQREPLYQOS     0x04000         ;/* reply message quality of service */
TPQEXPTIME_ABS  0x08000         ;/* absolute expiration time */
TPQEXPTIME_REL  0x10000         ;/* relative expiration time */
TPQEXPTIME_NONE 0x20000         ;/* never expire */
TPQGETBYMSGID	0x40008		;/* dequeue by msgid */
TPQGETBYCORRID	0x80800		;/* dequeue by corrid */
;
;/* Valid flags for the quality of service fileds in the TPQCTLstructure */
TPQQOSDEFAULTPERSIST  0x00001   ;/* queue's default persistence policy */
TPQQOSPERSISTENT      0x00002   ;/* disk message */
TPQQOSNONPERSISTENT   0x00004   ;/* memory message */
;
;/* THESE MUST MATCH THE DEFINITIONS IN qm.h */
QMEINVAL	-1
QMEBADRMID	-2
QMENOTOPEN	-3
QMETRAN		-4
QMEBADMSGID	-5
QMESYSTEM	-6
QMEOS		-7
QMEABORTED	-8
QMENOTA		-8	;QMEABORTED
QMEPROTO	-9
QMEBADQUEUE	-10
QMENOMSG	-11
QMEINUSE	-12
QMENOSPACE	-13
QMERELEASE      -14
QMEINVHANDLE    -15
QMESHARE        -16
;
;/* START EVENT BROKER MESSAGES */
TPEVSERVICE	0x00000001
TPEVQUEUE	0x00000002
TPEVTRAN	0x00000004
TPEVPERSIST	0x00000008
TPEVRESERVED1	0x00000010	;/* Reserved for future usage */
TPEVRESERVED2	0x00000020	;/* Reserved for future usage */
;
;
;/* #ident	"@(#) tuxedo/include/tx.h	$Revision: 1.3 $" */
;
;/* commit return values */
TX_COMMIT_COMPLETED 0
TX_COMMIT_DECISION_LOGGED 1
;
;/* transaction control values */
TX_UNCHAINED 0
TX_CHAINED 1
;
;/* transaction state values */
TX_ACTIVE 0
TX_TIMEOUT_ROLLBACK_ONLY 1
TX_ROLLBACK_ONLY 2
;
; * tx_ () return codes (transaction manager reports to application)
TX_NOT_SUPPORTED	1
TX_OK			0
TX_OUTSIDE		-1
TX_ROLLBACK		-2
TX_MIXED		-3
TX_HAZARD		-4
TX_PROTOCOL_ERROR	-5
TX_ERROR		-6
TX_FAIL			-7
TX_EINVAL		-8
TX_COMMITTED		-9
TX_NO_BEGIN		-100
TX_ROLLBACK_NO_BEGIN	-102	;(TX_ROLLBACK+TX_NO_BEGIN)
TX_MIXED_NO_BEGIN		-103	;(TX_MIXED+TX_NO_BEGIN)
TX_HAZARD_NO_BEGIN		-104	;(TX_HAZARD+TX_NO_BEGIN)
TX_COMMITTED_NO_BEGIN		-109	;(TX_COMMITTED+TX_NO_BEGIN)
;
