From a433adb8eacc0883a4757970362417ab15193e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 23 Jun 2021 07:26:02 +0800 Subject: Tidy up a bit --- icclient/member.h | 1 + icclient/ord.h | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'icclient') diff --git a/icclient/member.h b/icclient/member.h index 3f90e93..6b9d2ee 100644 --- a/icclient/member.h +++ b/icclient/member.h @@ -1,6 +1,7 @@ #ifndef ICCLIENT_MEMBER_H #define ICCLIENT_MEMBER_H +#include #include "typedefs.h" struct icclient_member_preferences { diff --git a/icclient/ord.h b/icclient/ord.h index a1dd4ea..eccc822 100644 --- a/icclient/ord.h +++ b/icclient/ord.h @@ -19,21 +19,19 @@ struct icclient_ord_order { extern "C" { #endif - void icclient_ord_init(struct icclient_ord_order *order); - /*! - * \brief For putting an item to a cart. - * \param sku The SKU of the item to order. - * \param catalog A pointer to the catalog from which the item is. - * \param orderptr A pointer to pointer to the order. - */ - void icclient_ord_order(const char *sku, const struct icclient_catalog *catalog, - struct icclient_ord_order **orderptr); - void icclient_ord_checkout(struct icclient_ord_order *order, - struct icclient_member *member); - void icclient_ord_free(struct icclient_ord_order *order); +/*! + * \brief For putting an item to a cart. + * \param sku The SKU of the item to order. + * \param catalog The catalog from which the item is. + * \param order The address of an order instance. + */ +void icclient_ord_order(const char *sku, const struct icclient_catalog *catalog, + struct icclient_ord_order **order); +void icclient_ord_checkout(const struct icclient_ord_order *order, const struct icclient_member *member); +void icclient_ord_free(struct icclient_ord_order *order); #ifdef __cplusplus } #endif -#endif // ICCLIENT_ORD_H +#endif -- cgit v1.2.3