X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Flogs-show.h;h=187ee595fbafeccc3c2ef26ac60671964cae81bb;hb=f32d2db140150b9d38684a699c9875b6e24ca27c;hp=5a4c9f24d7bad7009c724e049a39b59a427ffc2e;hpb=886a64fe6903bc1ccde5c7af0eac6786918c8e49;p=elogind.git diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h index 5a4c9f24d..187ee595f 100644 --- a/src/shared/logs-show.h +++ b/src/shared/logs-show.h @@ -25,7 +25,7 @@ #include #include -#include +#include "systemd/sd-journal.h" #include "util.h" #include "output-mode.h" @@ -35,7 +35,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 +58,8 @@ int show_journal_by_unit( unsigned how_many, uid_t uid, OutputFlags flags, - bool system); + bool system, + 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_;