diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-23 12:34:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-23 12:34:48 +0200 |
commit | 132359a4440e07177df4afe596be4b16270a47d8 (patch) | |
tree | b964765909b49bddc54f0d2a06818a3da080f80f /src/include | |
parent | a72337a5f39b4e826055974fbc5a3261759ebbec (diff) | |
download | exchange-132359a4440e07177df4afe596be4b16270a47d8.tar.gz exchange-132359a4440e07177df4afe596be4b16270a47d8.tar.bz2 exchange-132359a4440e07177df4afe596be4b16270a47d8.zip |
add purses-get to build
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchange_service.h | 8 | ||||
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 18 |
2 files changed, 22 insertions, 4 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 3095ac2b8..18bde0fe5 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -4127,8 +4127,8 @@ struct TALER_EXCHANGE_PurseGetHandle; * * @param exchange exchange handle * @param purse_priv private key of the purse - * @param merge_timeout how long to wait for a merge to happen - * @param deposit_timeout how long to wait for a deposit to happen + * @param timeout how long to wait for a change to happen + * @param wait_for_merge true to wait for a merge event, otherwise wait for a deposit event * @param cb function to call with the exchange's result * @param cb_cls closure for @a cb * @return the request handle; NULL upon error @@ -4137,8 +4137,8 @@ struct TALER_EXCHANGE_PurseGetHandle * TALER_EXCHANGE_purse_get ( struct TALER_EXCHANGE_Handle *exchange, const struct TALER_PurseContractPrivateKeyP *purse_priv, - struct GNUNET_TIME_Relative merge_timeout, - struct GNUNET_TIME_Relative deposit_timeout, + struct GNUNET_TIME_Relative timeout, + bool wait_for_merge, TALER_EXCHANGE_PurseGetCallback cb, void *cb_cls); diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index abc7a7aa1..1548bf3d8 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -122,6 +122,24 @@ struct TALER_ReserveEventP /** + * Signature of events signalling a purse changed its status. + */ +struct TALER_PurseEventP +{ + /** + * Of type #TALER_DBEVENT_EXCHANGE_PURSE_MERGED or + * #TALER_DBEVENT_EXCHANGE_PURSE_DEPOSITED. + */ + struct GNUNET_DB_EventHeaderP header; + + /** + * Public key of the purse the event is about. + */ + struct TALER_PurseContractPublicKeyP purse_pub; +}; + + +/** * Signature of events signalling a KYC process was completed. */ struct TALER_KycCompletedEventP |