diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-04 18:33:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-04 18:33:36 +0100 |
commit | df50185b43916926a72246ab3a80875eda7ad2a3 (patch) | |
tree | abc859fb7e4e28dab3cd870a66638232365aedca /src/logs-show.h | |
parent | fd8ee359a014916ac62ae2b58f6736ccb48c6d4e (diff) |
journal: beef up journal output of systemctl and journalctl
Diffstat (limited to 'src/logs-show.h')
-rw-r--r-- | src/logs-show.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/logs-show.h b/src/logs-show.h index f83df069cf..5cf1a6369b 100644 --- a/src/logs-show.h +++ b/src/logs-show.h @@ -27,23 +27,28 @@ #include "sd-journal.h" #include "util.h" -typedef enum output_mode { +typedef enum OutputMode { OUTPUT_SHORT, OUTPUT_VERBOSE, OUTPUT_EXPORT, OUTPUT_JSON, - _OUTPUT_MODE_MAX -} output_mode; + _OUTPUT_MODE_MAX, + _OUTPUT_MODE_INVALID = -1 +} OutputMode; -int output_journal(sd_journal *j, output_mode mode, unsigned line, bool show_all); +int output_journal(sd_journal *j, OutputMode mode, unsigned line, bool show_all); -int show_journal_by_service( - const char *service, - output_mode mode, +int show_journal_by_unit( + const char *unit, + OutputMode mode, const char *prefix, unsigned n_columns, usec_t not_before, unsigned how_many, - bool show_all); + bool show_all, + bool follow); + +const char* output_mode_to_string(OutputMode m); +OutputMode output_mode_from_string(const char *s); #endif |