XTA: API Reference for C language
Main Page
Related Pages
Data Structures
Files
File List
Globals
xta_acquired_xa_resource.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_ACQUIRED_XA_RESOURCE_H
20
# define XTA_ACQUIRED_XA_RESOURCE_H
21
22
23
24
/* XTA includes */
25
#include "
xta_xa_resource.h
"
26
#include "
xta_iface.h
"
27
/* XA include */
28
#include "
xa.h
"
29
30
31
35
typedef
struct
{
36
union
{
37
xta_xa_resource_t
xa_resource
;
38
};
42
const
struct
xta_iface_s
*
iface
;
43
}
xta_acquired_xa_resource_t
;
44
45
46
47
#ifdef __cplusplus
48
extern
"C"
{
49
#endif
/* __cplusplus */
50
51
52
64
int
xta_acquired_xa_resource_init
(
xta_acquired_xa_resource_t
*xa_resource,
65
const
struct
xta_iface_s
*iface,
66
const
char
*
name
,
67
const
char
*open_info);
68
69
70
77
void
xta_acquired_xa_resource_clean
(
78
xta_acquired_xa_resource_t
*xa_resource);
79
80
81
82
#ifdef __cplusplus
83
}
84
#endif
/* __cplusplus */
85
86
87
88
#endif
/* XTA_RESOURCE_H */
xta_acquired_xa_resource_t
Definition:
xta_acquired_xa_resource.h:35
xta_iface_s
Definition:
xta_iface.h:34
xta_xa_resource.h
xta_acquired_xa_resource_t::iface
const struct xta_iface_s * iface
Definition:
xta_acquired_xa_resource.h:42
xta_acquired_xa_resource_t::xa_resource
xta_xa_resource_t xa_resource
Definition:
xta_acquired_xa_resource.h:37
xa.h
xta_xa_resource_s
Definition:
xta_xa_resource.h:59
xta_acquired_xa_resource_clean
void xta_acquired_xa_resource_clean(xta_acquired_xa_resource_t *xa_resource)
Definition:
xta_acquired_xa_resource.c:140
xta_iface.h
xta_iface_s::name
char name[RMNAMESZ]
Definition:
xta_iface.h:38
xta_acquired_xa_resource_init
int xta_acquired_xa_resource_init(xta_acquired_xa_resource_t *xa_resource, const struct xta_iface_s *iface, const char *name, const char *open_info)
Definition:
xta_acquired_xa_resource.c:48
Copyright © 2009-2019, Christian Ferrari
tiian@users.sourceforge.net
http://www.tiian.org/