summaryrefslogtreecommitdiffstats
path: root/src/core/slice.h
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2018-05-15 20:17:34 +0200
committerFelipe Sateler <fsateler@debian.org>2018-05-15 20:24:34 +0200
commit57b7a260c20f58a5c5d9c1e1aacde50646863919 (patch)
tree2c0321e30ee80d5502024b30d09aa99405660ec5 /src/core/slice.h
parentcore: Break circular dependency between unit.h and cgroup.h (diff)
downloadsystemd-57b7a260c20f58a5c5d9c1e1aacde50646863919.tar.xz
systemd-57b7a260c20f58a5c5d9c1e1aacde50646863919.zip
core: undo the dependency inversion between unit.h and all unit types
Diffstat (limited to 'src/core/slice.h')
-rw-r--r--src/core/slice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/slice.h b/src/core/slice.h
index 7d48fafa3a..0ab479467c 100644
--- a/src/core/slice.h
+++ b/src/core/slice.h
@@ -7,6 +7,8 @@
Copyright 2013 Lennart Poettering
***/
+#include "unit.h"
+
typedef struct Slice Slice;
struct Slice {
@@ -18,3 +20,5 @@ struct Slice {
};
extern const UnitVTable slice_vtable;
+
+DEFINE_CAST(SLICE, Slice);