blob: 4491ba4568bd93dfe1887618d4660294a015bef0 (
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
|
#ifndef ICCLIENT_ORD_H
#define ICCLIENT_ORD_H
#include "product.h"
struct icclient_item {
struct icclient_product *product;
unsigned int quantity;
};
struct icclient_order {
double subtotal, shipping, totalcost;
size_t nitems;
struct icclient_item *items[];
};
#ifdef __cplusplus
extern "C" {
#endif
void icclient_remove(const unsigned int *indices);
void icclient_checkout(struct ic_order *order);
#ifdef __cplusplus
}
#endif
#endif // ICCLIENT_ORD_H
|