diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-28 13:05:03 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-28 13:05:03 +0800 |
| commit | bffd7c68508f793fc00c7453850668f7c654e1d0 (patch) | |
| tree | 98dc2a70514b221b1b4d9ab2026b4400f212da2e /client.cxx | |
| parent | 4ec7c925e46cebe461cf6c8b21c35b58afb96c78 (diff) | |
The app should be able to accept the catalog in QICClient's form
Diffstat (limited to 'client.cxx')
| -rw-r--r-- | client.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -14,11 +14,11 @@ namespace ICClient { icclient_cleanup(); } - void Client::allProducts(icclient_catalog** catalogptr - , size_t (*callback)(void*, size_t, size_t, void*)) + void Client::allProducts(size_t (*handler)(void*, size_t, size_t, void*)) { - icclient_allproducts(catalogptr, callback); - emit gotAllProducts(*catalogptr); + icclient_catalog* catalog = nullptr; + icclient_allproducts(&catalog, handler); + emit gotAllProducts(catalog); } void Client::logIn(QString const& username, QString const& password) |