aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-11-28 18:03:38 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2023-11-28 18:03:38 +0100
commit245e8ed2c2280341151ba08e24edbc52c496914e (patch)
treec720802083d9b85637809a4d69dc4ec1ebcb9ba6
parent0dae80220bc3875d4bbd6cd30a5053876526daea (diff)
downloadexchange-245e8ed2c2280341151ba08e24edbc52c496914e.tar.xz
[pq] add support for array of struct GNUNET_HashCode
-rw-r--r--src/include/taler_pq_lib.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/taler_pq_lib.h b/src/include/taler_pq_lib.h
index 86d458e05..d9c23e35d 100644
--- a/src/include/taler_pq_lib.h
+++ b/src/include/taler_pq_lib.h
@@ -163,6 +163,19 @@ TALER_PQ_query_param_array_blinded_coin_hash (
struct GNUNET_PQ_Context *db);
/**
+ * Generate query parameter for an array of GNUNET_HashCode
+ *
+ * @param num number of elements in @e hash_codes
+ * @param hashes array of GNUNET_HashCode
+ * @param db context for the db-connection
+ */
+struct GNUNET_PQ_QueryParam
+TALER_PQ_query_param_array_hash_code (
+ size_t num,
+ const struct GNUNET_HashCode *hashes,
+ struct GNUNET_PQ_Context *db);
+
+/**
* Generate query parameter for an array of mounts
*
* @param num of elements in @e amounts
@@ -331,6 +344,22 @@ TALER_PQ_result_spec_array_denom_hash (
struct TALER_DenominationHashP **denom_hs);
/**
+ * Array of GNUNET_HashCode
+ *
+ * @param db context of the database connection
+ * @param name name of the field in the table
+ * @param[out] num number of elements in @e denom_sigs
+ * @param[out] hashes where to store the result
+ * @return array entry for the result specification to use
+ */
+struct GNUNET_PQ_ResultSpec
+TALER_PQ_result_spec_array_hash_code (
+ struct GNUNET_PQ_Context *db,
+ const char *name,
+ size_t *num,
+ struct GNUNET_HashCode **hashes);
+
+/**
* Array of amounts
*
* @param db context of the database connection