chiark / gitweb /
remove unused variable
[elogind.git] / src / shared / logs-show.h
index 6c32aa7a7277ce7a0efa01b0c1e491b5ba47d834..3a99160f1eec91ba468dcbec071c09fa75257602 100644 (file)
@@ -22,6 +22,8 @@
 ***/
 
 #include <stdbool.h>
+#include <unistd.h>
+#include <sys/types.h>
 
 #include <systemd/sd-journal.h>
 
@@ -33,7 +35,19 @@ int output_journal(
                 sd_journal *j,
                 OutputMode mode,
                 unsigned n_columns,
-                OutputFlags flags);
+                OutputFlags flags,
+                bool *ellipsized);
+
+int add_match_this_boot(sd_journal *j, const char *machine);
+
+int add_matches_for_unit(
+                sd_journal *j,
+                const char *unit);
+
+int add_matches_for_user_unit(
+                sd_journal *j,
+                const char *unit,
+                uid_t uid);
 
 int show_journal_by_unit(
                 FILE *f,
@@ -42,7 +56,10 @@ int show_journal_by_unit(
                 unsigned n_columns,
                 usec_t not_before,
                 unsigned how_many,
-                OutputFlags flags);
+                uid_t uid,
+                OutputFlags flags,
+                bool system,
+                bool *ellipsized);
 
 void json_escape(
                 FILE *f,
@@ -50,5 +67,5 @@ void json_escape(
                 size_t l,
                 OutputFlags flags);
 
-const char* output_mode_to_string(OutputMode m);
-OutputMode output_mode_from_string(const char *s);
+const char* output_mode_to_string(OutputMode m) _const_;
+OutputMode output_mode_from_string(const char *s) _pure_;