diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-27 08:50:58 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-27 08:50:58 +0800 |
commit | 0bfbe518bf7baa28f0720b6c753b550855b495f0 (patch) | |
tree | 16354732cfc001b6647807a8c9bfdc7e99c40b2e /icclient | |
parent | 85bcd2881bb69fdff880b517541fd6ec77cc2a95 (diff) |
Move All-Products function to client code
Diffstat (limited to 'icclient')
-rw-r--r-- | icclient/client.h | 5 | ||||
-rw-r--r-- | icclient/product.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/icclient/client.h b/icclient/client.h index 6116c1f..503eac3 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -1,11 +1,16 @@ #ifndef ICCLIENT_CLIENT_H #define ICCLIENT_CLIENT_H +struct icclient_catalog; + #ifdef __cplusplus 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_newaccount(const char *username, const char *password , const char *verify, const char *successpage , const char *nextpage, const char *failpage); diff --git a/icclient/product.h b/icclient/product.h index 12da846..6b2b890 100644 --- a/icclient/product.h +++ b/icclient/product.h @@ -15,9 +15,6 @@ struct icclient_catalog { extern "C" { #endif - void icclient_product_all(struct icclient_catalog **catalogptr - , size_t (*callback)(void *contents, size_t size - , size_t nmemb, void *userdata)); void icclient_product_freecatalog(struct icclient_catalog *catalog); #ifdef __cplusplus |