Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_lmdb_function_bindings.c
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework Core Adaptive Function Bindings
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 /* ----------------------------- N O T E -------------------------------------
10  *
11  * This file is generated by "afwdev generate afw_lmdb".
12  *
13  * Do not change this file directly or the changes will be lost the next time
14  * this file is regenerated.
15  *
16  * -------------------------------------------------------------------------*/
17 
18 
19 
25 #include "afw.h"
28 #include "afw_lmdb_strings.h"
29 
30 
31 /* ---------- reader_check ---------- */
32 
34 impl_reader_check;
35 
36 static const afw_utf8_t
37 impl_object_path__reader_check =
38  AFW_UTF8_LITERAL("/afw/_AdaptiveFunction_/reader_check");
39 
41 impl_object__reader_check = {
42  {
43  NULL,
44  NULL,
45  {
46  NULL,
47  NULL,
48  &afw_lmdb_s_reader_check,
49  &afw_lmdb_s__AdaptiveFunction_,
50  &impl_object_path__reader_check
51  }
52  },
53  (void *)&impl_reader_check
54 };
55 
57 impl_reader_check_returns = {
58  {
59  NULL,
60  NULL,
61  {
62  NULL,
63  NULL,
64  NULL,
65  &afw_lmdb_s__AdaptiveFunctionParameter_,
66  NULL,
67  }
68  },
69  NULL,
70  AFW_UTF8_LITERAL("integer"),
71  AFW_UTF8_LITERAL(""),
72  AFW_UTF8_LITERAL(""),
73  AFW_UTF8_LITERAL(""),
74  AFW_UTF8_LITERAL("Number of stale slots that were cleared."),
75  -1,
76  false,
77  false,
78  false,
79  false,
80 };
81 
83 impl_reader_check_parameter_1 = {
84  {
85  NULL,
86  NULL,
87  {
88  NULL,
89  NULL,
90  NULL,
91  &afw_lmdb_s__AdaptiveFunctionParameter_,
92  NULL,
93  }
94  },
95  NULL,
96  AFW_UTF8_LITERAL("string"),
97  AFW_UTF8_LITERAL(""),
98  AFW_UTF8_LITERAL("adaptorId"),
99  AFW_UTF8_LITERAL(""),
100  AFW_UTF8_LITERAL("Adaptor Id."),
101  -1,
102  false,
103  false,
104  false,
105  false,
106 };
107 
108 static const afw_value_function_parameter_t *
109 impl_reader_check_parameters[] = {
110  &impl_reader_check_parameter_1,
111  NULL
112 };
113 
115 impl_reader_check = {
116  NULL,
117  (const afw_object_t *)&impl_object__reader_check,
118  AFW_UTF8_LITERAL("lmdb"),
119  AFW_UTF8_LITERAL("reader_check"),
120  AFW_UTF8_LITERAL("reader_check"),
121  AFW_UTF8_LITERAL("reader_check"),
122  AFW_UTF8_LITERAL("readerCheck"),
123  AFW_UTF8_LITERAL("afwReaderCheck"),
124  AFW_UTF8_LITERAL(""),
125  AFW_UTF8_LITERAL("Check for stale entries in the reader lock table."),
126  AFW_UTF8_LITERAL("(adaptorId: string): integer"),
127  AFW_UTF8_LITERAL("function reader_check (\n adaptorId: string\n): integer;\n"),
128  AFW_UTF8_LITERAL(""),
130  NULL,
131  1,
132  1,
133  &impl_reader_check_parameters[0],
134  1,
135  &impl_reader_check_returns,
136  NULL,
137  NULL,
138  AFW_UTF8_LITERAL(""),
139  NULL,
140  NULL,
141  0, /* Not a data type method. */
142  0,
143  false,
144  false,
145  false,
146  false,
147  false
148 };
149 
150 /* ---------- reader_list ---------- */
151 
153 impl_reader_list;
154 
155 static const afw_utf8_t
156 impl_object_path__reader_list =
157  AFW_UTF8_LITERAL("/afw/_AdaptiveFunction_/reader_list");
158 
160 impl_object__reader_list = {
161  {
162  NULL,
163  NULL,
164  {
165  NULL,
166  NULL,
167  &afw_lmdb_s_reader_list,
168  &afw_lmdb_s__AdaptiveFunction_,
169  &impl_object_path__reader_list
170  }
171  },
172  (void *)&impl_reader_list
173 };
174 
176 impl_reader_list_returns = {
177  {
178  NULL,
179  NULL,
180  {
181  NULL,
182  NULL,
183  NULL,
184  &afw_lmdb_s__AdaptiveFunctionParameter_,
185  NULL,
186  }
187  },
188  NULL,
189  AFW_UTF8_LITERAL("string"),
190  AFW_UTF8_LITERAL(""),
191  AFW_UTF8_LITERAL(""),
192  AFW_UTF8_LITERAL(""),
193  AFW_UTF8_LITERAL("Reader entries."),
194  -1,
195  false,
196  false,
197  false,
198  false,
199 };
200 
202 impl_reader_list_parameter_1 = {
203  {
204  NULL,
205  NULL,
206  {
207  NULL,
208  NULL,
209  NULL,
210  &afw_lmdb_s__AdaptiveFunctionParameter_,
211  NULL,
212  }
213  },
214  NULL,
215  AFW_UTF8_LITERAL("string"),
216  AFW_UTF8_LITERAL(""),
217  AFW_UTF8_LITERAL("adaptorId"),
218  AFW_UTF8_LITERAL(""),
219  AFW_UTF8_LITERAL("Adaptor Id."),
220  -1,
221  false,
222  false,
223  false,
224  false,
225 };
226 
227 static const afw_value_function_parameter_t *
228 impl_reader_list_parameters[] = {
229  &impl_reader_list_parameter_1,
230  NULL
231 };
232 
234 impl_reader_list = {
235  NULL,
236  (const afw_object_t *)&impl_object__reader_list,
237  AFW_UTF8_LITERAL("lmdb"),
238  AFW_UTF8_LITERAL("reader_list"),
239  AFW_UTF8_LITERAL("reader_list"),
240  AFW_UTF8_LITERAL("reader_list"),
241  AFW_UTF8_LITERAL("readerList"),
242  AFW_UTF8_LITERAL("afwReaderList"),
243  AFW_UTF8_LITERAL(""),
244  AFW_UTF8_LITERAL("Dump the entries in the reader lock table."),
245  AFW_UTF8_LITERAL("(adaptorId: string): string"),
246  AFW_UTF8_LITERAL("function reader_list (\n adaptorId: string\n): string;\n"),
247  AFW_UTF8_LITERAL(""),
249  NULL,
250  1,
251  1,
252  &impl_reader_list_parameters[0],
253  1,
254  &impl_reader_list_returns,
255  NULL,
256  NULL,
257  AFW_UTF8_LITERAL(""),
258  NULL,
259  NULL,
260  0, /* Not a data type method. */
261  0,
262  false,
263  false,
264  false,
265  false,
266  false
267 };
268 
269 static const afw_value_function_definition_t *
270 impl_function_bindings[] = {
271  &impl_reader_check,
272  &impl_reader_list,
273  NULL
274 };
275 
276 /* Get array of pointers to afw_lmdb_function bindings. */
279 {
280  return &impl_function_bindings[0];
281 }
Adaptive Framework Core API.
#define AFW_LMDB_DEFINE(type)
Define a public afw_lmdb function.
Adaptive Framework core adaptive function bindings header.
Adaptive Framework runtime object mapping header.
Adaptive Framework (afw_lmdb_) strings header.
afw_lmdb_function_bindings_get()
Get array of pointers to afw_lmdb_function bindings.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
const afw_value_t * afw_lmdb_function_execute_reader_list(afw_function_execute_t *x)
Adaptive Function reader_list
const afw_value_t * afw_lmdb_function_execute_reader_check(afw_function_execute_t *x)
Adaptive Function reader_check
Interface afw_object public struct.
Struct for runtime objects.
Definition: afw_runtime.h:174
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Struct for function value.
Definition: afw_value.h:102
Struct for adaptive function parameter.
Definition: afw_value.h:68