]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/output-mode.c
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / shared / output-mode.c
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 /***
3 This file is part of systemd.
4
5 Copyright 2012 Lennart Poettering
6 ***/
7
8 #include "output-mode.h"
9 #include "string-table.h"
10
11 static const char *const output_mode_table[_OUTPUT_MODE_MAX] = {
12 [OUTPUT_SHORT] = "short",
13 [OUTPUT_SHORT_FULL] = "short-full",
14 [OUTPUT_SHORT_ISO] = "short-iso",
15 [OUTPUT_SHORT_ISO_PRECISE] = "short-iso-precise",
16 [OUTPUT_SHORT_PRECISE] = "short-precise",
17 [OUTPUT_SHORT_MONOTONIC] = "short-monotonic",
18 [OUTPUT_SHORT_UNIX] = "short-unix",
19 [OUTPUT_VERBOSE] = "verbose",
20 [OUTPUT_EXPORT] = "export",
21 [OUTPUT_JSON] = "json",
22 [OUTPUT_JSON_PRETTY] = "json-pretty",
23 [OUTPUT_JSON_SSE] = "json-sse",
24 [OUTPUT_CAT] = "cat"
25 };
26
27 DEFINE_STRING_TABLE_LOOKUP(output_mode, OutputMode);