From a3b91bf175b9d51fdd3674112e60a773f13c8ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 20 Jun 2020 11:24:12 +0800 Subject: Move product freeing implementation to product's own implementation --- icclient/client.h | 1 - icclient/product.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'icclient') diff --git a/icclient/client.h b/icclient/client.h index 995c948..4a9ac6a 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -73,7 +73,6 @@ extern "C" { size_t (*handler)(void *contents, size_t size, size_t nmemb, void *userdata), void **dataptr); - void icclient_freeproduct(struct icclient_product *product); void icclient_freecatalog(struct icclient_catalog *catalog); void icclient_cleanup(); diff --git a/icclient/product.h b/icclient/product.h index 4d7f0c7..ba999b3 100644 --- a/icclient/product.h +++ b/icclient/product.h @@ -19,4 +19,14 @@ struct icclient_product { struct icclient_product_crosssell *crosssell; }; +#ifdef __cplusplus +extern "C" { +#endif + + void icclient_product_free(struct icclient_product *product); + +#ifdef __cplusplus +} +#endif + #endif // ICCLIENT_PRODUCT_H -- cgit v1.2.3