]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/output-mode.h
tree-wide: remove Lennart's copyright lines
[thirdparty/systemd.git] / src / shared / output-mode.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
9bdbc2e2
LN
2#pragma once
3
766cd081
LP
4#include "macro.h"
5
9bdbc2e2
LN
6typedef enum OutputMode {
7 OUTPUT_SHORT,
29a753df 8 OUTPUT_SHORT_FULL,
44bc6e1f 9 OUTPUT_SHORT_ISO,
7e563bfc 10 OUTPUT_SHORT_ISO_PRECISE,
f02d8367
ZJS
11 OUTPUT_SHORT_PRECISE,
12 OUTPUT_SHORT_MONOTONIC,
bb321ed9 13 OUTPUT_SHORT_UNIX,
9bdbc2e2
LN
14 OUTPUT_VERBOSE,
15 OUTPUT_EXPORT,
16 OUTPUT_JSON,
17 OUTPUT_JSON_PRETTY,
18 OUTPUT_JSON_SSE,
19 OUTPUT_CAT,
49805b3d 20 OUTPUT_WITH_UNIT,
9bdbc2e2
LN
21 _OUTPUT_MODE_MAX,
22 _OUTPUT_MODE_INVALID = -1
23} OutputMode;
24
0ff308c8
LP
25/* The output flags definitions are shared by the logs and process tree output. Some apply to both, some only to the
26 * logs output, others only to the process tree output. */
27
9bdbc2e2
LN
28typedef enum OutputFlags {
29 OUTPUT_SHOW_ALL = 1 << 0,
30 OUTPUT_FOLLOW = 1 << 1,
31 OUTPUT_WARN_CUTOFF = 1 << 2,
32 OUTPUT_FULL_WIDTH = 1 << 3,
33 OUTPUT_COLOR = 1 << 4,
ea6c2dd1
LP
34 OUTPUT_CATALOG = 1 << 5,
35 OUTPUT_BEGIN_NEWLINE = 1 << 6,
9fd29044 36 OUTPUT_UTC = 1 << 7,
0ff308c8 37 OUTPUT_KERNEL_THREADS = 1 << 8,
991e274b 38 OUTPUT_NO_HOSTNAME = 1 << 9,
9bdbc2e2 39} OutputFlags;
766cd081
LP
40
41const char* output_mode_to_string(OutputMode m) _const_;
42OutputMode output_mode_from_string(const char *s) _pure_;