diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-17 18:49:51 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-17 18:49:51 +0800 |
commit | 7115a02af0de188aa4b974dcb325f7adc11a9a2e (patch) | |
tree | bdaa796541dd1babc8a87ea0966c2a0e9f5a4043 | |
parent | 7931bc869d46b367e676948f142dabdc57b06c0d (diff) |
Conform to updated libicclient parameter positions swap
-rw-r--r-- | client.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) |