From 7115a02af0de188aa4b974dcb325f7adc11a9a2e 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: Thu, 17 Jun 2021 18:49:51 +0800 Subject: Conform to updated libicclient parameter positions swap --- client.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index 9abb081..a37ba01 100644 --- a/client.cxx +++ b/client.cxx @@ -32,26 +32,26 @@ namespace QICClient { void Client::results(QString const& prodGroup) { - icclient_results(prodGroup.toLatin1().constData(), [](icclient_catalog* catalog) { + icclient_results(prodGroup.toLatin1().constData(), handleResults, [](icclient_catalog* catalog) { icclient_free_catalog(catalog); - }, handleResults); + }); } /* void Client::results(QString const& prodGroup, void (*handler)(icclient_fetch_t*)) { - icclient_results(prodGroup.toLatin1().constData(), callback, handler); + icclient_results(prodGroup.toLatin1().constData(), handler, callback); } */ void Client::allProducts() { - icclient_allproducts([](icclient_catalog* catalog) { + icclient_allproducts(handleResults, [](icclient_catalog* catalog) { icclient_free_catalog(catalog); - }, handleResults); + }); } void Client::allproducts(void (*handler)(icclient_fetch_t* fetch)) { - icclient_allproducts(callback, handler); + icclient_allproducts(handler, callback); } void Client::emitResults(icclient_fetch_t* fetch) -- cgit v1.2.3