diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-27 02:32:07 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-27 02:32:07 +0100 |
commit | eee83a35971446034ac26b9272d9db9bbe7633ee (patch) | |
tree | 291844c713210da6f21c881f3b0e3011bf3ce0af /src/include/gnunet_sq_lib.h | |
parent | 8b3286e953a80cf069271957ec817485ebe5b14e (diff) | |
download | gnunet-eee83a35971446034ac26b9272d9db9bbe7633ee.tar.gz gnunet-eee83a35971446034ac26b9272d9db9bbe7633ee.zip |
first sketch for libgnuentsq test
Diffstat (limited to 'src/include/gnunet_sq_lib.h')
-rw-r--r-- | src/include/gnunet_sq_lib.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/include/gnunet_sq_lib.h b/src/include/gnunet_sq_lib.h index 1606d1129..4484c2851 100644 --- a/src/include/gnunet_sq_lib.h +++ b/src/include/gnunet_sq_lib.h | |||
@@ -186,7 +186,6 @@ GNUNET_SQ_query_param_uint64 (const uint64_t *x); | |||
186 | * | 186 | * |
187 | * @param cls closure | 187 | * @param cls closure |
188 | * @param result where to extract data from | 188 | * @param result where to extract data from |
189 | * @param row row to extract data from | ||
190 | * @param column column to extract data from | 189 | * @param column column to extract data from |
191 | * @param[in,out] dst_size where to store size of result, may be NULL | 190 | * @param[in,out] dst_size where to store size of result, may be NULL |
192 | * @param[out] dst where to store the result | 191 | * @param[out] dst where to store the result |
@@ -197,7 +196,6 @@ GNUNET_SQ_query_param_uint64 (const uint64_t *x); | |||
197 | typedef int | 196 | typedef int |
198 | (*GNUNET_SQ_ResultConverter)(void *cls, | 197 | (*GNUNET_SQ_ResultConverter)(void *cls, |
199 | sqlite3_stmt *result, | 198 | sqlite3_stmt *result, |
200 | int row, | ||
201 | unsigned int column, | 199 | unsigned int column, |
202 | size_t *dst_size, | 200 | size_t *dst_size, |
203 | void *dst); | 201 | void *dst); |
@@ -304,7 +302,7 @@ GNUNET_SQ_result_spec_fixed_size (void *dst, | |||
304 | * @param dst point to where to store the result, type fits expected result size | 302 | * @param dst point to where to store the result, type fits expected result size |
305 | * @return array entry for the result specification to use | 303 | * @return array entry for the result specification to use |
306 | */ | 304 | */ |
307 | #define GNUNET_SQ_result_spec_auto_from_type(dst) GNUNET_SQ_result_spec_fixed_size (name, (dst), sizeof (*(dst))) | 305 | #define GNUNET_SQ_result_spec_auto_from_type(dst) GNUNET_SQ_result_spec_fixed_size ((dst), sizeof (*(dst))) |
308 | 306 | ||
309 | 307 | ||
310 | /** | 308 | /** |
@@ -416,15 +414,13 @@ GNUNET_SQ_bind (sqlite3_stmt *stmt, | |||
416 | * | 414 | * |
417 | * @param result result to process | 415 | * @param result result to process |
418 | * @param[in,out] rs result specification to extract for | 416 | * @param[in,out] rs result specification to extract for |
419 | * @param row row from the result to extract | ||
420 | * @return | 417 | * @return |
421 | * #GNUNET_OK if all results could be extracted | 418 | * #GNUNET_OK if all results could be extracted |
422 | * #GNUNET_SYSERR if a result was invalid (non-existing field) | 419 | * #GNUNET_SYSERR if a result was invalid (non-existing field) |
423 | */ | 420 | */ |
424 | int | 421 | int |
425 | GNUNET_SQ_extract_result (sqlite3_stmt *result, | 422 | GNUNET_SQ_extract_result (sqlite3_stmt *result, |
426 | struct GNUNET_SQ_ResultSpec *rs, | 423 | struct GNUNET_SQ_ResultSpec *rs); |
427 | int row); | ||
428 | 424 | ||
429 | 425 | ||
430 | /** | 426 | /** |