From 1a6c43e94649b3f271502a88655f63ea85168fec Mon Sep 17 00:00:00 2001 From: Mirco Tischler Date: Thu, 17 Jan 2013 18:55:07 +0100 Subject: logs-show: add show_journal_by_user_unit Print the journal for a user session unit. For now this filters by _SYSTEMD_USER_UNIT and USER_UNIT and additionally _UID. --- src/shared/logs-show.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/shared/logs-show.h') diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h index 6c32aa7a72..a835112c99 100644 --- a/src/shared/logs-show.h +++ b/src/shared/logs-show.h @@ -22,6 +22,8 @@ ***/ #include +#include +#include #include @@ -44,6 +46,16 @@ int show_journal_by_unit( unsigned how_many, OutputFlags flags); +int show_journal_by_user_unit( + FILE *f, + const char *unit, + OutputMode mode, + unsigned n_columns, + usec_t not_before, + unsigned how_many, + uid_t uid, + OutputFlags flags); + void json_escape( FILE *f, const char* p, -- cgit v1.2.3-54-g00ecf