summaryrefslogtreecommitdiffstats
path: root/src/core/core-varlink.h
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2022-10-05 09:12:53 +0200
committerAnita Zhang <the.anitazha@gmail.com>2022-10-14 10:59:12 +0200
commit658138f3af58b53c07a9b2f8cbb222c1eb4c7da9 (patch)
treed451783a743f76c2b9823c0a67e0536ecbb1bf31 /src/core/core-varlink.h
parentvarlink: refactor adding socket event source to the event loop (diff)
downloadsystemd-658138f3af58b53c07a9b2f8cbb222c1eb4c7da9.tar.xz
systemd-658138f3af58b53c07a9b2f8cbb222c1eb4c7da9.zip
core: refactor manager varlink init
Split out per-socket code into a separate function to use as part of serialize/deserialize in the next commit.
Diffstat (limited to 'src/core/core-varlink.h')
-rw-r--r--src/core/core-varlink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core-varlink.h b/src/core/core-varlink.h
index 20507a4187..7f810d1f25 100644
--- a/src/core/core-varlink.h
+++ b/src/core/core-varlink.h
@@ -6,6 +6,10 @@
int manager_varlink_init(Manager *m);
void manager_varlink_done(Manager *m);
+/* Creates a new VarlinkServer and binds methods. Does not set up sockets or attach events.
+ * Used for manager serialize/deserialize. */
+int manager_setup_varlink_server(Manager *m, VarlinkServer **ret_s);
+
/* The manager is expected to send an update to systemd-oomd if one of the following occurs:
* - The value of ManagedOOM*= properties change
* - A unit with ManagedOOM*= properties changes unit active state */