[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: -adjust to new tip API
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: -adjust to new tip API |
Date: |
Sat, 23 Jul 2022 21:57:25 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository taler-mdb.
The following commit(s) were added to refs/heads/master by this push:
new 78922c8 -adjust to new tip API
78922c8 is described below
commit 78922c86c294978d1667d3341df40fab44b2be44
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Jul 23 21:07:29 2022 +0200
-adjust to new tip API
---
src/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
index 2e917e0..1a2f8cf 100644
--- 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);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-mdb] branch master updated: -adjust to new tip API,
gnunet <=