summaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-03-21 03:04:47 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-03-21 03:04:47 +0100
commit1f86b02ffa60e3817f6a7d70a654f02759e793f3 (patch)
treed5eca21d76de99e8e21b4247383424437387095f /src/include/taler_exchangedb_plugin.h
parentf5f15e6531bb7072a02cb976771a43803bd044f6 (diff)
downloadexchange-1f86b02ffa60e3817f6a7d70a654f02759e793f3.tar.gz
exchange-1f86b02ffa60e3817f6a7d70a654f02759e793f3.tar.bz2
exchange-1f86b02ffa60e3817f6a7d70a654f02759e793f3.zip
first rough-cut implementation of /reserves//history endpoint
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h17
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