1
/*****************************************************************************
3
Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
17
*****************************************************************************/
20
* Start of xa.h header
22
* Define a symbol to prevent multiple inclusions of this header file
28
* Transaction branch identification: XID and NULLXID:
32
/** Sizes of transaction identifier */
33
#define XIDDATASIZE 128 /*!< maximum size of a transaction
34
identifier, in bytes */
35
#define MAXGTRIDSIZE 64 /*!< maximum size in bytes of gtrid */
36
#define MAXBQUALSIZE 64 /*!< maximum size in bytes of bqual */
38
/** X/Open XA distributed transaction identifier */
40
long formatID; /*!< format identifier; -1
41
means that the XID is null */
42
long gtrid_length; /*!< value from 1 through 64 */
43
long bqual_length; /*!< value from 1 through 64 */
44
char data[XIDDATASIZE]; /*!< distributed transaction
47
/** X/Open XA distributed transaction identifier */
48
typedef struct xid_t XID;
50
/** X/Open XA distributed transaction status codes */
52
#define XA_OK 0 /*!< normal execution */
53
#define XAER_ASYNC -2 /*!< asynchronous operation already
55
#define XAER_RMERR -3 /*!< a resource manager error
56
occurred in the transaction
58
#define XAER_NOTA -4 /*!< the XID is not valid */
59
#define XAER_INVAL -5 /*!< invalid arguments were given */
60
#define XAER_PROTO -6 /*!< routine invoked in an improper
62
#define XAER_RMFAIL -7 /*!< resource manager unavailable */
63
#define XAER_DUPID -8 /*!< the XID already exists */
64
#define XAER_OUTSIDE -9 /*!< resource manager doing
65
work outside transaction */
67
#endif /* ifndef XA_H */