diff options
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. |