diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-21 03:04:47 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-21 03:04:47 +0100 |
commit | 1f86b02ffa60e3817f6a7d70a654f02759e793f3 (patch) | |
tree | d5eca21d76de99e8e21b4247383424437387095f /src/include | |
parent | f5f15e6531bb7072a02cb976771a43803bd044f6 (diff) | |
download | exchange-1f86b02ffa60e3817f6a7d70a654f02759e793f3.tar.xz |
first rough-cut implementation of /reserves//history endpoint
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 610f20303..5b8aa53bd 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2847,6 +2847,23 @@ struct TALER_EXCHANGEDB_Plugin /** + * 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. * * @param cls the @e cls of this struct with the plugin-specific state |