summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
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);
/**