summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-16 22:32:10 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-16 22:32:10 +0800
commitadbe76047fc207eb09a2e03d4231e0713360140f (patch)
tree2e745687268c0464741275f7f4918b7edc94cc7a /icclient
parent33dcd889f48b1daed6bdf4d41a4f7463e64df27a (diff)
Create admin function
Diffstat (limited to 'icclient')
-rw-r--r--icclient/admin.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/icclient/admin.h b/icclient/admin.h
index cfc89da..dad603d 100644
--- a/icclient/admin.h
+++ b/icclient/admin.h
@@ -6,6 +6,11 @@ struct icclient_admin {
char *password;
char *name;
bool super;
+ enum icclient_admin_group {
+ ICCLIENT_ADMIN_GROUP_CONTENT,
+ ICCLIENT_ADMIN_GROUP_MERCH,
+ ICCLIENT_ADMIN_GROUP_ORDERS
+ } group;
};
#ifdef __cplusplus
@@ -16,12 +21,14 @@ extern "C" {
const char *password, const char *successpage,
const char *nextpage, const char *failpage,
void (*handler)(icclient_fetch_t *));
- void icclient_admin_newitem(const char *description, const char *comment,
- const char *price, const char *image_path);
- void icclient_admin_logout(struct icclient_admin *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,
+ void (*handler)(icclient_fetch_t *));
+ void icclient_admin_logout(struct icclient_admin *admin, void (*handler)(icclient_fetch_t *));
#ifdef __cplusplus
}
#endif
-#endif // ICCLIENT_ADMIN_H
+#endif