diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-29 21:19:58 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-29 21:19:58 +0800 |
| commit | dd94e52d98aa29e0273176e038864c13fbd4aa6b (patch) | |
| tree | 926590e7b82d85ff151d1e7cbef81e4cfe624338 /client.cxx | |
| parent | 8285dbcaa075ed2eb316b06f33ddf27f3a7f1e4b (diff) | |
Reorder results and flyPage parameters
Remove cURL handler parameter variables, and copy documentation from
libicclient.
Diffstat (limited to 'client.cxx')
| -rw-r--r-- | client.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -19,9 +19,8 @@ namespace ICClient { icclient_cleanup(); } - void Client::results(size_t (*handler)(void* contents, size_t size, - size_t nmemb, void* userdata), - QString const& prodGroup) + void Client::results(QString const& prodGroup, + size_t (*handler)(void*, size_t, size_t, void*)) { icclient_catalog* catalog = nullptr; icclient_results(prodGroup.toLatin1().constData(), handler, &catalog); @@ -35,9 +34,8 @@ namespace ICClient { if (catalog) emit gotResults(new Catalog{catalog}); } - void Client::flyPage(size_t (*handler)(void* contents, size_t size, - size_t nmemb, void* userdata), - QString const& sku) + void Client::flyPage(QString const& sku, + size_t (*handler)(void*, size_t, size_t, void*)) { icclient_product* product = nullptr; icclient_flypage(sku.toLatin1().constData(), handler, &product); |