diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-22 10:11:10 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-22 10:11:10 +0800 |
commit | 1f24bef71ff1087fab2bffb156314213f42ac962 (patch) | |
tree | 3b9646f3ed04f9dec25057781fb7c4b3810f6f31 /interchange | |
parent | 4e78c9596b8ea129952b669b091d1cde09a459dd (diff) |
Add handler to setaccount, & simplify member data
Diffstat (limited to 'interchange')
-rw-r--r-- | interchange/member.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/interchange/member.h b/interchange/member.h index 3b33e6b..0611861 100644 --- a/interchange/member.h +++ b/interchange/member.h @@ -78,10 +78,16 @@ void interchange_member_login(const char *username, const char *password, */ void interchange_member_account(void (*handler)(interchange_response *)); -void interchange_member_setaccount(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); +/*! + * \brief For setting member account information. + * \param member A pointer to a member instance whose members will be used in + * POST data. + * \param handler A pointer to the function when a custom handler is needed to + * arrange the data into the member instance. +*/ +void interchange_member_setaccount(const struct interchange_member *member, + void (*handler)(interchange_response *)); + void interchange_member_changepassword(const char *password_old, const char *password, const char *verify); void interchange_member_logout(struct interchange_member *member); |