summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 18:49:51 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 18:49:51 +0800
commit7115a02af0de188aa4b974dcb325f7adc11a9a2e (patch)
treebdaa796541dd1babc8a87ea0966c2a0e9f5a4043 /client.cxx
parent7931bc869d46b367e676948f142dabdc57b06c0d (diff)
Conform to updated libicclient parameter positions swap
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx12
1 files changed, 6 insertions, 6 deletions
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)