diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-29 08:50:42 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-29 08:50:42 +0800 |
commit | 685d975434d9311e5afebe9f933509f8bb2ad619 (patch) | |
tree | 5f5f58d1a1f1143b80014ed4b9f09c7e0a342967 | |
parent | 7a7ad88f83b343c8185006182ff2a8ebf8a94b5c (diff) |
Swap allproducts parameters
-rw-r--r-- | client.c | 4 | ||||
-rw-r--r-- | icclient/client.h | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -32,8 +32,8 @@ bool icclient_init(const char *url, const char *certificate) return (bool)curl; } -void icclient_allproducts(icclient_catalog **catalogptr - , size_t (*callback)(void *, size_t, size_t, void *)) +void icclient_allproducts(size_t (*callback)(void *, size_t, size_t, void *) + , icclient_catalog **catalogptr) { (*catalogptr) = malloc(sizeof(icclient_catalog)); request(callback, (void *)catalogptr, NULL, "%s", "All-Products"); diff --git a/icclient/client.h b/icclient/client.h index 503eac3..25156b2 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -8,9 +8,9 @@ extern "C" { #endif bool icclient_init(const char *url, const char *certificate); - void icclient_allproducts(struct icclient_catalog **catalogptr - , size_t (*callback)(void *contents, size_t size - , size_t nmemb, void *userdata)); + void icclient_allproducts(size_t (*callback)(void *contents, size_t size + , size_t nmemb, void *userdata) + , struct icclient_catalog **catalogptr); void icclient_newaccount(const char *username, const char *password , const char *verify, const char *successpage , const char *nextpage, const char *failpage); |