From 1be551eb39df7240b661b2c7e661d31dd242476e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 9 Mar 2023 12:04:11 +0800 Subject: Handler parameter to order --- interchange/ord.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'interchange') diff --git a/interchange/ord.h b/interchange/ord.h index f57b66a..ce6bb65 100644 --- a/interchange/ord.h +++ b/interchange/ord.h @@ -32,9 +32,13 @@ extern "C" { * \param sku The SKU of the item to order. * \param catalog The catalog from which the item is. * \param order The address of an order instance. + * \param handler A pointer to the function when a custom handler is needed to + * arrange the data into the order. */ -void interchange_ord_order(const char *sku, const struct interchange_catalog *catalog, - struct interchange_ord_order **order); +void interchange_ord_order(const char *sku, + const struct interchange_catalog *catalog, + struct interchange_ord_order **order, + void (*handler)(interchange_response *)); /*! * \brief For checking out items in the cart. -- cgit v1.2.3