summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-03-21 02:39:36 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-03-21 02:39:36 +0100
commitf5f15e6531bb7072a02cb976771a43803bd044f6 (patch)
tree80cc93a627533fe4768bd5aded76c77c3d37660d /src/include
parentb560527ee3d5605310f3793dbcbf86a9b4844c91 (diff)
downloadexchange-f5f15e6531bb7072a02cb976771a43803bd044f6.tar.gz
exchange-f5f15e6531bb7072a02cb976771a43803bd044f6.tar.bz2
exchange-f5f15e6531bb7072a02cb976771a43803bd044f6.zip
first rough-cut implementation of POST /reserves//status
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index fc909a1ba..610f20303 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -2847,6 +2847,20 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * 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.
*
* @param cls the @e cls of this struct with the plugin-specific state