summaryrefslogtreecommitdiff
path: root/interchange
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-16 07:07:00 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-16 07:07:00 +0800
commit5ada0f76cc310c97d0cf8791ac321d9ac8a2a81e (patch)
tree30b9fbbd001a6d8c7aa72feeef03f6d1d4957d89 /interchange
parent5f242cff9c418526cf88427afd6a74f56751f9b6 (diff)
Re-add failpage parameter
Diffstat (limited to 'interchange')
-rw-r--r--interchange/admin.h3
-rw-r--r--interchange/member.h22
2 files changed, 16 insertions, 9 deletions
diff --git a/interchange/admin.h b/interchange/admin.h
index d0e47d7..50a0957 100644
--- a/interchange/admin.h
+++ b/interchange/admin.h
@@ -21,7 +21,8 @@ struct interchange_admin {
extern "C" {
#endif
-void interchange_admin_login(const char *username, const char *password, void (*handler)(interchange_response *),
+void interchange_admin_login(const char *username, const char *password,
+ const char *failpage, void (*handler)(interchange_response *),
void (*callback)(struct interchange_admin *));
void interchange_admin_new_admin(const char *username, const char *password, const char *name, bool super,
enum interchange_admin_group group, void (*handler)(interchange_response *));
diff --git a/interchange/member.h b/interchange/member.h
index 0e9ca91..b44b1f5 100644
--- a/interchange/member.h
+++ b/interchange/member.h
@@ -63,14 +63,20 @@ struct interchange_member {
extern "C" {
#endif
- void interchange_member_newaccount(const char *username, const char *password, const char *verify,
- void (*handler)(interchange_response *), void (*callback)(struct interchange_member *));
- void interchange_member_login(const char *username, const char *password, void (*handler)(interchange_response *),
- void (*callback)(struct interchange_member *));
- void interchange_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 interchange_member_changepassword(const char *password_old, const char *password, const char *verify);
- void interchange_member_logout(struct interchange_member *member);
+void interchange_member_newaccount(const char *username, const char *password,
+ const char *verify, const char *failpage,
+ void (*handler)(interchange_response *),
+ void (*callback)(struct interchange_member *));
+void interchange_member_login(const char *username, const char *password,
+ const char *failpage, void (*handler)(interchange_response *),
+ void (*callback)(struct interchange_member *));
+void interchange_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 interchange_member_changepassword(const char *password_old,
+ const char *password, const char *verify);
+void interchange_member_logout(struct interchange_member *member);
#ifdef __cplusplus
}