diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-03 17:14:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-03 17:14:00 +0100 |
commit | a9b3c564bdd80ad6d3db0d0c493144956c64368d (patch) | |
tree | 0d6b2e480eb87802f26d2c323d07d8a89b8f7268 /src/exchange-tools/taler-wire.c | |
parent | 97fb6b0091ca089b997febf691be2038223a8d21 (diff) | |
download | exchange-a9b3c564bdd80ad6d3db0d0c493144956c64368d.tar.xz |
rename BANK_excecute_wire_transfer to BANK_transfer, improve error handling when curl_easy_init() fails
Diffstat (limited to 'src/exchange-tools/taler-wire.c')
-rw-r--r-- | src/exchange-tools/taler-wire.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/exchange-tools/taler-wire.c b/src/exchange-tools/taler-wire.c index 7fc3b0416..d5a915a92 100644 --- a/src/exchange-tools/taler-wire.c +++ b/src/exchange-tools/taler-wire.c @@ -70,7 +70,7 @@ static char *destination_account_url; /** * Handle for executing the wire transfer. */ -static struct TALER_BANK_WireExecuteHandle *eh; +static struct TALER_BANK_TransferHandle *eh; /** * Handle to ongoing history operation. @@ -189,18 +189,18 @@ execute_wire_transfer () GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, &wtid, sizeof (wtid)); - TALER_BANK_prepare_wire_transfer (destination_account_url, - &amount, - "http://exchange.example.com/", - &wtid, - &buf, - &buf_size); - eh = TALER_BANK_execute_wire_transfer (ctx, - &auth, - buf, - buf_size, - &confirmation_cb, - NULL); + TALER_BANK_prepare_transfer (destination_account_url, + &amount, + "http://exchange.example.com/", + &wtid, + &buf, + &buf_size); + eh = TALER_BANK_transfer (ctx, + &auth, + buf, + buf_size, + &confirmation_cb, + NULL); if (NULL == eh) { fprintf (stderr, @@ -260,7 +260,7 @@ do_shutdown (void *cls) } if (NULL != eh) { - TALER_BANK_execute_wire_transfer_cancel (eh); + TALER_BANK_transfer_cancel (eh); eh = NULL; } TALER_BANK_auth_free (&auth); |