summaryrefslogtreecommitdiff
path: root/icclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'icclient.h')
-rw-r--r--icclient.h8
1 files changed, 5 insertions, 3 deletions
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 <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.