summaryrefslogtreecommitdiff
path: root/icclient/client.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:51:18 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:51:18 +0800
commitc6e5f421e2738b6005f6c3da6700b1343214f7e5 (patch)
treef4c45010fac52e4c30610ddd4640fb5b36a602a8 /icclient/client.h
parenta0e54cb948c9862936e16eedd2a2015be05408c8 (diff)
Add support for Emscripten
Diffstat (limited to 'icclient/client.h')
-rw-r--r--icclient/client.h15
1 files changed, 4 insertions, 11 deletions
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