From fdc2f14e4f120a5b638a5666606593be1006c009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 14 Jun 2021 16:50:29 +0800 Subject: Conform to updated icclient_init --- client.cxx | 10 +++++----- qicclient.hxx | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client.cxx b/client.cxx index 7b91e2d..ae6df8a 100644 --- a/client.cxx +++ b/client.cxx @@ -6,17 +6,17 @@ static QICClient::Client* client; -static void handle_results(icclient_fetch_t* fetch) +static void handleResults(icclient_fetch_t* fetch) { client->emitResults(fetch); } namespace QICClient { - Client::Client(char const* url, char const* certificate) + Client::Client(char const* sampleURL, char const* image_Dir, char const* certificate) { client = this; - icclient_init(url, certificate); + icclient_init(sampleURL, image_Dir, certificate); } Client::~Client() @@ -28,14 +28,14 @@ namespace QICClient { { icclient_results(prodGroup.toLatin1().constData(), [](icclient_catalog* catalog) { icclient_free_catalog(catalog); - }, handle_results); + }, handleResults); } void Client::allProducts() { icclient_allproducts([](icclient_catalog* catalog) { icclient_free_catalog(catalog); - }, handle_results); + }, handleResults); } void Client::emitResults(icclient_fetch_t* fetch) diff --git a/qicclient.hxx b/qicclient.hxx index f74510c..7f1ae92 100644 --- a/qicclient.hxx +++ b/qicclient.hxx @@ -17,10 +17,11 @@ namespace QICClient { public: /*! * \brief Constructor. - * \param url Server root URL. + * \param sampleURL The value of the SAMPLEURL setting in products/variable.txt. + * \param image_Dir The value of the IMAGE_DIR setting in products/variable.txt. * \param certificate Path to the CA certificate file. */ - Client(char const* url, char const* certificate = nullptr); + Client(char const* sampleURL, char const* image_Dir, char const* certificate = nullptr); ~Client(); void emitResults(icclient_fetch_t* fetch); /*! -- cgit v1.2.3