diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-29 20:48:07 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-29 20:48:07 +0800 |
commit | e13c106e8b28111feb0f71e5c04cab8637fcadb9 (patch) | |
tree | 922db0eb138f7ce7e467ab079af16c47537c9957 | |
parent | a9c230a80abfb78f09980efad809666050c702b6 (diff) |
Reorder flypage parameters
-rw-r--r-- | client.c | 5 | ||||
-rw-r--r-- | icclient/client.h | 8 |
2 files changed, 7 insertions, 6 deletions
@@ -58,8 +58,9 @@ void icclient_allproducts(size_t (*handler)(void *, size_t, size_t, void *) request(handler, (void *)catalogptr, NULL, "%s", "All-Products"); } -void icclient_flypage(size_t (*handler)(void *, size_t, size_t, void *), - icclient_product **productptr, const char *sku) +void icclient_flypage(const char *sku, + size_t (*handler)(void *, size_t, size_t, void *), + icclient_product **productptr) { request(handler, (void *)productptr, NULL, "%s", sku); } diff --git a/icclient/client.h b/icclient/client.h index 1779aa9..af3cc24 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -40,13 +40,13 @@ extern "C" { /*! * \brief For fetching data about a specific product. + * \param sku The SKU of the item to order. * \param handler A pointer to a cURL write function callback. * \param productptr A pointer to pointer to the product to store the data. - * \param sku The SKU of the item to order. */ - void icclient_flypage(size_t (*handler)(void *contents, size_t size, - size_t nmemb, void *userdata), - struct icclient_product **productptr, const char *sku); + void icclient_flypage(const char *sku, + size_t (*handler)(void *, size_t, size_t, void *), + struct icclient_product **productptr); /*! * \brief For putting an item to a cart. |