]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/device.h
core: undo the dependency inversion between unit.h and all unit types
[thirdparty/systemd.git] / src / core / device.h
index d52700b66f66bf9ea452018e1d5f351bf7f0fbb6..f188640c59b673b5ad951f73ec6db47c1c7c96f3 100644 (file)
@@ -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);