From 51258871e3ad354ceebc4912548178705b5700d6 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: Mon, 14 Jun 2021 15:24:23 +0800 Subject: Strap results handler --- icclient.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'icclient.h') diff --git a/icclient.h b/icclient.h index d537263..38fdb6e 100644 --- a/icclient.h +++ b/icclient.h @@ -1,7 +1,7 @@ #ifndef ICCLIENT_H #define ICCLIENT_H -#include +#include "icclient/typedefs.h" #define icclient_allproducts(callback, handler) icclient_results("All-Products", callback, handler) @@ -13,6 +13,7 @@ struct icclient_product { char *image; double price; char *prod_group; + char *category; double weight; char *author; struct icclient_product_crosssell { @@ -32,11 +33,12 @@ extern "C" { /*! * \brief A function that needs to be run first. - * \param url Server root URL. + * \param sampleurl The value of the SAMPLEURL setting in products/variable.txt. + * \param image_dir The value of the IMAGE_DIR setting in products/variable.txt. * \param certificate Path to the CA certificate file. * \return True if the initialisation works, false otherwise. */ -void icclient_init(const char *url, const char *certificate); +void icclient_init(const char *sampleurl, const char *image_dir, const char *certificate); /*! * \brief For fetching data about products that belong a specific group. -- cgit v1.2.3