1 /* SPDX-License-Identifier: LGPL-2.1+ */
3 #include "output-mode.h"
4 #include "string-table.h"
6 static const char *const output_mode_table[_OUTPUT_MODE_MAX] = {
7 [OUTPUT_SHORT] = "short",
8 [OUTPUT_SHORT_FULL] = "short-full",
9 [OUTPUT_SHORT_ISO] = "short-iso",
10 [OUTPUT_SHORT_ISO_PRECISE] = "short-iso-precise",
11 [OUTPUT_SHORT_PRECISE] = "short-precise",
12 [OUTPUT_SHORT_MONOTONIC] = "short-monotonic",
13 [OUTPUT_SHORT_UNIX] = "short-unix",
14 [OUTPUT_VERBOSE] = "verbose",
15 [OUTPUT_EXPORT] = "export",
16 [OUTPUT_JSON] = "json",
17 [OUTPUT_JSON_PRETTY] = "json-pretty",
18 [OUTPUT_JSON_SSE] = "json-sse",
20 [OUTPUT_WITH_UNIT] = "with-unit",
23 DEFINE_STRING_TABLE_LOOKUP(output_mode, OutputMode);