diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-14 16:28:40 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-14 16:35:24 +0000 |
commit | adb8ec96f2918fa7b39722ead6b2fe949fc3a7c5 (patch) | |
tree | dbef270f0250d5152b72c56f203deacc8e46da6b /src/basic/util.h | |
parent | 75d73dc9d08c39ca5e413e4045daf1de61ea7ee6 (diff) |
util: add functions for validating syslog level and facility
Diffstat (limited to 'src/basic/util.h')
-rw-r--r-- | src/basic/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/util.h b/src/basic/util.h index 79c7ad1b39..2544ad0830 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -456,9 +456,11 @@ int sigchld_code_from_string(const char *s) _pure_; int log_facility_unshifted_to_string_alloc(int i, char **s); int log_facility_unshifted_from_string(const char *s); +bool log_facility_unshifted_is_valid(int faciliy); int log_level_to_string_alloc(int i, char **s); int log_level_from_string(const char *s); +bool log_level_is_valid(int level); int sched_policy_to_string_alloc(int i, char **s); int sched_policy_from_string(const char *s); |