diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-04 22:24:59 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-04 22:24:59 +0800 |
commit | cb523761caf60fc847fb666a7405b3b3b18c9550 (patch) | |
tree | 1238fa94bf09aeef78ed1dc96463c8426454cfc8 | |
parent | 685d975434d9311e5afebe9f933509f8bb2ad619 (diff) |
Rename callback to handler
-rw-r--r-- | client.c | 4 | ||||
-rw-r--r-- | icclient/client.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -32,11 +32,11 @@ bool icclient_init(const char *url, const char *certificate) return (bool)curl; } -void icclient_allproducts(size_t (*callback)(void *, size_t, size_t, void *) +void icclient_allproducts(size_t (*handler)(void *, size_t, size_t, void *) , icclient_catalog **catalogptr) { (*catalogptr) = malloc(sizeof(icclient_catalog)); - request(callback, (void *)catalogptr, NULL, "%s", "All-Products"); + request(handler, (void *)catalogptr, NULL, "%s", "All-Products"); } void icclient_newaccount(const char *username, const char *password diff --git a/icclient/client.h b/icclient/client.h index 25156b2..9527300 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -8,7 +8,7 @@ extern "C" { #endif bool icclient_init(const char *url, const char *certificate); - void icclient_allproducts(size_t (*callback)(void *contents, size_t size + void icclient_allproducts(size_t (*handler)(void *contents, size_t size , size_t nmemb, void *userdata) , struct icclient_catalog **catalogptr); void icclient_newaccount(const char *username, const char *password |