Fix: lttng: add-context: silence coverity warning
[lttng-tools.git] / src / bin / lttng / loglevel.h
CommitLineData
7e8f2e9c
JG
1/*
2 * Copyright (C) 2021 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8#ifndef _LTTNG_LOGLEVEL_UTILS_H
9#define _LTTNG_LOGLEVEL_UTILS_H
10
11#include <lttng/lttng.h>
12#include <common/macros.h>
13
48a40005
SM
14#ifdef __cplusplus
15extern "C" {
16#endif
17
7e8f2e9c
JG
18int loglevel_name_to_value(const char *name, enum lttng_loglevel *loglevel);
19
949f049b
SM
20bool loglevel_parse_range_string(const char *str,
21 enum lttng_loglevel *min,
22 enum lttng_loglevel *max);
23
7e8f2e9c
JG
24int loglevel_log4j_name_to_value(
25 const char *name, enum lttng_loglevel_log4j *loglevel);
26
949f049b
SM
27bool loglevel_log4j_parse_range_string(const char *str,
28 enum lttng_loglevel_log4j *min,
29 enum lttng_loglevel_log4j *max);
30
7e8f2e9c
JG
31int loglevel_jul_name_to_value(
32 const char *name, enum lttng_loglevel_jul *loglevel);
33
949f049b
SM
34bool loglevel_jul_parse_range_string(const char *str,
35 enum lttng_loglevel_jul *min,
36 enum lttng_loglevel_jul *max);
37
7e8f2e9c
JG
38int loglevel_python_name_to_value(
39 const char *name, enum lttng_loglevel_python *loglevel);
40
949f049b
SM
41bool loglevel_python_parse_range_string(const char *str,
42 enum lttng_loglevel_python *min,
43 enum lttng_loglevel_python *max);
44
85b05318
JR
45const char *loglevel_value_to_name(int loglevel);
46
85b05318
JR
47const char *loglevel_log4j_value_to_name(int loglevel);
48
85b05318
JR
49const char *loglevel_jul_value_to_name(int loglevel);
50
85b05318
JR
51const char *loglevel_python_value_to_name(int loglevel);
52
48a40005
SM
53#ifdef __cplusplus
54}
55#endif
56
7e8f2e9c 57#endif /* _LTTNG_LOGLEVEL_UTILS_H */
This page took 0.044164 seconds and 4 git commands to generate.