blob: 2ea1f53eece8aec8031bd1c69675ba897fd4e2e3 (
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
|
#ifndef ICCLIENT_PRODUCT_H
#define ICCLIENT_PRODUCT_H
struct ic_product {
char *sku, *description, *comment, *image;
double price;
};
struct ic_catalog {
size_t 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
|