From 66225020d3ef1e3825adfc9d4f9e38420f68546c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 14 Jun 2020 17:00:04 +0800 Subject: Flypage function --- icclient/client.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'icclient') diff --git a/icclient/client.h b/icclient/client.h index 600686a..f35b9a2 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -27,6 +27,16 @@ extern "C" { , size_t nmemb, void *userdata) , struct icclient_catalog **catalogptr); + /*! + * \brief For fetching data about a specific product. + * \param handler A pointer to a cURL write function callback. + * \param productptr A pointer to pointer to the product to store the data. + * \param sku The SKU of the item to order. + */ + void icclient_flypage(size_t (*handler)(void *contents, size_t size, + size_t nmemb, void *userdata), + struct icclient_product **productptr, const char *sku); + /*! * \brief For putting an item to a cart. * \param orderptr A pointer to pointer to the order. -- cgit v1.2.3