summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-18 22:31:27 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-18 22:34:42 +0200
commit240a5fe83e772d08d9e1f22e90163b37eea5ab45 (patch)
tree47e86857ac639baf49832e08fc7db8ed70c742cb /src/shared
parentd5c4ed623b3b83b8caaf6b26f5b4c8006ff372ac (diff)
journal: add ability to list unique fields to gatewayd
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/logs-show.c2
-rw-r--r--src/shared/logs-show.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index 28d12d3d4a..05895366e2 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -405,7 +405,7 @@ static int output_export(
return 0;
}
-static void json_escape(
+void json_escape(
FILE *f,
const char* p,
size_t l,
diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h
index 1b67876d8f..06082800c8 100644
--- a/src/shared/logs-show.h
+++ b/src/shared/logs-show.h
@@ -64,5 +64,11 @@ int show_journal_by_unit(
unsigned how_many,
OutputFlags flags);
+void json_escape(
+ FILE *f,
+ const char* p,
+ size_t l,
+ OutputFlags flags);
+
const char* output_mode_to_string(OutputMode m);
OutputMode output_mode_from_string(const char *s);