From 4cd6fdb93eca409a76b0af860d9a0599b2f95f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 13 Jun 2021 09:41:34 +0800 Subject: Fix header related problems --- icclient.h | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'icclient.h') diff --git a/icclient.h b/icclient.h index bcf8170..fb13ef7 100644 --- a/icclient.h +++ b/icclient.h @@ -1,25 +1,29 @@ #ifndef ICCLIENT_CLIENT_H #define ICCLIENT_CLIENT_H +#include + #define icclient_allproducts(callback, handler) icclient_results("All-Products", callback, handler) +struct icclient_product { + char *sku; + char *description; + char *comment; + char *thumb; + char *image; + double price; + char *prod_group; + double weight; + char *author; + struct icclient_product_crosssell { + size_t length; + char *skus[]; + } *crosssell; +}; + struct icclient_catalog { size_t length; - struct icclient_product { - char *sku; - char *description; - char *comment; - char *thumb; - char *image; - double price; - char *prod_group; - double weight; - char *author; - struct icclient_product_crosssell { - size_t length; - char *skus[]; - } *crosssell; - } *products[]; + struct icclient_product *products[]; }; #ifdef __cplusplus -- cgit v1.2.3