chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build-sys: move .pc files next to the matching sources
[elogind.git]
/
src
/
logs-show.h
diff --git
a/src/logs-show.h
b/src/logs-show.h
index f83df069cf65d8f93cec7a329eb586e13da1cf75..d3f3c759603c6ce7ac557e27abedcc8a7aa76de5 100644
(file)
--- a/
src/logs-show.h
+++ b/
src/logs-show.h
@@
-24,26
+24,32
@@
#include <stdbool.h>
#include <stdbool.h>
-#include "sd-journal.h"
+#include <systemd/sd-journal.h>
+
#include "util.h"
#include "util.h"
-typedef enum
output_m
ode {
+typedef enum
OutputM
ode {
OUTPUT_SHORT,
OUTPUT_VERBOSE,
OUTPUT_EXPORT,
OUTPUT_JSON,
OUTPUT_SHORT,
OUTPUT_VERBOSE,
OUTPUT_EXPORT,
OUTPUT_JSON,
- _OUTPUT_MODE_MAX
-} output_mode;
+ _OUTPUT_MODE_MAX,
+ _OUTPUT_MODE_INVALID = -1
+} OutputMode;
-int output_journal(sd_journal *j,
output_m
ode mode, unsigned line, bool show_all);
+int output_journal(sd_journal *j,
OutputM
ode mode, unsigned line, bool show_all);
-int show_journal_by_
service
(
- const char *
service
,
-
output_m
ode mode,
+int show_journal_by_
unit
(
+ const char *
unit
,
+
OutputM
ode mode,
const char *prefix,
unsigned n_columns,
usec_t not_before,
unsigned how_many,
const char *prefix,
unsigned n_columns,
usec_t not_before,
unsigned how_many,
- bool show_all);
+ bool show_all,
+ bool follow);
+
+const char* output_mode_to_string(OutputMode m);
+OutputMode output_mode_from_string(const char *s);
#endif
#endif