summaryrefslogtreecommitdiff
path: root/icclient/client.h
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-12-29 08:36:39 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-12-29 08:36:39 +0800
commit4c00d748c3c86cbb5039660c2a5bebac0c826386 (patch)
treeb83f96a57506561131af1209c4dfedb421a5c3cb /icclient/client.h
parent30d862751ce42ecf667d08c360009aca3aacc1f8 (diff)
Add parameters for handler and user pointers
to login related functions. These are the cURL write function and data respectively.
Diffstat (limited to 'icclient/client.h')
-rw-r--r--icclient/client.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/icclient/client.h b/icclient/client.h
index db38926..56db8fd 100644
--- a/icclient/client.h
+++ b/icclient/client.h
@@ -3,6 +3,7 @@
struct icclient_product;
struct icclient_catalog;
+struct icclient_user;
struct icclient_ord_order;
#ifdef __cplusplus
@@ -15,10 +16,16 @@ extern "C" {
, struct icclient_catalog **catalogptr);
void icclient_order(struct icclient_ord_order **orderptr, const char *sku
, struct icclient_catalog *catalog);
- void icclient_newaccount(const char *username, const char *password
+ void icclient_newaccount(size_t (*handler)(void *contents, size_t size
+ , size_t nmemb, void *userdata)
+ , struct icclient_user *user
+ , const char *username, const char *password
, const char *verify, const char *successpage
, const char *nextpage, const char *failpage);
- void icclient_login(const char *username, const char *password
+ void icclient_login(size_t (*handler)(void *contents, size_t size
+ , size_t nmemb, void *userdata)
+ , struct icclient_user *user
+ , const char *username, const char *password
, const char *successpage, const char *nextpage
, const char *failpage);
void icclient_logout();