summaryrefslogtreecommitdiff
path: root/icclient/product.h
blob: ba999b3fee3900dd976ee61908d869e432c56e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef ICCLIENT_PRODUCT_H
#define ICCLIENT_PRODUCT_H

struct icclient_product_crosssell {
	size_t length;
	char *skus[];
};

struct icclient_product {
	char *sku;
	char *description;
	char *comment;
	char *thumb;
	char *image;
	double price;
	char *prodgroup;
	double weight;
	char *author;
	struct icclient_product_crosssell *crosssell;
};

#ifdef __cplusplus
extern "C" {
#endif

	void icclient_product_free(struct icclient_product *product);

#ifdef __cplusplus
}
#endif

#endif // ICCLIENT_PRODUCT_H