From 1f86b02ffa60e3817f6a7d70a654f02759e793f3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 21 Mar 2022 03:04:47 +0100 Subject: first rough-cut implementation of /reserves//history endpoint --- src/include/taler_exchangedb_plugin.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (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 610f2030..5b8aa53b 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2846,6 +2846,23 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_EXCHANGEDB_ReserveHistory **rhp); + /** + * Get truncated transaction history associated with the specified + * reserve. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param reserve_pub public key of the reserve + * @param[out] balance set to the reserve balance + * @param[out] rhp set to known transaction history (NULL if reserve is unknown) + * @return transaction status + */ + enum GNUNET_DB_QueryStatus + (*get_reserve_status)(void *cls, + const struct TALER_ReservePublicKeyP *reserve_pub, + struct TALER_Amount *balance, + struct TALER_EXCHANGEDB_ReserveHistory **rhp); + + /** * The current reserve balance of the specified reserve. * -- cgit v1.2.3