summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-17 07:35:07 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-17 17:20:58 +0200
commit085d71209ba32c1e4e72ec031536be892054352e (patch)
tree988bf6d68f4fdc147567d08e574a5a2d0ffa885f /src/shared/logs-show.h
parent25277cd7fbd77e4c8b20572570aa77c7da9abcc2 (diff)
logs: Adapt interface in log-show.c (show_journal_by_unit)
Convert more flag arguments into one flag variable.
Diffstat (limited to 'src/shared/logs-show.h')
-rw-r--r--src/shared/logs-show.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h
index beade06a78..44afaf306a 100644
--- a/src/shared/logs-show.h
+++ b/src/shared/logs-show.h
@@ -42,6 +42,8 @@ typedef enum OutputMode {
typedef enum OutputFlags {
OUTPUT_SHOW_ALL = 1 << 0,
OUTPUT_MONOTONIC_MODE = 1 << 1,
+ OUTPUT_FOLLOW = 1 << 2,
+ OUTPUT_WARN_CUTOFF = 1 << 3,
} OutputFlags;
int output_journal(sd_journal *j, OutputMode mode, unsigned line,
@@ -53,9 +55,7 @@ int show_journal_by_unit(
unsigned n_columns,
usec_t not_before,
unsigned how_many,
- bool show_all,
- bool follow,
- bool warn_cutoff);
+ OutputFlags flags);
const char* output_mode_to_string(OutputMode m);
OutputMode output_mode_from_string(const char *s);