diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-16 13:57:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-16 13:57:32 +0100 |
commit | e97190eb74ebb4abc0f5958ba99f838f4766b1cf (patch) | |
tree | 3b2b4d8dd30bcd28d09f42cfea1681b55edea967 /src/include | |
parent | f2b264a16c3c9a4199876740a210496e63b0bea4 (diff) | |
download | gnunet-e97190eb74ebb4abc0f5958ba99f838f4766b1cf.tar.gz gnunet-e97190eb74ebb4abc0f5958ba99f838f4766b1cf.zip |
add versioning.sql
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_pq_lib.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index d52c0e40d..4ea286b9f 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h | |||
@@ -147,6 +147,39 @@ GNUNET_PQ_query_param_bool (bool b); | |||
147 | 147 | ||
148 | 148 | ||
149 | /** | 149 | /** |
150 | * Information for an array argument. | ||
151 | */ | ||
152 | struct GNUNET_PQ_ArraySpec | ||
153 | { | ||
154 | /** | ||
155 | * Number of dimensions of the array | ||
156 | */ | ||
157 | unsigned int ndims; | ||
158 | |||
159 | /** | ||
160 | * Array of @e ndims lengths of the array | ||
161 | */ | ||
162 | unsigned int *lens; | ||
163 | |||
164 | /** | ||
165 | * One-dimensional array of pointers to conversion functions for the | ||
166 | * elements in the array. | ||
167 | */ | ||
168 | const struct GNUNET_PQ_QueryParam *ae; | ||
169 | |||
170 | }; | ||
171 | |||
172 | |||
173 | /** | ||
174 | * Generate query parameter for an array. | ||
175 | * | ||
176 | * @param as array specification | ||
177 | */ | ||
178 | struct GNUNET_PQ_QueryParam | ||
179 | GNUNET_PQ_query_param_array (const struct GNUNET_PQ_ArraySpec *as); | ||
180 | |||
181 | |||
182 | /** | ||
150 | * Generate fixed-size query parameter with size determined | 183 | * Generate fixed-size query parameter with size determined |
151 | * by variable type. | 184 | * by variable type. |
152 | * | 185 | * |