From 685d975434d9311e5afebe9f933509f8bb2ad619 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: Sun, 29 Sep 2019 08:50:42 +0800 Subject: Swap allproducts parameters --- client.c | 4 ++-- icclient/client.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client.c b/client.c index 3d20f5f..3122bb4 100644 --- a/client.c +++ b/client.c @@ -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); -- cgit v1.2.3