aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-17 19:13:42 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-17 19:13:42 +0200
commit3695a510a18d0bb9ed58fb5270856a88853b4e30 (patch)
tree9aa9fe53d3b3f16a086a242b660504b793c3aa54 /src/include
parent6b89b84d2781a774adbadf272eb90785889b8407 (diff)
downloadgnunet-3695a510a18d0bb9ed58fb5270856a88853b4e30.tar.gz
gnunet-3695a510a18d0bb9ed58fb5270856a88853b4e30.zip
add relative_time specs
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_pq_lib.h22
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 */
160struct GNUNET_PQ_QueryParam
161GNUNET_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 */
396struct GNUNET_PQ_ResultSpec
397GNUNET_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