InnoDB Plugin  1.0
trx0xa.h
1 /*****************************************************************************
2 
3 Copyright (c) 1995, 2009, Oracle and/or its affiliates. All Rights Reserved.
4 
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.
8 
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.
12 
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.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /*
20  * Start of xa.h header
21  *
22  * Define a symbol to prevent multiple inclusions of this header file
23  */
24 #ifndef XA_H
25 #define XA_H
26 
27 /*
28  * Transaction branch identification: XID and NULLXID:
29  */
30 #ifndef XIDDATASIZE
31 
33 #define XIDDATASIZE 128
35 #define MAXGTRIDSIZE 64
36 #define MAXBQUALSIZE 64
39 struct xid_t {
40  long formatID;
42  long gtrid_length;
43  long bqual_length;
44  char data[XIDDATASIZE];
46 };
48 typedef struct xid_t XID;
49 #endif
50 
51 /* @{ */
52 #define XA_OK 0
53 #define XAER_ASYNC -2
55 #define XAER_RMERR -3
58 #define XAER_NOTA -4
59 #define XAER_INVAL -5
60 #define XAER_PROTO -6
62 #define XAER_RMFAIL -7
63 #define XAER_DUPID -8
64 #define XAER_OUTSIDE -9
66 /* @} */
67 #endif /* ifndef XA_H */
68 /*
69  * End of xa.h header
70  */