X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Flogs-show.h;h=569e1faa55acea78237ee278179f09e472c197dc;hb=17384d7f95169dad5f769431374fc2c08101206d;hp=5a4c9f24d7bad7009c724e049a39b59a427ffc2e;hpb=886a64fe6903bc1ccde5c7af0eac6786918c8e49;p=elogind.git diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h index 5a4c9f24d..569e1faa5 100644 --- a/src/shared/logs-show.h +++ b/src/shared/logs-show.h @@ -22,10 +22,9 @@ ***/ #include -#include #include -#include +#include "sd-journal.h" #include "util.h" #include "output-mode.h" @@ -35,7 +34,10 @@ 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, @@ -55,7 +57,9 @@ int show_journal_by_unit( unsigned how_many, uid_t uid, OutputFlags flags, - bool system); + int journal_open_flags, + bool system_unit, + bool *ellipsized); void json_escape( FILE *f, @@ -63,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_;