diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-14 15:24:23 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-14 15:24:23 +0800 |
commit | 51258871e3ad354ceebc4912548178705b5700d6 (patch) | |
tree | 6bbdb8ff3f452ee92f1b9b3a6d40c57326d97eb3 /icclient.h | |
parent | 53410fd11fbd3206c8a7c4b56be90f2401849c09 (diff) |
Strap results handler
Diffstat (limited to 'icclient.h')
-rw-r--r-- | icclient.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,7 @@ #ifndef ICCLIENT_H #define ICCLIENT_H -#include <icclient/typedefs.h> +#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. |