diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 15:41:54 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 15:41:54 +0800 |
| commit | 143f5b64f187497af728a6d921c599dcc99ed807 (patch) | |
| tree | ba7264b8748c53c57697f9a1c9bf34db279ed468 /icclient.h | |
| parent | 4cd6fdb93eca409a76b0af860d9a0599b2f95f53 (diff) | |
Fix the way libcurl has been used
Diffstat (limited to 'icclient.h')
| -rw-r--r-- | icclient.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ -#ifndef ICCLIENT_CLIENT_H -#define ICCLIENT_CLIENT_H +#ifndef ICCLIENT_H +#define ICCLIENT_H #include <icclient/typedefs.h> @@ -44,7 +44,7 @@ void icclient_init(const char *url, const char *certificate); * \param callback A pointer to the function that needs to be called after the catalog is ready. * \param handler A pointer to the function when a custom handler is needed to arrange the data into the catalog. */ -void icclient_results(const char *prod_group, void (*callback)(struct icclient_catalog *), icclient_handler handler); +void icclient_results(const char *prod_group, void (*callback)(struct icclient_catalog *), void (*handler)(icclient_fetch_t *)); /*! * \brief For fetching data about a specific product. @@ -52,9 +52,9 @@ void icclient_results(const char *prod_group, void (*callback)(struct icclient_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, icclient_handler handler, struct icclient_product **productptr); +void icclient_flypage(const char *sku, void (*handler)(icclient_fetch_t *), struct icclient_product **productptr); -void icclient_page(const char *path, icclient_handler handler, void **dataptr); +void icclient_page(const char *path, void (*handler)(icclient_fetch_t *), void **dataptr); void icclient_free_product(struct icclient_product *product); |