diff options
Diffstat (limited to 'icclient')
-rw-r--r-- | icclient/admin.h | 3 | ||||
-rw-r--r-- | icclient/member.h | 19 | ||||
-rw-r--r-- | icclient/typedefs.h | 2 |
3 files changed, 11 insertions, 13 deletions
diff --git a/icclient/admin.h b/icclient/admin.h index 9756f40..e1acee9 100644 --- a/icclient/admin.h +++ b/icclient/admin.h @@ -19,7 +19,8 @@ struct icclient_admin { extern "C" { #endif - struct icclient_admin *icclient_admin_login(const char *username, const char *password, void (*handler)(icclient_fetch_t *)); + void icclient_admin_login(const char *username, const char *password, void (*handler)(icclient_fetch_t *), + void (*callback)(struct icclient_admin *)); void icclient_admin_new_admin(const char *username, const char *password, const char *name, bool super, enum icclient_admin_group group, void (*handler)(icclient_fetch_t *)); void icclient_admin_new_item(const char *description, const char *comment, const char *price, const char *image_path, 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 diff --git a/icclient/typedefs.h b/icclient/typedefs.h index fbfa0d0..ff5caca 100644 --- a/icclient/typedefs.h +++ b/icclient/typedefs.h @@ -27,7 +27,7 @@ typedef struct curl_httppost icclient_post; struct icclient_post_callback { icclient_post *post; - void (*callback)(icclient_fetch_t *); + void (*callback)(void *); }; #endif |