summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-13 19:30:05 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-13 19:53:29 -0400
commit886a64fe6903bc1ccde5c7af0eac6786918c8e49 (patch)
treee8a8fd3318aa1e909ced2e38f84f052892a27c46 /src/shared/logs-show.h
parent7d7681f70bc8c2140092029ccada9f75510a176b (diff)
logs-show: export logic to add matches for units
After that functions which add matches, show_journal_by_unit and show_journal_by_user_unit, become nearly identical, so I merged them into one function.
Diffstat (limited to 'src/shared/logs-show.h')
-rw-r--r--src/shared/logs-show.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h
index a835112c99..5a4c9f24d7 100644
--- a/src/shared/logs-show.h
+++ b/src/shared/logs-show.h
@@ -37,16 +37,16 @@ int output_journal(
unsigned n_columns,
OutputFlags flags);
-int show_journal_by_unit(
- FILE *f,
+int add_matches_for_unit(
+ sd_journal *j,
+ const char *unit);
+
+int add_matches_for_user_unit(
+ sd_journal *j,
const char *unit,
- OutputMode mode,
- unsigned n_columns,
- usec_t not_before,
- unsigned how_many,
- OutputFlags flags);
+ uid_t uid);
-int show_journal_by_user_unit(
+int show_journal_by_unit(
FILE *f,
const char *unit,
OutputMode mode,
@@ -54,7 +54,8 @@ int show_journal_by_user_unit(
usec_t not_before,
unsigned how_many,
uid_t uid,
- OutputFlags flags);
+ OutputFlags flags,
+ bool system);
void json_escape(
FILE *f,