]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/syslog-util.h
09dae9e83d251f0035d42d66f756eba98dc9b9e2
[thirdparty/systemd.git] / src / basic / syslog-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright 2010 Lennart Poettering
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);