diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-07-11 11:48:19 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-07-11 11:48:19 +0800 |
commit | c0fba9db9290fb30884b9c4f8d847212164e3b50 (patch) | |
tree | a3a1124b200840ea28ec1b475c8cd305bd47af82 /icclient | |
parent | 1a1f3c047d36dd59958d3dba6e4fa690d2178fec (diff) |
Move order function to ord namespace
Diffstat (limited to 'icclient')
-rw-r--r-- | icclient/client.h | 11 | ||||
-rw-r--r-- | icclient/ord.h | 8 |
2 files changed, 9 insertions, 10 deletions
diff --git a/icclient/client.h b/icclient/client.h index ee11a2a..60c60d4 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -3,7 +3,6 @@ struct icclient_product; struct icclient_catalog; -struct icclient_ord_order; #ifdef __cplusplus extern "C" { @@ -37,7 +36,7 @@ extern "C" { /*! * \brief For fetching data about a specific product. - * \param sku The SKU of the item to order. + * \param sku The SKU of the product. * \param handler A pointer to a cURL write function callback. * \param productptr A pointer to pointer to the product to store the data. */ @@ -45,14 +44,6 @@ extern "C" { size_t (*handler)(void *, size_t, size_t, void *), struct icclient_product **productptr); - /*! - * \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_order(const char *sku, const struct icclient_catalog *catalog, - struct icclient_ord_order **orderptr); void icclient_page(const char *path, size_t (*handler)(void *, size_t, size_t, void *), void **dataptr); diff --git a/icclient/ord.h b/icclient/ord.h index 638880a..5195e81 100644 --- a/icclient/ord.h +++ b/icclient/ord.h @@ -19,6 +19,14 @@ 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_free(struct icclient_ord_order *order); #ifdef __cplusplus |