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