chiark / gitweb /
tree-wide: drop 'This file is part of systemd' blurb
[elogind.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 #if 0 /// UNNEEDED by elogind
13 bool log_facility_unshifted_is_valid(int faciliy);
14 #endif // 0
15
16 int log_level_to_string_alloc(int i, char **s);
17 int log_level_from_string(const char *s);
18 #if 0 /// UNNEEDED by elogind
19 bool log_level_is_valid(int level);
20
21 int syslog_parse_priority(const char **p, int *priority, bool with_facility);
22 #endif // 0