XTA: API Reference for C language

xta_iface.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009-2019, Christian Ferrari <tiian@users.sourceforge.net>
3  * All rights reserved.
4  *
5  * This file is part of LIXA.
6  *
7  * LIXA is free software: you can redistribute this file and/or modify
8  * it under the terms of the GNU Lesser General Public License version 2.1 as
9  * published by the Free Software Foundation.
10  *
11  * LIXA is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with LIXA. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef XTA_IFACE_H
20 # define XTA_IFACE_H
21 
22 
23 
28 
29 
30 
34 struct xta_iface_s {
38  char name[RMNAMESZ];
42  long flags;
46  long version;
50  int (*xa_open_entry)(xta_xa_resource_t *,char *, int, long);
54  int (*xa_close_entry)(xta_xa_resource_t *,char *, int, long);
58  int (*xa_start_entry)(xta_xa_resource_t *, const XID *, int, long);
62  int (*xa_end_entry)(xta_xa_resource_t *, const XID *, int, long);
66  int (*xa_rollback_entry)(xta_xa_resource_t *, const XID *, int, long);
70  int (*xa_prepare_entry)(xta_xa_resource_t *, const XID *, int, long);
74  int (*xa_commit_entry)(xta_xa_resource_t *, const XID *, int, long);
78  int (*xa_recover_entry)(xta_xa_resource_t *, XID *xids, long, int, long);
82  int (*xa_forget_entry)(xta_xa_resource_t *, const XID *, int, long);
83 };
84 
85 
86 
87 #endif /* XTA_IFACE_H */
int(* xa_prepare_entry)(xta_xa_resource_t *, const XID *, int, long)
Definition: xta_iface.h:70
long version
Definition: xta_iface.h:46
int(* xa_recover_entry)(xta_xa_resource_t *, XID *xids, long, int, long)
Definition: xta_iface.h:78
int(* xa_close_entry)(xta_xa_resource_t *, char *, int, long)
Definition: xta_iface.h:54
int(* xa_rollback_entry)(xta_xa_resource_t *, const XID *, int, long)
Definition: xta_iface.h:66
Definition: xa.h:28
long flags
Definition: xta_iface.h:42
int(* xa_start_entry)(xta_xa_resource_t *, const XID *, int, long)
Definition: xta_iface.h:58
int(* xa_open_entry)(xta_xa_resource_t *, char *, int, long)
Definition: xta_iface.h:50
int(* xa_forget_entry)(xta_xa_resource_t *, const XID *, int, long)
Definition: xta_iface.h:82
char name[RMNAMESZ]
Definition: xta_iface.h:38
#define RMNAMESZ
Definition: xa.h:63
int(* xa_end_entry)(xta_xa_resource_t *, const XID *, int, long)
Definition: xta_iface.h:62
int(* xa_commit_entry)(xta_xa_resource_t *, const XID *, int, long)
Definition: xta_iface.h:74

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