summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-13 23:07:50 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-13 23:08:23 +0200
commit86f9c6823ec9d92dfbbbc1220655c91b129020cf (patch)
treec2a21180a3b8350ab4a98644bd359139df150c8c /src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c
parent4e45f3a965d5454b136eaf041d5d523f614343d4 (diff)
downloadmerchant-86f9c6823ec9d92dfbbbc1220655c91b129020cf.tar.gz
merchant-86f9c6823ec9d92dfbbbc1220655c91b129020cf.tar.bz2
merchant-86f9c6823ec9d92dfbbbc1220655c91b129020cf.zip
merging /keys and /wire API in the exchange
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c')
-rw-r--r--src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c b/src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c
index b7aa31e1..05347c9f 100644
--- a/src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c
+++ b/src/backend/taler-merchant-httpd_post-rewards-ID-pickup.c
@@ -384,14 +384,17 @@ withdraw_cb (void *cls,
*
* @param cls closure, with our `struct PlanchetOperation *`
* @param keys keys for the exchange
+ * @param exchange representation of the exchange
*/
static void
do_withdraw (void *cls,
- struct TALER_EXCHANGE_Keys *keys)
+ struct TALER_EXCHANGE_Keys *keys,
+ struct TMH_Exchange *exchange)
{
struct PlanchetOperation *po = cls;
struct PickupContext *pc = po->pc;
+ (void) exchange;
po->fo = NULL;
TMH_db->preflight (TMH_db->cls);
if (NULL == keys)
@@ -443,6 +446,7 @@ try_withdraw (struct PickupContext *pc,
po->pd = *planchet;
po->offset = offset;
po->fo = TMH_EXCHANGES_keys4exchange (pc->exchange_url,
+ false,
&do_withdraw,
po);
GNUNET_assert (NULL != po->fo);
@@ -484,13 +488,16 @@ do_timeout (void *cls)
*
* @param cls closure, with our `struct PickupContext *`
* @param keys the keys of the exchange
+ * @param exchange representation of the exchange
*/
static void
compute_total_requested (void *cls,
- struct TALER_EXCHANGE_Keys *keys)
+ struct TALER_EXCHANGE_Keys *keys,
+ struct TMH_Exchange *exchange)
{
struct PickupContext *pc = cls;
+ (void) exchange;
pc->fo = NULL;
stop_operations (pc); /* stops timeout job */
if (NULL == keys)
@@ -727,6 +734,7 @@ TMH_post_rewards_ID_pickup (const struct TMH_RequestHandler *rh,
&do_timeout,
pc);
pc->fo = TMH_EXCHANGES_keys4exchange (pc->exchange_url,
+ false,
&compute_total_requested,
pc);
return MHD_YES;