]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/core-varlink.h
core: split out cgroup specific state fields from Unit → CGroupRuntime
[thirdparty/systemd.git] / src / core / core-varlink.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "manager.h"
5
6 int manager_varlink_init(Manager *m);
7 void manager_varlink_done(Manager *m);
8
9 /* Creates a new VarlinkServer and binds methods. Does not set up sockets or attach events.
10 * Used for manager serialize/deserialize. */
11 int manager_setup_varlink_server(Manager *m, VarlinkServer **ret_s);
12
13 /* The manager is expected to send an update to systemd-oomd if one of the following occurs:
14 * - The value of ManagedOOM*= properties change
15 * - A unit with ManagedOOM*= properties changes unit active state */
16 int manager_varlink_send_managed_oom_update(Unit *u);