From 71e1c7fc557e68743c4a8028b2d6675639be16cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 17 Jun 2021 21:46:39 +0800 Subject: Make login functions asynchronous compatible --- icclient/member.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'icclient/member.h') diff --git a/icclient/member.h b/icclient/member.h index 3c6a41d..a1943a0 100644 --- a/icclient/member.h +++ b/icclient/member.h @@ -60,20 +60,17 @@ struct icclient_member { extern "C" { #endif - struct icclient_member *icclient_member_newaccount(const char *username, const char *password, const char *verify, - void (*handler)(icclient_fetch_t *)); - struct icclient_member *icclient_member_login(const char *username, const char *password, - void (*handler)(icclient_fetch_t *)); - void icclient_member_account(const char *fname, const char *lname, - const char *address1, const char *address2, const char *city, - const char *state, const char *zip, const char *email, - const char *phone_day); - void icclient_member_changepassword(const char *password_old, const char *password, - const char *verify); + void icclient_member_newaccount(const char *username, const char *password, const char *verify, + void (*handler)(icclient_fetch_t *), void (*callback)(struct icclient_member *)); + void icclient_member_login(const char *username, const char *password, void (*handler)(icclient_fetch_t *), + void (*callback)(struct icclient_member *)); + void icclient_member_account(const char *fname, const char *lname, const char *address1, const char *address2, + const char *city, const char *state, const char *zip, const char *email, const char *phone_day); + void icclient_member_changepassword(const char *password_old, const char *password, const char *verify); void icclient_member_logout(struct icclient_member *member); #ifdef __cplusplus } #endif -#endif // ICCLIENT_MEMBER_H +#endif -- cgit v1.2.3