diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-12-29 08:45:06 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-12-29 08:45:06 +0800 |
commit | 7079898ae28c6cc417ba8eadc4bd2466886bbc63 (patch) | |
tree | 965396fd4bffca3a6dd5770bd95aa282aed26930 /qicclient | |
parent | 043999c4774a5b8bec758f101d2fca62bd64aca1 (diff) |
Add parameters for handler and user pointers
to login related functions.
These are the cURL write function and data respectively.
Diffstat (limited to 'qicclient')
-rw-r--r-- | qicclient/client.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qicclient/client.hxx b/qicclient/client.hxx index 47f25fb..0fb01f8 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -5,6 +5,7 @@ struct icclient_catalog; struct icclient_ord_order; +struct icclient_user; namespace ICClient { @@ -21,7 +22,9 @@ namespace ICClient { , void* userdata)); void order(icclient_ord_order** orderPtr, QString const& sku , icclient_catalog* catalog); - void logIn(QString const& username + void logIn(size_t (*handler)(void*, size_t, size_t, void*) + , icclient_user* user + , QString const& username , QString const& password , QString const& successPage = nullptr , QString const& nextPage = nullptr |