summaryrefslogtreecommitdiffstats
path: root/src/journal/journald-server.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-04 19:38:18 +0200
committerLennart Poettering <lennart@poettering.net>2019-05-09 20:14:20 +0200
commit1ec23479e1b85b1f1bc29851ad934bd14d19b11c (patch)
treed95506d685b757d1c15f6a3ac022cc6ee24d66f3 /src/journal/journald-server.h
parentfuzzer: add varlink fuzzer (diff)
downloadsystemd-1ec23479e1b85b1f1bc29851ad934bd14d19b11c.tar.xz
systemd-1ec23479e1b85b1f1bc29851ad934bd14d19b11c.zip
journald: also offer flush/rotate/sync as varlink method calls
This makes the operations previously available via asynchronous signals also available as regular varlink method calls, i.e. with sane completion.
Diffstat (limited to 'src/journal/journald-server.h')
-rw-r--r--src/journal/journald-server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
index 5f0b3dd4ac..6ce9f269ff 100644
--- a/src/journal/journald-server.h
+++ b/src/journal/journald-server.h
@@ -17,6 +17,7 @@ typedef struct Server Server;
#include "list.h"
#include "prioq.h"
#include "time-util.h"
+#include "varlink.h"
typedef enum Storage {
STORAGE_AUTO,
@@ -166,6 +167,8 @@ struct Server {
ClientContext *my_context; /* the context of journald itself */
ClientContext *pid1_context; /* the context of PID 1 */
+
+ VarlinkServer *varlink_server;
};
#define SERVER_MACHINE_ID(s) ((s)->machine_id_field + STRLEN("_MACHINE_ID="))