1 /***************************************************************************** 2 3 Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License, version 2.0, 7 as published by the Free Software Foundation. 8 9 This program is also distributed with certain software (including 10 but not limited to OpenSSL) that is licensed under separate terms, 11 as designated in a particular file or component or in included license 12 documentation. The authors of MySQL hereby grant you an additional 13 permission to link the program and your derivative works with the 14 separately licensed software that they have included with MySQL. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License, version 2.0, for more details. 20 21 You should have received a copy of the GNU General Public License along with 22 this program; if not, write to the Free Software Foundation, Inc., 23 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA 24 25 *****************************************************************************/ 26 27 /* 28 * Start of xa.h header 29 * 30 * Define a symbol to prevent multiple inclusions of this header file 31 */ 32 #ifndef XA_H 33 #define XA_H 34 35 #include "xa.h" 36 37 /* 38 * Transaction branch identification: XID and NULLXID: 39 */ 40 #ifndef XIDDATASIZE 41 42 /** Sizes of transaction identifier */ 43 #define XIDDATASIZE 128 /*!< maximum size of a transaction 44 identifier, in bytes */ 45 #define MAXGTRIDSIZE 64 /*!< maximum size in bytes of gtrid */ 46 #define MAXBQUALSIZE 64 /*!< maximum size in bytes of bqual */ 47 48 #endif 49 /** X/Open XA distributed transaction status codes */ 50 /* @{ */ 51 #define XA_OK 0 /*!< normal execution */ 52 #define XAER_ASYNC -2 /*!< asynchronous operation already 53 outstanding */ 54 #define XAER_RMERR -3 /*!< a resource manager error 55 occurred in the transaction 56 branch */ 57 #define XAER_NOTA -4 /*!< the XID is not valid */ 58 #define XAER_INVAL -5 /*!< invalid arguments were given */ 59 #define XAER_PROTO -6 /*!< routine invoked in an improper 60 context */ 61 #define XAER_RMFAIL -7 /*!< resource manager unavailable */ 62 #define XAER_DUPID -8 /*!< the XID already exists */ 63 #define XAER_OUTSIDE -9 /*!< resource manager doing 64 work outside transaction */ 65 /* @} */ 66 #endif /* ifndef XA_H */ 67 /* 68 * End of xa.h header 69 */ 70