aboutsummaryrefslogtreecommitdiffstats
path: root/set.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-12-07 21:47:25 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2011-12-07 21:47:25 +0000
commit06b58933ad0f46995c2a676671f92a335dfdfe05 (patch)
tree8ae8e65299193bbdeeb1c36c97e0bc2dc2b8999d /set.h
parentaee8c19adbaffb8fe189c626d7e188e5ea008b0d (diff)
Merging non-SASL authentication patch from #863. This also implements
hidden-default settings, which means a setting is hidden unless it was changed from the default. This seems like appropriate behaviour for something as obscure as this.
Diffstat (limited to 'set.h')
-rw-r--r--set.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/set.h b/set.h
index 8f3028c4..f4f56f88 100644
--- a/set.h
+++ b/set.h
@@ -48,6 +48,7 @@ typedef enum
SET_NULL_OK = 0x0100,
SET_HIDDEN = 0x0200,
SET_PASSWORD = 0x0400,
+ SET_HIDDEN_DEFAULT = 0x0800,
} set_flags_t;
typedef struct set
@@ -97,6 +98,9 @@ int set_setint( set_t **head, const char *key, int value );
void set_del( set_t **head, const char *key );
int set_reset( set_t **head, const char *key );
+/* returns true if a setting shall be shown to the user */
+int set_isvisible( set_t *set );
+
/* Two very useful generic evaluators. */
char *set_eval_int( set_t *set, char *value );
char *set_eval_bool( set_t *set, char *value );