From b6b80e61f49db3d5a4a796d95093c1b6784d3f3f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Dec 2022 21:41:32 +0100 Subject: refactor wirewatch to enable use of batch API --- src/include/taler_exchangedb_plugin.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index a14d31a3c..00f21da1f 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2573,8 +2573,8 @@ struct TALER_EXCHANGEDB_KycStatus struct TALER_EXCHANGEDB_ReserveInInfo { - struct TALER_ReservePublicKeyP reserve_pub; - struct TALER_Amount balance; + const struct TALER_ReservePublicKeyP *reserve_pub; + const struct TALER_Amount *balance; struct GNUNET_TIME_Timestamp execution_time; const char *sender_account_details; const char *exchange_account_name; @@ -3447,11 +3447,12 @@ struct TALER_EXCHANGEDB_Plugin * set to the status of the */ enum GNUNET_DB_QueryStatus - (*batch_reserves_in_insert)(void *cls, - const struct - TALER_EXCHANGEDB_ReserveInInfo *reserves, - unsigned int reserves_length, - enum GNUNET_DB_QueryStatus *results); + (*batch_reserves_in_insert)( + void *cls, + const struct TALER_EXCHANGEDB_ReserveInInfo *reserves, + unsigned int reserves_length, + enum GNUNET_DB_QueryStatus *results); + /** * Insert a batch of incoming transaction into reserves. New reserves are @@ -3464,11 +3465,12 @@ struct TALER_EXCHANGEDB_Plugin * set to the status of the */ enum GNUNET_DB_QueryStatus - (*batch2_reserves_in_insert)(void *cls, - const struct - TALER_EXCHANGEDB_ReserveInInfo *reserves, - unsigned int reserves_length, - enum GNUNET_DB_QueryStatus *results); + (*batch2_reserves_in_insert)( + void *cls, + const struct TALER_EXCHANGEDB_ReserveInInfo *reserves, + unsigned int reserves_length, + enum GNUNET_DB_QueryStatus *results); + /** * Locate a nonce for use with a particular public key. -- cgit v1.2.3