From de4cd3867876e3b7a79a9c72a4e70914dfbfa5eb Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ 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.3