diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-16 20:43:28 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-16 20:43:28 +0800 |
| commit | e405b28efceb0865910c3821d92f6f3cb9a6f0be (patch) | |
| tree | b0d44ce408d8f22052e3450bc8fc066c55f2b20c /icclient/product.h | |
| parent | 47be7ba91f07acb7bf88b66fc706ee6b4add69bd (diff) | |
Product related structures and functions
Diffstat (limited to 'icclient/product.h')
| -rw-r--r-- | icclient/product.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/icclient/product.h b/icclient/product.h new file mode 100644 index 0000000..f912b17 --- /dev/null +++ b/icclient/product.h @@ -0,0 +1,27 @@ +#ifndef ICCLIENT_PRODUCT_H +#define ICCLIENT_PRODUCT_H + +struct ic_product { + char *sku, *description, *comment, *image; + double price; +}; + +struct ic_catalog { + unsigned int length; + struct ic_product *products[]; +}; + +#ifdef __cplusplus +extern "C" { +#endif + + void icclient_product_all(struct ic_catalog **catalogptr + , size_t (*callback)(void *contents, size_t size + , size_t nmemb, void *userdata)); + void rtclient_product_freecatalog(struct ic_catalog *catalog); + +#ifdef __cplusplus +} +#endif + +#endif // ICCLIENT_PRODUCT_H |