summaryrefslogtreecommitdiff
path: root/src/include/taler_pq_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-12 21:29:17 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-12 21:29:17 +0200
commit5c01da52b1309607311b0b2e608e5de3a77b7ffe (patch)
tree3708026c7d4671eaf1feb05592f0b3564c068010 /src/include/taler_pq_lib.h
parentb1e0dd8b7ec7af8e478d67ef49c60bd2d0774864 (diff)
downloadexchange-5c01da52b1309607311b0b2e608e5de3a77b7ffe.tar.gz
exchange-5c01da52b1309607311b0b2e608e5de3a77b7ffe.tar.bz2
exchange-5c01da52b1309607311b0b2e608e5de3a77b7ffe.zip
introduce pq functions form abs time in NBO
Diffstat (limited to 'src/include/taler_pq_lib.h')
-rw-r--r--src/include/taler_pq_lib.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/taler_pq_lib.h b/src/include/taler_pq_lib.h
index 9159cc0f7..2fe66c52f 100644
--- a/src/include/taler_pq_lib.h
+++ b/src/include/taler_pq_lib.h
@@ -202,6 +202,16 @@ TALER_PQ_query_param_absolute_time(const struct GNUNET_TIME_Absolute *x);
/**
+ * Generate query parameter for an absolute time value.
+ * The database must store a 64-bit integer.
+ *
+ * @param x pointer to the query parameter to pass
+ */
+struct TALER_PQ_QueryParam
+TALER_PQ_query_param_absolute_time_nbo(const struct GNUNET_TIME_AbsoluteNBO *x);
+
+
+/**
* Generate query parameter for an uint16_t in host byte order.
*
* @param x pointer to the query parameter to pass
@@ -453,6 +463,18 @@ TALER_PQ_result_spec_absolute_time (const char *name,
/**
+ * Absolute time expected.
+ *
+ * @param name name of the field in the table
+ * @param[out] at where to store the result
+ * @return array entry for the result specification to use
+ */
+struct TALER_PQ_ResultSpec
+TALER_PQ_result_spec_absolute_time_nbo (const char *name,
+ struct GNUNET_TIME_AbsoluteNBO *at);
+
+
+/**
* uint16_t expected.
*
* @param name name of the field in the table