From 0bfbe518bf7baa28f0720b6c753b550855b495f0 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: Fri, 27 Sep 2019 08:50:58 +0800 Subject: Move All-Products function to client code --- icclient/client.h | 5 +++++ icclient/product.h | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'icclient') 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 -- cgit v1.2.3