summaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-14 13:41:46 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-14 13:41:46 +0100
commite56ed85f4f11f3daec80326f7d43635281b3806b (patch)
tree33d9b9523a6e1a38e4ee0264927f9e89892a4af8 /src/include/taler_exchangedb_plugin.h
parent9ff3c2fce5835dff2100a80f27b7f620aaa50783 (diff)
downloadexchange-e56ed85f4f11f3daec80326f7d43635281b3806b.tar.gz
exchange-e56ed85f4f11f3daec80326f7d43635281b3806b.tar.bz2
exchange-e56ed85f4f11f3daec80326f7d43635281b3806b.zip
preparations for #5536
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 89df42190..2d9f14208 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -711,7 +711,6 @@ typedef int
int done);
-
/**
* Callback used to process data of a merchant under KYC monitoring.
*
@@ -1140,6 +1139,19 @@ typedef void
/**
+ * Function called with information about the exchange's denomination keys.
+ *
+ * @parma cls closure
+ * @param denom_pub public key of the denomination
+ * @param issue detailed information about the denomination (value, expiration times, fees)
+ */
+typedef void
+(*TALER_EXCHANGEDB_DenominationInfoIterator)(void *cls,
+ const struct TALER_DenominationPublicKey *denom_pub,
+ const struct TALER_EXCHANGEDB_DenominationKeyInformationP *issue);
+
+
+/**
* @brief The plugin API, returned from the plugin's "init" function.
* The argument given to "init" is simply a configuration handle.
*/
@@ -1274,6 +1286,20 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * Function called on every known denomination key. Runs in its
+ * own read-only transaction (hence no session provided).
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param cb function to call on each denomination key
+ * @param cb_cls closure for @a cb
+ * @return transaction status code
+ */
+ enum GNUNET_DB_QueryStatus
+ (*iterate_denomination_info) (void *cls,
+ TALER_EXCHANGEDB_DenominationInfoIterator cb,
+ void *cb_cls);
+
+ /**
* Get the summary of a reserve.
*
* @param cls the @e cls of this struct with the plugin-specific state