XTA: API Reference for C language

xta_xid.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_XID_H
20 # define XTA_XID_H
21 
22 
23 
24 /* LIXA includes */
25 #include <xa.h>
26 
27 
28 
32 typedef struct {
37 } xta_xid_t;
38 
39 
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* __cplusplus */
44 
45 
46 
61  xta_xid_t *xta_xid_new(const char *branch_qualifier,
62  int multiple_branches);
63 
64 
65 
73  const char *branch_qualifier);
74 
75 
76 
82  int xta_xid_branch_qualifier_set_multibranch(char *branch_qualifier);
83 
84 
85 
91  int xta_xid_branch_qualifier_unset_multibranch(char *branch_qualifier);
92 
93 
94 
102  xta_xid_t *xta_xid_new_from_string(const char *xid_string);
103 
104 
105 
114  xta_xid_t *xta_xid_new_from_XID(const XID *xid);
115 
116 
117 
124  xta_xid_t *xta_xid_dup(const xta_xid_t *xid);
125 
126 
127 
128 
133  void xta_xid_delete(xta_xid_t *xid);
134 
135 
136 
142  const XID *xta_xid_get_xa_xid(const xta_xid_t *xid);
143 
144 
145 
152  char *xta_xid_to_string(const xta_xid_t *xid);
153 
154 
155 
160  void xta_xid_reset(xta_xid_t *xid);
161 
162 
163 
167  long xta_xid_get_gtrid(const xta_xid_t *xid, char *gtrid);
171  long xta_xid_get_bqual(const xta_xid_t *xid, char *bqual);
175  long xta_xid_get_formatID(const xta_xid_t *xid);
176 
177 
178 
179 #ifdef __cplusplus
180 }
181 #endif /* __cplusplus */
182 
183 
184 
185 #endif /* XTA_XID_H */
const XID * xta_xid_get_xa_xid(const xta_xid_t *xid)
Definition: xta_xid.c:458
XID xa_xid
Definition: xta_xid.h:36
void xta_xid_reset(xta_xid_t *xid)
Definition: xta_xid.c:537
char * xta_xid_to_string(const xta_xid_t *xid)
Definition: xta_xid.c:491
int xta_xid_branch_qualifier_unset_multibranch(char *branch_qualifier)
Definition: xta_xid.c:219
long xta_xid_get_gtrid(const xta_xid_t *xid, char *gtrid)
Definition: xta_xid.c:563
int xta_xid_branch_qualifier_is_multibranch(const char *branch_qualifier)
Definition: xta_xid.c:110
long xta_xid_get_bqual(const xta_xid_t *xid, char *bqual)
Definition: xta_xid.c:569
xta_xid_t * xta_xid_new(const char *branch_qualifier, int multiple_branches)
Definition: xta_xid.c:47
Definition: xa.h:28
xta_xid_t * xta_xid_new_from_string(const char *xid_string)
Definition: xta_xid.c:291
xta_xid_t * xta_xid_dup(const xta_xid_t *xid)
Definition: xta_xid.c:385
xta_xid_t * xta_xid_new_from_XID(const XID *xid)
Definition: xta_xid.c:337
long xta_xid_get_formatID(const xta_xid_t *xid)
Definition: xta_xid.c:575
void xta_xid_delete(xta_xid_t *xid)
Definition: xta_xid.c:432
int xta_xid_branch_qualifier_set_multibranch(char *branch_qualifier)
Definition: xta_xid.c:138

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