chiark / gitweb /
02778affb699e0fe5f42efbe8f7d7ac83cd895e0
[elogind.git] / src / basic / syslog-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5   This file is part of systemd.
6
7   Copyright 2010 Lennart Poettering
8 ***/
9
10 #include <stdbool.h>
11
12 int log_facility_unshifted_to_string_alloc(int i, char **s);
13 int log_facility_unshifted_from_string(const char *s);
14 #if 0 /// UNNEEDED by elogind
15 bool log_facility_unshifted_is_valid(int faciliy);
16 #endif // 0
17
18 int log_level_to_string_alloc(int i, char **s);
19 int log_level_from_string(const char *s);
20 #if 0 /// UNNEEDED by elogind
21 bool log_level_is_valid(int level);
22
23 int syslog_parse_priority(const char **p, int *priority, bool with_facility);
24 #endif // 0