diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 15:41:54 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 15:41:54 +0800 |
commit | 143f5b64f187497af728a6d921c599dcc99ed807 (patch) | |
tree | ba7264b8748c53c57697f9a1c9bf34db279ed468 /member.c | |
parent | 4cd6fdb93eca409a76b0af860d9a0599b2f95f53 (diff) |
Fix the way libcurl has been used
Diffstat (limited to 'member.c')
-rw-r--r-- | member.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -60,7 +60,7 @@ icclient_member *initialise(const char *username, const char *password) icclient_member *icclient_member_newaccount(const char *username, const char *password, const char *verify, const char *successpage, const char *nextpage, - const char *failpage, icclient_handler handler) + const char *failpage, void (*handler)(icclient_fetch_t *)) { icclient_member *member = initialise(username, password); login(username, password, verify, "NewAccount", successpage, nextpage, failpage, handler, member); @@ -68,7 +68,7 @@ icclient_member *icclient_member_newaccount(const char *username, const char *pa } icclient_member *icclient_member_login(const char *username, const char *password, - const char *successpage, const char *nextpage, const char *failpage, icclient_handler handler) + const char *successpage, const char *nextpage, const char *failpage, void (*handler)(icclient_fetch_t *)) { icclient_member *member = initialise(username, password); login(username, password, NULL, "Login", successpage, nextpage, failpage, handler, member); @@ -79,7 +79,7 @@ void icclient_member_account(const char *fname, const char *lname, const char *a const char *address2, const char *city, const char *state, const char *zip, const char *email, const char *phone_day) { - request(NULL, NULL, &(struct icclient_request_data){ 13, { + request(NULL, NULL, &(struct body){ 13, { { "mv_form_profile", "account_change" }, { "mv_todo", "return" }, { "mv_nextpage", "member/account" }, @@ -98,7 +98,7 @@ void icclient_member_account(const char *fname, const char *lname, const char *a void icclient_member_changepassword(const char *password_old, const char *password, const char *verify) { - request(NULL, NULL, &(struct icclient_request_data){ 6, { + request(NULL, NULL, &(struct body){ 6, { { "mv_action", "return" }, { "mv_check", "Change_password" }, { "mv_successpage", "member/service" }, |