summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-01-09 19:17:20 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-01-09 19:17:20 +0800
commitde4cd3867876e3b7a79a9c72a4e70914dfbfa5eb (patch)
treeeb8da37f8293449d02b8d34595125e5db5867df7
parent7056eaa251df33e178c21e0fb29c6d65bc2c9147 (diff)
Init function documentation
-rw-r--r--icclient/client.h7
1 files changed, 7 insertions, 0 deletions
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);