Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_variable_handler_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 
75 #ifdef __AFW_VARIABLE_HANDLER_IMPL_DECLARES_H__
76 #ifndef AFW_VARIABLE_HANDLER_INF_ONLY
77 #error "afw_variable_handler_impl_declares.h already included."
78 #endif
79 #endif
80 #ifndef __AFW_VARIABLE_HANDLER_IMPL_DECLARES_H__
81 #ifdef AFW_VARIABLE_HANDLER_INF_ONLY
82 #error "afw_variable_handler_impl_declares.h must be included before AFW_VARIABLE_HANDLER_INF_ONLY."
83 #endif
84 #define __AFW_VARIABLE_HANDLER_IMPL_DECLARES_H__ 1
85 #endif
86 
87 #ifdef AFW_IMPLEMENTATION_ID
88 #define _AFW_IMPLEMENTATION_ID_ AFW_IMPLEMENTATION_ID
89 #else
90 #define _AFW_IMPLEMENTATION_ID_ "unspecified"
91 #endif
92 #ifdef AFW_IMPLEMENTATION_SPECIFIC
93 #define _AFW_IMPLEMENTATION_SPECIFIC_ AFW_IMPLEMENTATION_SPECIFIC
94 #else
95 #define _AFW_IMPLEMENTATION_SPECIFIC_ NULL
96 #endif
97 #ifndef AFW_VARIABLE_HANDLER_INF_ONLY
98 
99 #ifndef impl_afw_variable_handler_get_variable
100 /* Declare method get_variable */
101 AFW_DECLARE_STATIC(const afw_value_t *)
102 impl_afw_variable_handler_get_variable(
103  const afw_variable_handler_t * instance,
104  const afw_utf8_t * qualifier,
105  const afw_utf8_t * name,
106  afw_xctx_t * xctx);
107 #endif
108 
109 #ifndef impl_afw_variable_handler_set_variable
110 /* Declare method set_variable */
111 AFW_DECLARE_STATIC(afw_boolean_t)
112 impl_afw_variable_handler_set_variable(
113  const afw_variable_handler_t * instance,
114  const afw_utf8_t * qualifier,
115  const afw_utf8_t * name,
116  const afw_value_t * value,
117  afw_xctx_t * xctx);
118 #endif
119 #endif
120 
121 /* inf for interface afw_variable_handler */
122 #ifdef __BASE_FILE__
123 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __BASE_FILE__
124 #else
125 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __FILE__
126 #endif
127 #ifdef AFW_IMPLEMENTATION_INF_SPECIFIER
128 AFW_IMPLEMENTATION_INF_SPECIFIER(afw_variable_handler_inf_t)
129 #else
130 static const afw_variable_handler_inf_t
131 #endif
132 #ifdef AFW_IMPLEMENTATION_INF_LABEL
133 AFW_IMPLEMENTATION_INF_LABEL = {
134 #else
135 impl_afw_variable_handler_inf = {
136 #endif
137  {
138  AFW_UTF8_LITERAL("afw_variable_handler"),
139  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_SOURCE_FILE_),
140  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_ID_),
141  _AFW_IMPLEMENTATION_SPECIFIC_
142  },
143  impl_afw_variable_handler_get_variable,
144  impl_afw_variable_handler_set_variable
145 };
146 
147 #undef _AFW_IMPLEMENTATION_ID_
148 #undef _AFW_IMPLEMENTATION_SPECIFIC_
149 #undef _AFW_IMPLEMENTATION_SOURCE_FILE_
150 
#define AFW_BEGIN_DECLARES
Interface afw_interface opaque typedefs.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
_Bool afw_boolean_t
Definition: afw_common.h:373
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_value public struct.
Interface afw_variable_handler_inf_s struct.
Interface afw_variable_handler public struct.
Interface afw_xctx public struct.