summaryrefslogtreecommitdiff
path: root/icclient.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-14 15:24:23 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-14 15:24:23 +0800
commit51258871e3ad354ceebc4912548178705b5700d6 (patch)
tree6bbdb8ff3f452ee92f1b9b3a6d40c57326d97eb3 /icclient.h
parent53410fd11fbd3206c8a7c4b56be90f2401849c09 (diff)
Strap results handler
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.