summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
Diffstat (limited to 'icclient')
-rw-r--r--icclient/client.h3
-rw-r--r--icclient/ord.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/icclient/client.h b/icclient/client.h
index e49af36..db38926 100644
--- a/icclient/client.h
+++ b/icclient/client.h
@@ -3,6 +3,7 @@
struct icclient_product;
struct icclient_catalog;
+struct icclient_ord_order;
#ifdef __cplusplus
extern "C" {
@@ -12,6 +13,8 @@ extern "C" {
void icclient_allproducts(size_t (*handler)(void *contents, size_t size
, size_t nmemb, void *userdata)
, struct icclient_catalog **catalogptr);
+ void icclient_order(struct icclient_ord_order **orderptr, const char *sku
+ , struct icclient_catalog *catalog);
void icclient_newaccount(const char *username, const char *password
, const char *verify, const char *successpage
, const char *nextpage, const char *failpage);
diff --git a/icclient/ord.h b/icclient/ord.h
index 0cd0e75..5632ffe 100644
--- a/icclient/ord.h
+++ b/icclient/ord.h
@@ -7,7 +7,9 @@ struct icclient_ord_item {
};
struct icclient_ord_order {
- double subtotal, shipping, total_cost;
+ double subtotal;
+ double shipping;
+ double total_cost;
size_t nitems;
struct icclient_ord_item *items[];
};