]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: Break circular dependency between unit.h and cgroup.h
authorFelipe Sateler <fsateler@debian.org>
Tue, 15 May 2018 18:12:22 +0000 (14:12 -0400)
committerFelipe Sateler <fsateler@debian.org>
Tue, 15 May 2018 18:23:32 +0000 (14:23 -0400)
src/core/cgroup.h
src/core/dbus-cgroup.h

index b8d1a094674adcdc2fddccd5bc746886e78ffbfa..ef3ee14ad0e1e5dfc4aa7742f4377d46255bbbfc 100644 (file)
@@ -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);
index c1c41759e39b38a5e7572d3e0e727dd793e28ea4..b0cd63ebc30b3965ee5bc5aca6be200135f87184 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "sd-bus.h"
 
+#include "unit.h"
 #include "cgroup.h"
 
 extern const sd_bus_vtable bus_cgroup_vtable[];