chiark / gitweb /
list: LIST_INSERT_BEFORE: update head if necessary (#4261)
[elogind.git] / src / basic / syslog-util.h
1 #pragma once
2
3 /***
4   This file is part of systemd.
5
6   Copyright 2010 Lennart Poettering
7
8   systemd is free software; you can redistribute it and/or modify it
9   under the terms of the GNU Lesser General Public License as published by
10   the Free Software Foundation; either version 2.1 of the License, or
11   (at your option) any later version.
12
13   systemd is distributed in the hope that it will be useful, but
14   WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16   Lesser General Public License for more details.
17
18   You should have received a copy of the GNU Lesser General Public License
19   along with systemd; If not, see <http://www.gnu.org/licenses/>.
20 ***/
21
22 #include <stdbool.h>
23
24 int log_facility_unshifted_to_string_alloc(int i, char **s);
25 int log_facility_unshifted_from_string(const char *s);
26 #if 0 /// UNNEEDED by elogind
27 bool log_facility_unshifted_is_valid(int faciliy);
28 #endif // 0
29
30 int log_level_to_string_alloc(int i, char **s);
31 int log_level_from_string(const char *s);
32 #if 0 /// UNNEEDED by elogind
33 bool log_level_is_valid(int level);
34
35 int syslog_parse_priority(const char **p, int *priority, bool with_facility);
36 #endif // 0