diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-14 13:41:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-14 13:41:46 +0100 |
commit | e56ed85f4f11f3daec80326f7d43635281b3806b (patch) | |
tree | 33d9b9523a6e1a38e4ee0264927f9e89892a4af8 /src/include | |
parent | 9ff3c2fce5835dff2100a80f27b7f620aaa50783 (diff) |
preparations for #5536
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 28 |
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 |