diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-16 17:21:51 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-31 13:04:18 +0200 |
commit | 889e396046a8a52c16beee7aa6395dc32f854fd1 (patch) | |
tree | 850e625f7651a2b42855f409a856bdd9526669c1 /src/shared/logs-show.h | |
parent | 9b972c9aab56292ac2934fd1942e1ba443a39df0 (diff) | |
download | systemd-889e396046a8a52c16beee7aa6395dc32f854fd1.tar.gz |
shared/logs-show: export show_journal()
This is a nice function to output some journal entries without much ado.
Diffstat (limited to 'src/shared/logs-show.h')
-rw-r--r-- | src/shared/logs-show.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h index 49caa4cb39..68e234a0ef 100644 --- a/src/shared/logs-show.h +++ b/src/shared/logs-show.h @@ -28,6 +28,15 @@ int show_journal_entry( char **output_fields, size_t highlight[2], bool *ellipsized); +int show_journal( + FILE *f, + sd_journal *j, + OutputMode mode, + unsigned n_columns, + usec_t not_before, + unsigned how_many, + OutputFlags flags, + bool *ellipsized); int add_match_this_boot(sd_journal *j, const char *machine); |