From c6e5f421e2738b6005f6c3da6700b1343214f7e5 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: Wed, 9 Jun 2021 19:51:18 +0800 Subject: Add support for Emscripten --- icclient/client.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'icclient/client.h') diff --git a/icclient/client.h b/icclient/client.h index 02e0bfa..00f9445 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -22,17 +22,14 @@ extern "C" { * \param handler A pointer to a cURL write function callback. * \param catalogptr A pointer to pointer to the catalog to store the data. */ - void icclient_results(const char *prod_group, - size_t (*handler)(void *, size_t, size_t, void *), - struct icclient_catalog **catalogptr); + void icclient_results(const char *prod_group, icclient_handler handler, struct icclient_catalog **catalogptr); /*! * \brief For fetching data about all active products. * \param handler A pointer to a cURL write function callback. * \param catalogptr A pointer to pointer to the catalog to store the data. */ - void icclient_allproducts(size_t (*handler)(void *, size_t, size_t, void *), - struct icclient_catalog **catalogptr); + void icclient_allproducts(icclient_handler handler, struct icclient_catalog **catalogptr); /*! * \brief For fetching data about a specific product. @@ -40,13 +37,9 @@ extern "C" { * \param handler A pointer to a cURL write function callback. * \param productptr A pointer to pointer to the product to store the data. */ - void icclient_flypage(const char *sku, - size_t (*handler)(void *, size_t, size_t, void *), - struct icclient_product **productptr); + void icclient_flypage(const char *sku, icclient_handler handler, struct icclient_product **productptr); - void icclient_page(const char *path, - size_t (*handler)(void *, size_t, size_t, void *), - void **dataptr); + void icclient_page(const char *path, icclient_handler handler, void **dataptr); void icclient_cleanup(); #ifdef __cplusplus -- cgit v1.2.3