]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
7ccbd1ae LP |
2 | #pragma once |
3 | ||
4 | /*** | |
7ccbd1ae | 5 | Copyright 2010 Lennart Poettering |
7ccbd1ae LP |
6 | ***/ |
7 | ||
8 | #include <stdbool.h> | |
9 | ||
10 | int log_facility_unshifted_to_string_alloc(int i, char **s); | |
11 | int log_facility_unshifted_from_string(const char *s); | |
12 | bool log_facility_unshifted_is_valid(int faciliy); | |
13 | ||
14 | int log_level_to_string_alloc(int i, char **s); | |
15 | int log_level_from_string(const char *s); | |
16 | bool log_level_is_valid(int level); | |
17 | ||
18 | int syslog_parse_priority(const char **p, int *priority, bool with_facility); |