From 844c85dcb6115d2bc14caae60c162a063ee402e5 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: Fri, 19 Jun 2020 15:10:55 +0800 Subject: Results page implementation --- icclient/client.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'icclient') diff --git a/icclient/client.h b/icclient/client.h index f35b9a2..684e17a 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -18,6 +18,17 @@ extern "C" { */ bool icclient_init(const char *url, const char *certificate); + /*! + * \brief For fetching data about products that belong a specific group. + * \param handler A pointer to a cURL write function callback. + * \param catalogptr A pointer to pointer to the catalog to store the data. + * \param prodgroup The name of the product group. + */ + void icclient_results(size_t (*handler)(void *contents, size_t size, + size_t nmemb, void *userdata), + struct icclient_catalog **catalogptr, + const char *prodgroup); + /*! * \brief For fetching data about all active products. * \param handler A pointer to a cURL write function callback. -- cgit v1.2.3