From f5f15e6531bb7072a02cb976771a43803bd044f6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 21 Mar 2022 02:39:36 +0100 Subject: first rough-cut implementation of POST /reserves//status --- src/include/taler_exchangedb_plugin.h | 14 ++++++++++++++ 1 file changed, 14 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 fc909a1b..610f2030 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2846,6 +2846,20 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_EXCHANGEDB_ReserveHistory **rhp); + /** + * The current reserve balance of 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 + * @return transaction status + */ + enum GNUNET_DB_QueryStatus + (*get_reserve_balance)(void *cls, + const struct TALER_ReservePublicKeyP *reserve_pub, + struct TALER_Amount *balance); + + /** * Free memory associated with the given reserve history. * -- cgit v1.2.3