From de4cd3867876e3b7a79a9c72a4e70914dfbfa5eb 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: Thu, 9 Jan 2020 19:17:20 +0800 Subject: Init function documentation --- icclient/client.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/icclient/client.h b/icclient/client.h index 56db8fd..4a25d5b 100644 --- a/icclient/client.h +++ b/icclient/client.h @@ -10,7 +10,14 @@ struct icclient_ord_order; extern "C" { #endif + /*! + * \brief A function that needs to be run first. + * \param url Server root URL. + * \param certificate Path to the CA certificate file. + * \return True if the initialisation works, false otherwise. + */ bool icclient_init(const char *url, const char *certificate); + void icclient_allproducts(size_t (*handler)(void *contents, size_t size , size_t nmemb, void *userdata) , struct icclient_catalog **catalogptr); -- cgit v1.2.3