summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-05 18:06:58 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-05 18:06:58 +0800
commitc2c89d376b0d80299ad0fe8228ecef4279557160 (patch)
treebd75d3c9fa7a70393c2e74d9c11ac6536f511951 /icclient
parent89b7bef4c433bb42588eeec6e6f0d3d1c2a19b78 (diff)
Start working on ord.c
Diffstat (limited to 'icclient')
-rw-r--r--icclient/ord.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/icclient/ord.h b/icclient/ord.h
index 4491ba4..0cd0e75 100644
--- a/icclient/ord.h
+++ b/icclient/ord.h
@@ -1,25 +1,22 @@
#ifndef ICCLIENT_ORD_H
#define ICCLIENT_ORD_H
-#include "product.h"
-
-struct icclient_item {
+struct icclient_ord_item {
struct icclient_product *product;
unsigned int quantity;
};
-struct icclient_order {
- double subtotal, shipping, totalcost;
+struct icclient_ord_order {
+ double subtotal, shipping, total_cost;
size_t nitems;
- struct icclient_item *items[];
+ struct icclient_ord_item *items[];
};
#ifdef __cplusplus
extern "C" {
#endif
- void icclient_remove(const unsigned int *indices);
- void icclient_checkout(struct ic_order *order);
+ void icclient_ord_free(struct icclient_ord_order *order);
#ifdef __cplusplus
}