summaryrefslogtreecommitdiff
path: root/src/shared/output-mode.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-07-23 20:22:30 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-11 17:25:27 +0200
commit8e04444385ddf6cbf9e172cc63e59a351ad39d74 (patch)
tree075d5f322fae930c9a72aef73329ff91e80119b3 /src/shared/output-mode.h
parent02619c033fdeda7f5021364defd97c201ff9e7cd (diff)
downloadsystemd-8e04444385ddf6cbf9e172cc63e59a351ad39d74.tar.gz
journalctl: port JSON output mode to new JSON API
Also, while we are at it, beef it up, by adding json-seq support (i.e. https://tools.ietf.org/html/rfc7464). This is particularly useful in conjunction with jq's --seq switch.
Diffstat (limited to 'src/shared/output-mode.h')
-rw-r--r--src/shared/output-mode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/output-mode.h b/src/shared/output-mode.h
index fe3903b3c5..3cbaeadde6 100644
--- a/src/shared/output-mode.h
+++ b/src/shared/output-mode.h
@@ -16,6 +16,7 @@ typedef enum OutputMode {
OUTPUT_JSON,
OUTPUT_JSON_PRETTY,
OUTPUT_JSON_SSE,
+ OUTPUT_JSON_SEQ,
OUTPUT_CAT,
OUTPUT_WITH_UNIT,
_OUTPUT_MODE_MAX,