diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-14 15:59:07 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-14 15:59:12 +0100 |
commit | 99779b455ce3bf9c53dd411575766bf298a3a5f3 (patch) | |
tree | 12cd49f097fdd1947580b08ec10ca961f8c250b9 /src/include/gnunet_sq_lib.h | |
parent | 8c702327dae9e504e0f6e1678884d9327321f44a (diff) | |
download | gnunet-99779b455ce3bf9c53dd411575766bf298a3a5f3.tar.gz gnunet-99779b455ce3bf9c53dd411575766bf298a3a5f3.zip |
introducing GNUNET_TIME_Timestamp
Diffstat (limited to 'src/include/gnunet_sq_lib.h')
-rw-r--r-- | src/include/gnunet_sq_lib.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/gnunet_sq_lib.h b/src/include/gnunet_sq_lib.h index 21ce5b393..e89ded07e 100644 --- a/src/include/gnunet_sq_lib.h +++ b/src/include/gnunet_sq_lib.h | |||
@@ -40,7 +40,7 @@ | |||
40 | * so immediately suitable for passing to `sqlite3_bind`-functions. | 40 | * so immediately suitable for passing to `sqlite3_bind`-functions. |
41 | * @return #GNUNET_SYSERR on error, #GNUNET_OK on success | 41 | * @return #GNUNET_SYSERR on error, #GNUNET_OK on success |
42 | */ | 42 | */ |
43 | typedef int | 43 | typedef enum GNUNET_GenericReturnValue |
44 | (*GNUNET_SQ_QueryConverter)(void *cls, | 44 | (*GNUNET_SQ_QueryConverter)(void *cls, |
45 | const void *data, | 45 | const void *data, |
46 | size_t data_len, | 46 | size_t data_len, |
@@ -156,8 +156,8 @@ GNUNET_SQ_query_param_absolute_time (const struct GNUNET_TIME_Absolute *x); | |||
156 | * @param x pointer to the query parameter to pass | 156 | * @param x pointer to the query parameter to pass |
157 | */ | 157 | */ |
158 | struct GNUNET_SQ_QueryParam | 158 | struct GNUNET_SQ_QueryParam |
159 | GNUNET_SQ_query_param_absolute_time_nbo (const struct | 159 | GNUNET_SQ_query_param_absolute_time_nbo ( |
160 | GNUNET_TIME_AbsoluteNBO *x); | 160 | const struct GNUNET_TIME_AbsoluteNBO *x); |
161 | 161 | ||
162 | 162 | ||
163 | /** | 163 | /** |
@@ -222,7 +222,7 @@ GNUNET_SQ_reset (sqlite3 *dbh, | |||
222 | * #GNUNET_YES if all results could be extracted | 222 | * #GNUNET_YES if all results could be extracted |
223 | * #GNUNET_SYSERR if a result was invalid (non-existing field or NULL) | 223 | * #GNUNET_SYSERR if a result was invalid (non-existing field or NULL) |
224 | */ | 224 | */ |
225 | typedef int | 225 | typedef enum GNUNET_GenericReturnValue |
226 | (*GNUNET_SQ_ResultConverter)(void *cls, | 226 | (*GNUNET_SQ_ResultConverter)(void *cls, |
227 | sqlite3_stmt *result, | 227 | sqlite3_stmt *result, |
228 | unsigned int column, | 228 | unsigned int column, |
@@ -436,7 +436,7 @@ GNUNET_SQ_result_spec_uint64 (uint64_t *u64); | |||
436 | * #GNUNET_OK if all results could be extracted | 436 | * #GNUNET_OK if all results could be extracted |
437 | * #GNUNET_SYSERR if a result was invalid (non-existing field) | 437 | * #GNUNET_SYSERR if a result was invalid (non-existing field) |
438 | */ | 438 | */ |
439 | int | 439 | enum GNUNET_GenericReturnValue |
440 | GNUNET_SQ_extract_result (sqlite3_stmt *result, | 440 | GNUNET_SQ_extract_result (sqlite3_stmt *result, |
441 | struct GNUNET_SQ_ResultSpec *rs); | 441 | struct GNUNET_SQ_ResultSpec *rs); |
442 | 442 | ||