From ff942a3a484f6a89fe94fffac6545b60e1ba1df3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 4 Jun 2023 01:05:30 +0200 Subject: fix another FIXME --- src/include/taler_merchant_service.h | 46 ++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 7 deletions(-) (limited to 'src/include/taler_merchant_service.h') diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h index e8d76263..f936d54e 100644 --- a/src/include/taler_merchant_service.h +++ b/src/include/taler_merchant_service.h @@ -4444,21 +4444,53 @@ struct TALER_MERCHANT_TipEntry }; -// FIXME: change signature! +/** + * Response to a GET /private/tips request. + */ +struct TALER_MERCHANT_TipsGetResponse +{ + /** + * HTTP response details + */ + struct TALER_MERCHANT_HttpResponse hr; + + /** + * Details depending on status. + */ + union + { + + /** + * Details if status is #MHD_HTTP_OK. + */ + struct + { + /** + * length of the @e tips array + */ + unsigned int tips_length; + + /** + * the array of tips + */ + const struct TALER_MERCHANT_TipEntry *tips; + + } ok; + + } details; +}; + + /** * Callback to process a GET /private/tips request. * * @param cls closure - * @param hr HTTP response details - * @param tips_length length of the @a tips array - * @param tips the array of tips, NULL on error + * @param tgr response details */ typedef void (*TALER_MERCHANT_TipsGetCallback) ( void *cls, - const struct TALER_MERCHANT_HttpResponse *hr, - unsigned int tips_length, - const struct TALER_MERCHANT_TipEntry tips[]); + const struct TALER_MERCHANT_TipsGetResponse *tgr); /** -- cgit v1.2.3