summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
Diffstat (limited to 'icclient')
-rw-r--r--icclient/admin.h8
-rw-r--r--icclient/member.h4
-rw-r--r--icclient/typedefs.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/icclient/admin.h b/icclient/admin.h
index e1acee9..8f3c070 100644
--- a/icclient/admin.h
+++ b/icclient/admin.h
@@ -19,13 +19,13 @@ struct icclient_admin {
extern "C" {
#endif
- void 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_response *),
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 *));
+ enum icclient_admin_group group, void (*handler)(icclient_response *));
void icclient_admin_new_item(const char *description, const char *comment, const char *price, const char *image_path,
- void (*handler)(icclient_fetch_t *));
- void icclient_admin_logout(struct icclient_admin *admin, void (*handler)(icclient_fetch_t *));
+ void (*handler)(icclient_response *));
+ void icclient_admin_logout(struct icclient_admin *admin, void (*handler)(icclient_response *));
#ifdef __cplusplus
}
diff --git a/icclient/member.h b/icclient/member.h
index a1943a0..4e86bb2 100644
--- a/icclient/member.h
+++ b/icclient/member.h
@@ -61,8 +61,8 @@ extern "C" {
#endif
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 (*handler)(icclient_response *), void (*callback)(struct icclient_member *));
+ void icclient_member_login(const char *username, const char *password, void (*handler)(icclient_response *),
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);
diff --git a/icclient/typedefs.h b/icclient/typedefs.h
index ff5caca..73d8adf 100644
--- a/icclient/typedefs.h
+++ b/icclient/typedefs.h
@@ -9,7 +9,7 @@
#include <emscripten/fetch.h>
-typedef emscripten_fetch_t icclient_fetch_t;
+typedef emscripten_fetch_t icclient_response;
typedef char icclient_post;
#else
@@ -20,7 +20,7 @@ typedef struct {
void *userData;
char *data;
size_t numBytes;
-} icclient_fetch_t;
+} icclient_response;
typedef struct curl_httppost icclient_post;
#endif