From 3074a867e052af594f1c7252c9cb967ff0747f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Mon, 29 Jun 2020 21:09:16 +0800 Subject: Remove unnecessary cURL handler parameter variables --- icclient/client.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'icclient') 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(); -- cgit v1.2.3