]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
766cd081 LP |
2 | /*** |
3 | This file is part of systemd. | |
4 | ||
5 | Copyright 2012 Lennart Poettering | |
6 | ||
7 | systemd is free software; you can redistribute it and/or modify it | |
8 | under the terms of the GNU Lesser General Public License as published by | |
9 | the Free Software Foundation; either version 2.1 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | systemd is distributed in the hope that it will be useful, but | |
13 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | Lesser General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU Lesser General Public License | |
18 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
19 | ***/ | |
20 | ||
21 | #include "output-mode.h" | |
22 | #include "string-table.h" | |
23 | ||
24 | static const char *const output_mode_table[_OUTPUT_MODE_MAX] = { | |
25 | [OUTPUT_SHORT] = "short", | |
29a753df | 26 | [OUTPUT_SHORT_FULL] = "short-full", |
766cd081 | 27 | [OUTPUT_SHORT_ISO] = "short-iso", |
7e563bfc | 28 | [OUTPUT_SHORT_ISO_PRECISE] = "short-iso-precise", |
766cd081 LP |
29 | [OUTPUT_SHORT_PRECISE] = "short-precise", |
30 | [OUTPUT_SHORT_MONOTONIC] = "short-monotonic", | |
bb321ed9 | 31 | [OUTPUT_SHORT_UNIX] = "short-unix", |
766cd081 LP |
32 | [OUTPUT_VERBOSE] = "verbose", |
33 | [OUTPUT_EXPORT] = "export", | |
34 | [OUTPUT_JSON] = "json", | |
35 | [OUTPUT_JSON_PRETTY] = "json-pretty", | |
36 | [OUTPUT_JSON_SSE] = "json-sse", | |
37 | [OUTPUT_CAT] = "cat" | |
38 | }; | |
39 | ||
40 | DEFINE_STRING_TABLE_LOOKUP(output_mode, OutputMode); |