aboutsummaryrefslogtreecommitdiffstats
path: root/set.h
diff options
context:
space:
mode:
authorDennis Kaarsemaker <dennis@kaarsemaker.net>2016-02-22 22:26:15 +0100
committerDennis Kaarsemaker <dennis@kaarsemaker.net>2016-03-23 07:44:13 +0100
commite41ba05c0a9002b30e9e2475f56fd207e856a9f8 (patch)
tree29392d95d252822f506d61ea9dfcf4c19f9f74f5 /set.h
parent3ac6d9fe93279d74d36a6bf2b6e2ba182ed3bf34 (diff)
Allow individual settings to be locked down
This allows a site admin who pregenerates configs to mark certain settings as untouchable, ensuring that users cannot mess up their settings too badly.
Diffstat (limited to 'set.h')
-rw-r--r--set.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/set.h b/set.h
index 3735d797..f0a51136 100644
--- a/set.h
+++ b/set.h
@@ -48,6 +48,7 @@ typedef enum {
SET_HIDDEN = 0x0200, /* Don't show up in setting lists. Mostly for internal storage. */
SET_PASSWORD = 0x0400, /* Value shows up in settings list as "********". */
SET_HIDDEN_DEFAULT = 0x0800, /* Hide unless changed from default. */
+ SET_LOCKED = 0x1000 /* Setting is locked, don't allow changing it */
} set_flags_t;
typedef struct set {