Drizzled Public API Documentation

trx0xa.h
1 /*****************************************************************************
2 
3 Copyright (C) 1995, 2009, Innobase Oy. 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., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 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 #pragma once
25 #ifndef XA_H
26 #define XA_H
27 
28 /*
29  * Transaction branch identification: XID and NULLXID:
30  */
31 #ifndef XIDDATASIZE
32 
34 #define XIDDATASIZE 128
36 #define MAXGTRIDSIZE 64
37 #define MAXBQUALSIZE 64
40 struct xid_t {
41  long formatID;
43  long gtrid_length;
44  long bqual_length;
45  char data[XIDDATASIZE];
47 };
49 typedef struct xid_t XID;
50 #endif
51 
52 /* @{ */
53 #define XA_OK 0
54 #define XAER_ASYNC -2
56 #define XAER_RMERR -3
59 #define XAER_NOTA -4
60 #define XAER_INVAL -5
61 #define XAER_PROTO -6
63 #define XAER_RMFAIL -7
64 #define XAER_DUPID -8
65 #define XAER_OUTSIDE -9
67 /* @} */
68 #endif /* ifndef XA_H */
69 /*
70  * End of xa.h header
71  */