XTA: API Reference for C language

xta_xa_resource_s Struct Reference

#include <xta_xa_resource.h>

Collaboration diagram for xta_xa_resource_s:

Data Fields

struct act_rsrmgr_config_s act_rsrmgr_config
 
int dynamic
 
const xta_transaction_tenlisted_tx
 
int native
 
struct rsrmgr_config_s rsrmgr_config
 

Detailed Description

The base "class" xta_xa_resource is just a redefinition of the standard xa_switch_t structure as defined by X/Open

Inheritance is emulated using the schema proposed by Martin in this post: http://stackoverflow.com/questions/1114349/struct-inheritance-in-c .
Using -fms-extensions the result would be better, but less portable.
Using -std=c11 the result does not improve because a "tag" (like a struct is not allowed as explained here: https://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html )

Definition at line 59 of file xta_xa_resource.h.

Field Documentation

struct act_rsrmgr_config_s xta_xa_resource_s::act_rsrmgr_config
int xta_xa_resource_s::dynamic

The object refers to an XA Resource that has been created dynamically: it has not been loaded statically at startup (it's not described inside lixac.conf file)

Definition at line 75 of file xta_xa_resource.h.

Referenced by xta_native_xa_resource_clean(), xta_native_xa_resource_init(), xta_xa_resource_init(), and xta_xa_resource_is_dynamic().

const xta_transaction_t* xta_xa_resource_s::enlisted_tx

The reference to the Transaction that enlisted this resource or NULL

Definition at line 85 of file xta_xa_resource.h.

Referenced by xta_xa_resource_enlisted(), and xta_xa_resource_init().

int xta_xa_resource_s::native

TRUE if the XA Resource Manager has a native XA interface
FALSE if the XA Resource Manager is acquired through XTA interface

Definition at line 80 of file xta_xa_resource.h.

Referenced by xta_xa_resource_is_native().

struct rsrmgr_config_s xta_xa_resource_s::rsrmgr_config

Partial description of the XA Resource Manager using legacy LIXA data structures

Definition at line 64 of file xta_xa_resource.h.

Referenced by xta_acquired_xa_resource_clean(), xta_acquired_xa_resource_init(), xta_native_xa_resource_clean(), xta_native_xa_resource_init(), and xta_xa_resource_init().


The documentation for this struct was generated from the following file:

Copyright © 2009-2019, Christian Ferrari tiian@users.sourceforge.net http://www.tiian.org/