Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_adaptor_key_value_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_ADAPTOR_KEY_VALUE_IMPL_DECLARES_H__
76 #ifndef AFW_ADAPTOR_KEY_VALUE_INF_ONLY
77 #error "afw_adaptor_key_value_impl_declares.h already included."
78 #endif
79 #endif
80 #ifndef __AFW_ADAPTOR_KEY_VALUE_IMPL_DECLARES_H__
81 #ifdef AFW_ADAPTOR_KEY_VALUE_INF_ONLY
82 #error "afw_adaptor_key_value_impl_declares.h must be included before AFW_ADAPTOR_KEY_VALUE_INF_ONLY."
83 #endif
84 #define __AFW_ADAPTOR_KEY_VALUE_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_ADAPTOR_KEY_VALUE_INF_ONLY
98 
99 #ifndef impl_afw_adaptor_key_value_add
100 /* Declare method add */
101 AFW_DECLARE_STATIC(void)
103  const afw_adaptor_key_value_t * instance,
104  const afw_utf8_t * namespace,
105  const afw_memory_t * key,
106  const afw_memory_t * value,
107  afw_xctx_t * xctx);
108 #endif
109 
110 #ifndef impl_afw_adaptor_key_value_delete
111 /* Declare method delete */
112 AFW_DECLARE_STATIC(void)
113 impl_afw_adaptor_key_value_delete(
114  const afw_adaptor_key_value_t * instance,
115  const afw_utf8_t * namespace,
116  const afw_memory_t * key,
117  const afw_memory_t * value,
118  afw_boolean_t must_exist,
119  afw_xctx_t * xctx);
120 #endif
121 
122 #ifndef impl_afw_adaptor_key_value_replace
123 /* Declare method replace */
124 AFW_DECLARE_STATIC(void)
125 impl_afw_adaptor_key_value_replace(
126  const afw_adaptor_key_value_t * instance,
127  const afw_utf8_t * namespace,
128  const afw_memory_t * key,
129  const afw_memory_t * value,
130  afw_boolean_t must_exist,
131  afw_xctx_t * xctx);
132 #endif
133 
134 #ifndef impl_afw_adaptor_key_value_get
135 /* Declare method get */
136 AFW_DECLARE_STATIC(const afw_memory_t *)
138  const afw_adaptor_key_value_t * instance,
139  const afw_utf8_t * namespace,
140  const afw_memory_t * key,
141  afw_xctx_t * xctx);
142 #endif
143 #endif
144 
145 /* inf for interface afw_adaptor_key_value */
146 #ifdef __BASE_FILE__
147 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __BASE_FILE__
148 #else
149 #define _AFW_IMPLEMENTATION_SOURCE_FILE_ __FILE__
150 #endif
151 #ifdef AFW_IMPLEMENTATION_INF_SPECIFIER
152 AFW_IMPLEMENTATION_INF_SPECIFIER(afw_adaptor_key_value_inf_t)
153 #else
154 static const afw_adaptor_key_value_inf_t
155 #endif
156 #ifdef AFW_IMPLEMENTATION_INF_LABEL
157 AFW_IMPLEMENTATION_INF_LABEL = {
158 #else
159 impl_afw_adaptor_key_value_inf = {
160 #endif
161  {
162  AFW_UTF8_LITERAL("afw_adaptor_key_value"),
163  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_SOURCE_FILE_),
164  AFW_UTF8_LITERAL(_AFW_IMPLEMENTATION_ID_),
165  _AFW_IMPLEMENTATION_SPECIFIC_
166  },
168  impl_afw_adaptor_key_value_delete,
169  impl_afw_adaptor_key_value_replace,
171 };
172 
173 #undef _AFW_IMPLEMENTATION_ID_
174 #undef _AFW_IMPLEMENTATION_SPECIFIC_
175 #undef _AFW_IMPLEMENTATION_SOURCE_FILE_
176 
#define AFW_BEGIN_DECLARES
Interface afw_interface opaque typedefs.
impl_afw_adaptor_key_value_get(const afw_adaptor_key_value_t *instance, const afw_utf8_t *namespace, const afw_memory_t *key, afw_xctx_t *xctx)
impl_afw_adaptor_key_value_add(const afw_adaptor_key_value_t *instance, const afw_utf8_t *namespace, const afw_memory_t *key, const afw_memory_t *value, afw_xctx_t *xctx)
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
_Bool afw_boolean_t
Definition: afw_common.h:373
Interface afw_adaptor_key_value_inf_s struct.
Interface afw_adaptor_key_value public struct.
Struct for memory pointer and size.
Definition: afw_common.h:505
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.