xa.h revision 1
1N/A * See the file LICENSE for redistribution information. 1N/A * Copyright (c) 1998 1N/A * Sleepycat Software. All rights reserved. 1N/A * @(#)xa.h 10.1 (Sleepycat) 6/22/98 1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A * Define a symbol to prevent multiple inclusions of this header file 1N/A * Transaction branch identification: XID and NULLXID: 1N/A * A value of -1 in formatID means that the XID is null. 1N/A * Declarations of routines by which RMs call TMs: 1N/A * XA Switch Data Structure 1N/A#
define RMNAMESZ 32 /* length of resource manager name, */ 1N/A /* including the null terminator */ 1N/A /* strings, including the null 1N/A long flags;
/* resource manager specific options */ 1N/A __P((
int *,
int *,
int,
long));
1N/A * Flag definitions for the RM switch 1N/A#
define TMNOFLAGS 0x00000000L /* no resource manager features 1N/A association migration */ 1N/A asynchronous operations */ 1N/A * Flag definitions for xa_ and ax_ routines 1N/A/* use TMNOFLAGGS, defined above, when not specifying other flags */ 1N/A#
define TMASYNC 0x80000000L /* perform routine asynchronously */ 1N/A#
define TMONEPHASE 0x40000000L /* caller is using one-phase commit 1N/A#
define TMFAIL 0x20000000L /* dissociates caller and marks 1N/A transaction branch rollback-only */ 1N/A#
define TMNOWAIT 0x10000000L /* return if blocking condition 1N/A#
define TMRESUME 0x08000000L /* caller is resuming association with 1N/A suspended transaction branch */ 1N/A#
define TMSUCCESS 0x04000000L /* dissociate caller from transaction 1N/A#
define TMSUSPEND 0x02000000L /* caller is suspending, not ending, 1N/A#
define TMJOIN 0x00200000L /* caller is joining existing 1N/A transaction branch */ 1N/A * ax_() return codes (transaction manager reports to resource manager) 1N/A transaction branch */ 1N/A suspended transaction branch */ 1N/A * xa_() return codes (resource manager reports to transaction manager) 1N/A unspecified reason */ 1N/A communication failure */ 1N/A integrity of the resources was 1N/A transaction branch for a reason not 1N/A suspension occurred */ 1N/A been heuristically completed */ 1N/A heuristically committed */ 1N/A heuristically rolled back */ 1N/A heuristically committed and rolled 1N/A#
define XA_RETRY 4 /* routine returned with no effect and 1N/A and has been committed */ 1N/A the transaction branch */ 1N/A#
endif /* ifndef XA_H */