diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-17 19:13:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-17 19:13:42 +0200 |
commit | 3695a510a18d0bb9ed58fb5270856a88853b4e30 (patch) | |
tree | 9aa9fe53d3b3f16a086a242b660504b793c3aa54 /src/include | |
parent | 6b89b84d2781a774adbadf272eb90785889b8407 (diff) | |
download | gnunet-3695a510a18d0bb9ed58fb5270856a88853b4e30.tar.gz gnunet-3695a510a18d0bb9ed58fb5270856a88853b4e30.zip |
add relative_time specs
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_pq_lib.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index 12ec19d7e..ca549f77c 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h | |||
@@ -152,6 +152,16 @@ GNUNET_PQ_query_param_rsa_signature ( | |||
152 | 152 | ||
153 | 153 | ||
154 | /** | 154 | /** |
155 | * Generate query parameter for a relative time value. | ||
156 | * The database must store a 64-bit integer. | ||
157 | * | ||
158 | * @param x pointer to the query parameter to pass | ||
159 | */ | ||
160 | struct GNUNET_PQ_QueryParam | ||
161 | GNUNET_PQ_query_param_relative_time (const struct GNUNET_TIME_Relative *x); | ||
162 | |||
163 | |||
164 | /** | ||
155 | * Generate query parameter for an absolute time value. | 165 | * Generate query parameter for an absolute time value. |
156 | * The database must store a 64-bit integer. | 166 | * The database must store a 64-bit integer. |
157 | * | 167 | * |
@@ -377,6 +387,18 @@ GNUNET_PQ_result_spec_absolute_time (const char *name, | |||
377 | 387 | ||
378 | 388 | ||
379 | /** | 389 | /** |
390 | * Relative time expected. | ||
391 | * | ||
392 | * @param name name of the field in the table | ||
393 | * @param[out] rt where to store the result | ||
394 | * @return array entry for the result specification to use | ||
395 | */ | ||
396 | struct GNUNET_PQ_ResultSpec | ||
397 | GNUNET_PQ_result_spec_relative_time (const char *name, | ||
398 | struct GNUNET_TIME_Relative *rt); | ||
399 | |||
400 | |||
401 | /** | ||
380 | * Absolute time expected. | 402 | * Absolute time expected. |
381 | * | 403 | * |
382 | * @param name name of the field in the table | 404 | * @param name name of the field in the table |