![]() |
|
|||
0001 /** 0002 * @brief Added for compatiblity 0003 * 0004 * @file tmenv.h 0005 */ 0006 /* ----------------------------------------------------------------------------- 0007 * Enduro/X Middleware Platform for Distributed Transaction Processing 0008 * Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved. 0009 * Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved. 0010 * This software is released under one of the following licenses: 0011 * AGPL (with Java and Go exceptions) or Mavimax's license for commercial use. 0012 * See LICENSE file for full text. 0013 * ----------------------------------------------------------------------------- 0014 * AGPL license: 0015 * 0016 * This program is free software; you can redistribute it and/or modify it under 0017 * the terms of the GNU Affero General Public License, version 3 as published 0018 * by the Free Software Foundation; 0019 * 0020 * This program is distributed in the hope that it will be useful, but WITHOUT ANY 0021 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 0022 * PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3 0023 * for more details. 0024 * 0025 * You should have received a copy of the GNU Affero General Public License along 0026 * with this program; if not, write to the Free Software Foundation, Inc., 0027 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 0028 * 0029 * ----------------------------------------------------------------------------- 0030 * A commercial use license is available from Mavimax, Ltd 0031 * contact@mavimax.com 0032 * ----------------------------------------------------------------------------- 0033 */ 0034 0035 #ifndef TMENV_H 0036 #define TMENV_H 0037 0038 #ifdef __cplusplus 0039 extern "C" { 0040 #endif 0041 0042 /*---------------------------Includes-----------------------------------*/ 0043 #include <xa.h> 0044 /*---------------------------Externs------------------------------------*/ 0045 /*---------------------------Macros-------------------------------------*/ 0046 /*---------------------------Enums--------------------------------------*/ 0047 /*---------------------------Typedefs-----------------------------------*/ 0048 0049 /** 0050 * Integration mode Context based storage 0051 */ 0052 struct ndrx_ctx_priv 0053 { 0054 void *integptr1; /**< integration pointer 1, private */ 0055 void *integptr2; /**< integration pointer 2, private */ 0056 void *integptr3; /**< integration pointer 3, private */ 0057 long integlng4; /**< Integration storage 4 */ 0058 }; 0059 typedef struct ndrx_ctx_priv ndrx_ctx_priv_t; 0060 0061 /** 0062 * Integration mode Environment based storage 0063 */ 0064 struct ndrx_env_priv 0065 { 0066 long integlng0; /**< Integration storage 0 */ 0067 void *integptr1; /**< integration pointer 1, private */ 0068 void *integptr2; /**< integration pointer 2, private */ 0069 void *integptr3; /**< integration pointer 3, private */ 0070 }; 0071 typedef struct ndrx_env_priv ndrx_env_priv_t; 0072 0073 /*---------------------------Globals------------------------------------*/ 0074 /*---------------------------Statics------------------------------------*/ 0075 /*---------------------------Prototypes---------------------------------*/ 0076 0077 /* Additional contexting - integration related */ 0078 0079 /* Data from TLS Context */ 0080 extern NDRX_API ndrx_ctx_priv_t* ndrx_ctx_priv_get(void); 0081 extern NDRX_API void ndrx_ctx_auto(int is_auto); 0082 0083 /* Data from environment */ 0084 extern NDRX_API ndrx_env_priv_t* ndrx_env_priv_get(void); 0085 0086 /* XA Driver settings... */ 0087 extern NDRX_API void ndrx_xa_noapisusp(int val); 0088 extern NDRX_API void ndrx_xa_nojoin(int val); 0089 extern NDRX_API void ndrx_xa_nosuspend(int val); 0090 extern NDRX_API void ndrx_xa_nostartxid(int val); 0091 extern NDRX_API void ndrx_xa_setloctxabort(int (*pf_xa_loctxabort)(XID *xid, long flags)); 0092 extern NDRX_API void ndrx_xa_setgetconnn(void *(*pf_xa_getconn)(void)); 0093 extern NDRX_API void ndrx_xa_btight(int val); 0094 0095 extern NDRX_API long ndrx_atmisrv_get_flags(void); 0096 extern NDRX_API void ndrx_atmisrv_set_flags(long flags); 0097 0098 #ifdef __cplusplus 0099 } 0100 #endif 0101 0102 #endif /* TMENV_H */ 0103 0104 /* vim: set ts=4 sw=4 et smartindent: */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |