diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-07-17 07:35:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-07-17 17:20:57 +0200 |
commit | 25277cd7fbd77e4c8b20572570aa77c7da9abcc2 (patch) | |
tree | 36360a3e8de671074573176ee6702465724620d7 /src/shared/logs-show.h | |
parent | b694b00b450673f4bc2d47aebeb0c091e66d1b25 (diff) |
logs: Adapt interface in log-show.c (output_journal)
In preparation for adding more output switches, convert a series of
flags arguments into one flag variable.
Diffstat (limited to 'src/shared/logs-show.h')
-rw-r--r-- | src/shared/logs-show.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h index f8a9d406bd..beade06a78 100644 --- a/src/shared/logs-show.h +++ b/src/shared/logs-show.h @@ -39,7 +39,13 @@ typedef enum OutputMode { _OUTPUT_MODE_INVALID = -1 } OutputMode; -int output_journal(sd_journal *j, OutputMode mode, unsigned line, unsigned n_columns, bool show_all); +typedef enum OutputFlags { + OUTPUT_SHOW_ALL = 1 << 0, + OUTPUT_MONOTONIC_MODE = 1 << 1, +} OutputFlags; + +int output_journal(sd_journal *j, OutputMode mode, unsigned line, + unsigned n_columns, OutputFlags flags); int show_journal_by_unit( const char *unit, |