summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-06-04 01:05:30 +0200
committerChristian Grothoff <christian@grothoff.org>2023-06-04 01:05:30 +0200
commitff942a3a484f6a89fe94fffac6545b60e1ba1df3 (patch)
treea032011636aa149a73d426aaf8d7bf44f25f31fe /src/include/taler_merchant_service.h
parenta5b0b6d3de37d2d5940e82c7623486079980f8b9 (diff)
downloadmerchant-ff942a3a484f6a89fe94fffac6545b60e1ba1df3.tar.gz
merchant-ff942a3a484f6a89fe94fffac6545b60e1ba1df3.tar.bz2
merchant-ff942a3a484f6a89fe94fffac6545b60e1ba1df3.zip
fix another FIXME
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h46
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);
/**