-minor API clean up

This commit is contained in:
Christian Grothoff 2022-02-11 17:05:57 +01:00
parent 2772050b95
commit 0eb5b08d50
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 35 additions and 26 deletions

View File

@ -1387,25 +1387,11 @@ struct TALER_EXCHANGE_WithdrawHandle;
/**
* Details about a response for a withdraw request.
* All the details about a coin that are generated during withdrawal and that
* may be needed for future operations on the coin.
*/
struct TALER_EXCHANGE_WithdrawResponse
struct TALER_EXCHANGE_PrivateCoinDetails
{
/**
* HTTP response data.
*/
struct TALER_EXCHANGE_HttpResponse hr;
/**
* Details about the response.
*/
union
{
/**
* Details if the status is #MHD_HTTP_OK.
*/
struct
{
/**
* Private key of the coin.
*/
@ -1427,7 +1413,28 @@ struct TALER_EXCHANGE_WithdrawResponse
* withdraw protocol.
*/
struct TALER_ExchangeWithdrawValues exchange_vals;
} success;
};
/**
* Details about a response for a withdraw request.
*/
struct TALER_EXCHANGE_WithdrawResponse
{
/**
* HTTP response data.
*/
struct TALER_EXCHANGE_HttpResponse hr;
/**
* Details about the response.
*/
union
{
/**
* Details if the status is #MHD_HTTP_OK.
*/
struct TALER_EXCHANGE_PrivateCoinDetails success;
/**
* Details if the status is #MHD_HTTP_ACCEPTED.

View File

@ -42,3 +42,5 @@ test_kyc_api
test_helper_cs_home/
test_helper_rsa_home/test_exchange_api_twisted-cs
test_exchange_api_twisted-rsa
test_exchange_api_twisted_cs
test_exchange_api_twisted_rsa

View File

@ -234,8 +234,8 @@ recoup_refresh_run (void *cls,
const struct TALER_CoinSpendPrivateKeyP *coin_priv;
const struct TALER_EXCHANGE_DenomPublicKey *denom_pub;
const struct TALER_DenominationSignature *coin_sig;
const struct TALER_PlanchetSecretsP *rplanchet;
const struct TALER_PlanchetSecretsP *planchet;
const struct TALER_RefreshMasterSecretP *rplanchet;
const struct TALER_PlanchetMasterSecretP *planchet;
const struct TALER_ExchangeWithdrawValues *ewv;
char *cref;
unsigned int idx;