summaryrefslogtreecommitdiff
path: root/product.c
diff options
context:
space:
mode:
Diffstat (limited to 'product.c')
-rw-r--r--product.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/product.c b/product.c
index c38ce3f..39a4e59 100644
--- a/product.c
+++ b/product.c
@@ -1,6 +1,20 @@
#include <stdlib.h>
#include "icclient/product.h"
+void icclient_product_init(struct icclient_product *product)
+{
+ product->sku = NULL;
+ product->description = NULL;
+ product->comment = NULL;
+ product->thumb = NULL;
+ product->image = NULL;
+ product->price = .0;
+ product->prodgroup = NULL;
+ product->weight = .0;
+ product->author = NULL;
+ product->crosssell = NULL;
+}
+
void icclient_product_free(struct icclient_product *product)
{
if (product->crosssell)