summaryrefslogtreecommitdiff
path: root/icclient/client.h
diff options
context:
space:
mode:
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