Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_xctx_impl_declares.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Interface afw_interface Implementation Declares
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
10 
12 
74 #ifdef __AFW_XCTX_IMPL_DECLARES_H__
75 #ifndef AFW_XCTX_INF_ONLY
76 #error "afw_xctx_impl_declares.h already included."
77 #endif
78 #endif
79 #ifndef __AFW_XCTX_IMPL_DECLARES_H__
80 #ifdef AFW_XCTX_INF_ONLY
81 #error "afw_xctx_impl_declares.h must be included before AFW_XCTX_INF_ONLY."
82 #endif
83 #define __AFW_XCTX_IMPL_DECLARES_H__ 1
84 #endif
85 
86 #ifdef AFW_IMPLEMENTATION_ID
87 #define _AFW_IMPLEMENTATION_ID_ AFW_IMPLEMENTATION_ID
88 #else
89 #define _AFW_IMPLEMENTATION_ID_ "unspecified"
90 #endif
91 #ifdef AFW_IMPLEMENTATION_SPECIFIC
92 #define _AFW_IMPLEMENTATION_SPECIFIC_ AFW_IMPLEMENTATION_SPECIFIC
93 #else
94 #define _AFW_IMPLEMENTATION_SPECIFIC_ NULL
95 #endif
96 #ifndef AFW_XCTX_INF_ONLY
97 
98 #ifndef impl_afw_xctx_release
99 /* Declare method release */
100 AFW_DECLARE_STATIC(void)
101 impl_afw_xctx_release(
102  afw_xctx_t * instance,
103  afw_xctx_t * xctx);
104 #endif
105 #endif
106 
107 /* inf for interface afw_xctx */
108 #ifdef __BASE_FILE__
109 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __BASE_FILE__
110 #else
111 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __FILE__
112 #endif
113 #ifdef AFW_IMPLEMENTATION_INF_SPECIFIER
114 AFW_IMPLEMENTATION_INF_SPECIFIER(afw_xctx_inf_t)
115 #else
116 static const afw_xctx_inf_t
117 #endif
118 #ifdef AFW_IMPLEMENTATION_INF_LABEL
119 AFW_IMPLEMENTATION_INF_LABEL = {
120 #else
121 impl_afw_xctx_inf = {
122 #endif
123  {
124  AFW_UTF8_LITERAL("afw_xctx"),
125  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_SOURCE_FILE_),
126  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_ID_),
127  _AFW_IMPLEMENTATION_SPECIFIC_
128  },
129  impl_afw_xctx_release
130 };
131 
132 #undef _AFW_IMPLEMENTATION_ID_
133 #undef _AFW_IMPLEMENTATION_SPECIFIC_
134 #undef _AFW_IMPLEMENTATION_SOURCE_FILE_
135 
#define AFW_BEGIN_DECLARES
Interface afw_interface opaque typedefs.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
Interface afw_xctx_inf_s struct.
Interface afw_xctx public struct.