summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-12-19 21:41:32 +0100
committerChristian Grothoff <christian@grothoff.org>2022-12-19 21:41:32 +0100
commitb6b80e61f49db3d5a4a796d95093c1b6784d3f3f (patch)
treea06335764bc3ed9edc42236b62c29fcda18b50c8 /src/include
parent709ca561d27d801f405b49d886e9db24b073a785 (diff)
downloadexchange-b6b80e61f49db3d5a4a796d95093c1b6784d3f3f.tar.gz
exchange-b6b80e61f49db3d5a4a796d95093c1b6784d3f3f.tar.bz2
exchange-b6b80e61f49db3d5a4a796d95093c1b6784d3f3f.zip
refactor wirewatch to enable use of batch API
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h26
1 files changed, 14 insertions, 12 deletions
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.