diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-07-12 20:08:31 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-07-12 20:08:31 +0800 |
| commit | 3f5ece56ba0aa55be5c6a7973866ffda432de1ce (patch) | |
| tree | d7db0fbe47dd7f6deecd55b829430e111ed88569 /login.h | |
| parent | f2cdda353b0da0ec19679ac8753fbe2d17471fd9 (diff) | |
login functions return users
Diffstat (limited to 'login.h')
| -rw-r--r-- | login.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -3,12 +3,10 @@ #include "request.h" -struct icclient_member; - -inline void login(size_t (*handler)(void *, size_t, size_t, void *), - struct icclient_member *member, const char *username, const char *password, - const char *verify, const char *click, const char *successpage, - const char *nextpage, const char *failpage) +inline void login(const char *username, const char *password, const char *verify, + const char *click, const char *successpage, const char *nextpage, + const char *failpage, size_t (*handler)(void *, size_t, size_t, void *), + void *user) { struct curl_httppost *post, *last = NULL; curl_formadd(&post, &last, @@ -44,7 +42,7 @@ inline void login(size_t (*handler)(void *, size_t, size_t, void *), CURLFORM_PTRCONTENTS, failpage, CURLFORM_END); last = NULL; - request(handler, member, post, "%s", "process"); + request(handler, user, post, "%s", "process"); curl_formfree(post); post = NULL; } |