4
* Define a symbol to prevent multiple inclusions of this header file
10
* Transaction branch identification: XID and NULLXID:
14
#define XIDDATASIZE 128 /* size in bytes */
15
#define MAXGTRIDSIZE 64 /* maximum size in bytes of gtrid */
16
#define MAXBQUALSIZE 64 /* maximum size in bytes of bqual */
19
long formatID; /* format identifier; -1
20
means that the XID is null */
21
long gtrid_length; /* value from 1 through 64 */
22
long bqual_length; /* value from 1 through 64 */
23
char data[XIDDATASIZE];
25
typedef struct xid_t XID;
27
#define XA_OK 0 /* normal execution */
28
#define XAER_ASYNC -2 /* asynchronous operation already
30
#define XAER_RMERR -3 /* a resource manager error occurred in
31
the transaction branch */
32
#define XAER_NOTA -4 /* the XID is not valid */
33
#define XAER_INVAL -5 /* invalid arguments were given */
34
#define XAER_PROTO -6 /* routine invoked in an improper
36
#define XAER_RMFAIL -7 /* resource manager unavailable */
37
#define XAER_DUPID -8 /* the XID already exists */
38
#define XAER_OUTSIDE -9 /* resource manager doing work outside
40
#endif /* ifndef XA_H */