diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-05 17:10:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-05 17:30:43 +0100 |
commit | b18b8662154b46f03ddeac00e52d157c87d474e3 (patch) | |
tree | e9bbf8b325c9ce60d5e629e3e533b17edc82426f /src/resolve | |
parent | 38e5900fc6e77b595151ae8e1548c5aace406bf8 (diff) |
basic: add string table macros for "extended boolean" enums
In a couple of cases we maintain configuration settings that know an on
and off state, like a boolean, plus some additional states. We generally
parse them as booleans first, and if that fails check for specific
additional values.
This adds a generalized set of macros for parsing such settings, and
ports one use in resolved and another in networkd over to it.
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index 20955b3f6b..2241df70c2 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -1169,4 +1169,4 @@ static const char* const support_table[_SUPPORT_MAX] = { [SUPPORT_YES] = "yes", [SUPPORT_RESOLVE] = "resolve", }; -DEFINE_STRING_TABLE_LOOKUP(support, Support); +DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(support, Support, SUPPORT_YES); |