summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interchange/member.h8
-rw-r--r--member.c5
2 files changed, 13 insertions, 0 deletions
diff --git a/interchange/member.h b/interchange/member.h
index 3aa4f7b..3b33e6b 100644
--- a/interchange/member.h
+++ b/interchange/member.h
@@ -70,6 +70,14 @@ void interchange_member_newaccount(const char *username, const char *password,
void interchange_member_login(const char *username, const char *password,
const char *failpage, void (*handler)(interchange_response *),
void (*callback)(struct interchange_member *));
+
+/*!
+ * \brief For getting member account information.
+ * \param handler A pointer to the function when a custom handler is needed to
+ * arrange the data into the member instance.
+*/
+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,
diff --git a/member.c b/member.c
index a896d95..8ac2618 100644
--- a/member.c
+++ b/member.c
@@ -19,6 +19,11 @@ void interchange_member_login(const char *username, const char *password,
(void (*)(void *))callback);
}
+void interchange_member_account(void (*handler)(interchange_response *))
+{
+ request(handler, NULL, NULL, "%s", "member/account");
+}
+
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,