summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2018-05-15 20:12:22 +0200
committerFelipe Sateler <fsateler@debian.org>2018-05-15 20:23:32 +0200
commit90a8f0b9a999b4bbb5110066266fd6d807e04aa3 (patch)
tree1ac9938988086bf74695f0e6015831270f68987e /src
parentudev: create /dev/disk/by-label symlink for LUKS2 (#8998) (diff)
downloadsystemd-90a8f0b9a999b4bbb5110066266fd6d807e04aa3.tar.xz
systemd-90a8f0b9a999b4bbb5110066266fd6d807e04aa3.zip
core: Break circular dependency between unit.h and cgroup.h
Diffstat (limited to 'src')
-rw-r--r--src/core/cgroup.h3
-rw-r--r--src/core/dbus-cgroup.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index b8d1a09467..ef3ee14ad0 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -127,7 +127,8 @@ typedef enum CGroupIPAccountingMetric {
_CGROUP_IP_ACCOUNTING_METRIC_INVALID = -1,
} CGroupIPAccountingMetric;
-#include "unit.h"
+typedef struct Unit Unit;
+typedef struct Manager Manager;
void cgroup_context_init(CGroupContext *c);
void cgroup_context_done(CGroupContext *c);
diff --git a/src/core/dbus-cgroup.h b/src/core/dbus-cgroup.h
index c1c41759e3..b0cd63ebc3 100644
--- a/src/core/dbus-cgroup.h
+++ b/src/core/dbus-cgroup.h
@@ -9,6 +9,7 @@
#include "sd-bus.h"
+#include "unit.h"
#include "cgroup.h"
extern const sd_bus_vtable bus_cgroup_vtable[];