chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logs-show: export logic to add matches for units
[elogind.git]
/
src
/
shared
/
logs-show.h
diff --git
a/src/shared/logs-show.h
b/src/shared/logs-show.h
index a835112c99c50dab7de53e6b40ed2ffcb8e839e8..5a4c9f24d7bad7009c724e049a39b59a427ffc2e 100644
(file)
--- a/
src/shared/logs-show.h
+++ b/
src/shared/logs-show.h
@@
-37,16
+37,16
@@
int output_journal(
unsigned n_columns,
OutputFlags flags);
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,
const char *unit,
- OutputMode mode,
- unsigned n_columns,
- usec_t not_before,
- unsigned how_many,
- OutputFlags flags);
+ uid_t uid);
-int show_journal_by_u
ser_u
nit(
+int show_journal_by_unit(
FILE *f,
const char *unit,
OutputMode mode,
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,
usec_t not_before,
unsigned how_many,
uid_t uid,
- OutputFlags flags);
+ OutputFlags flags,
+ bool system);
void json_escape(
FILE *f,
void json_escape(
FILE *f,