summaryrefslogtreecommitdiff
path: root/icclient/member.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 21:46:39 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 21:46:39 +0800
commit71e1c7fc557e68743c4a8028b2d6675639be16cc (patch)
tree3003226c02ab5c3bf8527e3bbb4b6d151a2af34b /icclient/member.h
parent0ca65138cf02d6c46e1857e911a142d08cdad761 (diff)
Make login functions asynchronous compatible
Diffstat (limited to 'icclient/member.h')
-rw-r--r--icclient/member.h19
1 files changed, 8 insertions, 11 deletions
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