taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit 78922c86c294978d1667d3341df40fab44b2be44
parent 2881c2e6fb5286eea3d452417700d9fae18a83ae
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat, 23 Jul 2022 21:07:29 +0200

-adjust to new tip API

Diffstat:
Msrc/taler-coin-acceptor.c | 29++++++++++-------------------
1 file changed, 10 insertions(+), 19 deletions(-)

diff --git a/src/taler-coin-acceptor.c b/src/taler-coin-acceptor.c @@ -167,33 +167,20 @@ do_shutdown (void *cls) * With result of a GET /private/tips/$TIP_ID request * * @param cls closure - * @param hr HTTP response details - * @param total_authorized how many tips were authorized under this tip - * @param total_picked_up how many tips have been picked up - * @param reason what was the reason given for the tip - * @param expiration when the tip will expire - * @param reserve_pub which reserve is funding this tip - * @param pickups_length length of the @a pickups array - * @param pickups array of pickup operations performed for this tip + * @param tsr response details */ static void pickup_cb ( void *cls, - const struct TALER_MERCHANT_HttpResponse *hr, - const struct TALER_Amount *total_authorized, - const struct TALER_Amount *total_picked_up, - const char *reason, - struct GNUNET_TIME_Timestamp expiration, - const struct TALER_ReservePublicKeyP *reserve_pub, - unsigned int pickups_length, - const struct TALER_MERCHANT_PickupDetail pickups[]) + const struct TALER_MERCHANT_TipStatusResponse *tsr) { tmgh = NULL; - switch (hr->http_status) + switch (tsr->hr.http_status) { case MHD_HTTP_OK: - if (0 == TALER_amount_cmp (&sum, - total_picked_up)) + if (0 == + TALER_amount_cmp (&sum, + &tsr->details.success.total_picked_up)) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Process completed\n"); @@ -206,6 +193,8 @@ pickup_cb ( tmgh = TALER_MERCHANT_merchant_tip_get (ctx, merchant_url, &tip_id, + NULL, + GNUNET_TIME_UNIT_ZERO, false, &pickup_cb, NULL); @@ -255,6 +244,8 @@ authorize_cb ( tmgh = TALER_MERCHANT_merchant_tip_get (ctx, merchant_url, &tip_id, + NULL, + GNUNET_TIME_UNIT_ZERO, false, &pickup_cb, NULL);