summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-16 23:17:21 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-16 23:17:21 +0800
commit54079689a77536bf43a76b851a7a82f3ce884254 (patch)
tree4567e4135bdc2c2c26d39a15e7ac1eb27fd9a677 /icclient
parenta9f1c29a36e1a98c04a9cfc04b0a38aaef48bc9e (diff)
Nested struct can't be understood by C++ (at least gnu++14)
Diffstat (limited to 'icclient')
-rw-r--r--icclient/admin.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/icclient/admin.h b/icclient/admin.h
index dad603d..b7089a9 100644
--- a/icclient/admin.h
+++ b/icclient/admin.h
@@ -1,16 +1,18 @@
#ifndef ICCLIENT_ADMIN_H
#define ICCLIENT_ADMIN_H
+enum icclient_admin_group {
+ ICCLIENT_ADMIN_GROUP_CONTENT,
+ ICCLIENT_ADMIN_GROUP_MERCH,
+ ICCLIENT_ADMIN_GROUP_ORDERS
+};
+
struct icclient_admin {
char *username;
char *password;
char *name;
bool super;
- enum icclient_admin_group {
- ICCLIENT_ADMIN_GROUP_CONTENT,
- ICCLIENT_ADMIN_GROUP_MERCH,
- ICCLIENT_ADMIN_GROUP_ORDERS
- } group;
+ enum icclient_admin_group group;
};
#ifdef __cplusplus