1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00

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

This commit is contained in:
Felipe Sateler 2018-05-15 14:12:22 -04:00
parent f2bd752215
commit 90a8f0b9a9
2 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,8 @@ typedef enum CGroupIPAccountingMetric {
_CGROUP_IP_ACCOUNTING_METRIC_INVALID = -1, _CGROUP_IP_ACCOUNTING_METRIC_INVALID = -1,
} CGroupIPAccountingMetric; } CGroupIPAccountingMetric;
#include "unit.h" typedef struct Unit Unit;
typedef struct Manager Manager;
void cgroup_context_init(CGroupContext *c); void cgroup_context_init(CGroupContext *c);
void cgroup_context_done(CGroupContext *c); void cgroup_context_done(CGroupContext *c);

View File

@ -9,6 +9,7 @@
#include "sd-bus.h" #include "sd-bus.h"
#include "unit.h"
#include "cgroup.h" #include "cgroup.h"
extern const sd_bus_vtable bus_cgroup_vtable[]; extern const sd_bus_vtable bus_cgroup_vtable[];