summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 21:09:16 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 21:09:16 +0800
commit3074a867e052af594f1c7252c9cb967ff0747f42 (patch)
tree0be445b3dc745f985f82d5a89d459e9faa135ed5 /icclient
parente13c106e8b28111feb0f71e5c04cab8637fcadb9 (diff)
Remove unnecessary cURL handler parameter variables
Diffstat (limited to 'icclient')
-rw-r--r--icclient/client.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/icclient/client.h b/icclient/client.h
index af3cc24..7b7306d 100644
--- a/icclient/client.h
+++ b/icclient/client.h
@@ -25,8 +25,7 @@ extern "C" {
* \param catalogptr A pointer to pointer to the catalog to store the data.
*/
void icclient_results(const char *prodgroup,
- size_t (*handler)(void *contents, size_t size,
- size_t nmemb, void *userdata),
+ size_t (*handler)(void *, size_t, size_t, void *),
struct icclient_catalog **catalogptr);
/*!
@@ -34,8 +33,7 @@ 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_allproducts(size_t (*handler)(void *contents, size_t size,
- size_t nmemb, void *userdata),
+ void icclient_allproducts(size_t (*handler)(void *, size_t, size_t, void *),
struct icclient_catalog **catalogptr);
/*!
@@ -56,22 +54,19 @@ extern "C" {
*/
void icclient_order(const char *sku, const struct icclient_catalog *catalog,
struct icclient_ord_order **orderptr);
- void icclient_newaccount(size_t (*handler)(void *contents, size_t size,
- size_t nmemb, void *userdata),
+ void icclient_newaccount(size_t (*handler)(void *, size_t, size_t, void *),
struct icclient_user *user,
const char *username, const char *password,
const char *verify, const char *successpage,
const char *nextpage, const char *failpage);
- void icclient_login(size_t (*handler)(void *contents, size_t size
- , size_t nmemb, void *userdata),
+ void icclient_login(size_t (*handler)(void *, size_t, size_t, void *),
struct icclient_user *user,
const char *username, const char *password,
const char *successpage, const char *nextpage,
const char *failpage);
void icclient_logout();
void icclient_page(const char *path,
- size_t (*handler)(void *contents, size_t size,
- size_t nmemb, void *userdata),
+ size_t (*handler)(void *, size_t, size_t, void *),
void **dataptr);
void icclient_cleanup();