gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: [pq] add support for array of st


From: gnunet
Subject: [taler-exchange] branch master updated: [pq] add support for array of struct GNUNET_HashCode
Date: Tue, 28 Nov 2023 18:03:42 +0100

This is an automated email from the git hooks/post-receive script.

oec pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 245e8ed2 [pq] add support for array of struct GNUNET_HashCode
245e8ed2 is described below

commit 245e8ed2c2280341151ba08e24edbc52c496914e
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Tue Nov 28 18:03:38 2023 +0100

    [pq] add support for array of struct GNUNET_HashCode
---
 src/include/taler_pq_lib.h | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/src/include/taler_pq_lib.h b/src/include/taler_pq_lib.h
index 86d458e0..d9c23e35 100644
--- a/src/include/taler_pq_lib.h
+++ b/src/include/taler_pq_lib.h
@@ -162,6 +162,19 @@ TALER_PQ_query_param_array_blinded_coin_hash (
   const struct TALER_BlindedCoinHashP *coin_evs,
   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
  *
@@ -330,6 +343,22 @@ TALER_PQ_result_spec_array_denom_hash (
   size_t *num,
   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
  *

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]