summaryrefslogtreecommitdiff
path: root/admin.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 22:12:36 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 22:12:36 +0800
commit4aef78b56e9ee5f51ce80171288242c8881842f0 (patch)
tree9ab4c915bc5bdadd05adfe6693f497bf23c7b299 /admin.c
parent71e1c7fc557e68743c4a8028b2d6675639be16cc (diff)
Rename fetch to response
Diffstat (limited to 'admin.c')
-rw-r--r--admin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin.c b/admin.c
index 57d88ff..1bda169 100644
--- a/admin.c
+++ b/admin.c
@@ -3,14 +3,14 @@
#include "login.h"
#include "icclient/admin.h"
-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 *))
{
login(username, password, NULL, "MMLogin", handler, (void (*)(void *))callback);
}
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 *))
{
request(handler, NULL, &(struct body){ 13, {
{ "mv_todo", "set" },
@@ -31,7 +31,7 @@ void icclient_admin_new_admin(const char *username, const char *password, const
}
void icclient_admin_new_item(const char *description, const char *comment, const char *price, const char *image_path,
- void (*handler)(icclient_fetch_t *))
+ void (*handler)(icclient_response *))
{
request(handler, NULL, &(struct body){ 15, {
{ "mv_click", "process_filter" },
@@ -59,7 +59,7 @@ void icclient_admin_new_item(const char *description, const char *comment, const
}}, "%s", "admin/item_edit");
}
-void icclient_admin_logout(struct icclient_admin *admin, void (*handler)(icclient_fetch_t *))
+void icclient_admin_logout(struct icclient_admin *admin, void (*handler)(icclient_response *))
{
request(handler, NULL, NULL, "%s", "admin/login");
if (admin->name)