summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/logs-show.h')
-rw-r--r--src/shared/logs-show.h12
1 files changed, 12 insertions, 0 deletions
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 <stdbool.h>
+#include <unistd.h>
+#include <sys/types.h>
#include <systemd/sd-journal.h>
@@ -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,