diff options
author | Felipe Sateler <fsateler@debian.org> | 2018-05-15 20:17:34 +0200 |
---|---|---|
committer | Felipe Sateler <fsateler@debian.org> | 2018-05-15 20:24:34 +0200 |
commit | 57b7a260c20f58a5c5d9c1e1aacde50646863919 (patch) | |
tree | 2c0321e30ee80d5502024b30d09aa99405660ec5 /src/core/device.h | |
parent | core: Break circular dependency between unit.h and cgroup.h (diff) | |
download | systemd-57b7a260c20f58a5c5d9c1e1aacde50646863919.tar.xz systemd-57b7a260c20f58a5c5d9c1e1aacde50646863919.zip |
core: undo the dependency inversion between unit.h and all unit types
Diffstat (limited to 'src/core/device.h')
-rw-r--r-- | src/core/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/device.h b/src/core/device.h index d52700b66f..f188640c59 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -7,6 +7,8 @@ Copyright 2010 Lennart Poettering ***/ +#include "unit.h" + typedef struct Device Device; typedef enum DeviceFound { @@ -37,3 +39,5 @@ extern const UnitVTable device_vtable; int device_found_node(Manager *m, const char *node, bool add, DeviceFound found, bool now); bool device_shall_be_bound_by(Unit *device, Unit *u); + +DEFINE_CAST(DEVICE, Device); |