diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-07-11 20:01:29 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-07-11 20:01:44 +0200 |
commit | e984dbd8f48b6f4588d39e4c30ef8bceaad7e55d (patch) | |
tree | 3d8e75ea66fdca5f87b417395f05ced8de33deed /src/exchange/taler-exchange-httpd_keys.h | |
parent | e0f78bc3c9536fb649cc7a69f3ee404b49087d64 (diff) | |
download | exchange-e984dbd8f48b6f4588d39e4c30ef8bceaad7e55d.tar.gz exchange-e984dbd8f48b6f4588d39e4c30ef8bceaad7e55d.tar.bz2 exchange-e984dbd8f48b6f4588d39e4c30ef8bceaad7e55d.zip |
merge /wire into /keys response
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.h b/src/exchange/taler-exchange-httpd_keys.h index d4a578127..f30eeb626 100644 --- a/src/exchange/taler-exchange-httpd_keys.h +++ b/src/exchange/taler-exchange-httpd_keys.h @@ -154,6 +154,60 @@ struct TEH_KeyStateHandle; void TEH_check_invariants (void); +/** + * Clean up wire subsystem. + */ +void +TEH_wire_done (void); + + +/** + * Look up wire fee structure by @a ts. + * + * @param ts timestamp to lookup wire fees at + * @param method wire method to lookup fees for + * @return the wire fee details, or + * NULL if none are configured for @a ts and @a method + */ +const struct TALER_WireFeeSet * +TEH_wire_fees_by_time ( + struct GNUNET_TIME_Timestamp ts, + const char *method); + + +/** + * Initialize wire subsystem. + * + * @return #GNUNET_OK on success + */ +enum GNUNET_GenericReturnValue +TEH_wire_init (void); + + +/** + * Something changed in the database. Rebuild the wire replies. This function + * should be called if the exchange learns about a new signature from our + * master key. + * + * (We do not do so immediately, but merely signal to all threads that they + * need to rebuild their wire state upon the next call to + * #TEH_handler_wire()). + */ +void +TEH_wire_update_state (void); + + +/** + * Handle a "/wire" request. + * + * @param rc request context + * @param args array of additional options (must be empty for this function) + * @return MHD result code + */ +MHD_RESULT +TEH_handler_wire (struct TEH_RequestContext *rc, + const char *const args[]); + /** * Return the current key state for this thread. Possibly re-builds the key |