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