diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-06-04 01:05:30 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-06-04 01:05:30 +0200 |
commit | ff942a3a484f6a89fe94fffac6545b60e1ba1df3 (patch) | |
tree | a032011636aa149a73d426aaf8d7bf44f25f31fe /src/include | |
parent | a5b0b6d3de37d2d5940e82c7623486079980f8b9 (diff) |
fix another FIXME
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_merchant_service.h | 46 |
1 files changed, 39 insertions, 7 deletions
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); /** |