core: Break circular dependency between unit.h and cgroup.h

This commit is contained in:
Felipe Sateler
2018-05-15 14:23:32 -04:00
parent f2bd752215
commit 90a8f0b9a9
2 changed files with 3 additions and 1 deletions
+2 -1
View 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);
+1
View File
@@ -9,6 +9,7 @@
#include "sd-bus.h"
#include "unit.h"
#include "cgroup.h"
extern const sd_bus_vtable bus_cgroup_vtable[];