chiark / gitweb /
log: properly open log target in the various utilities
[elogind.git] / src / device.h
index 654499cfd7f0b528fdcdc9c1ac3c156ea72842ca..515db65644b144c42fe9d568e87a3d14aa0e29b6 100644 (file)
@@ -38,9 +38,15 @@ typedef enum DeviceState {
 struct Device {
         Meta meta;
 
-        DeviceState state;
-
         char *sysfs;
+
+        /* In order to be able to distuingish dependencies on
+        different device nodes we might end up creating multiple
+        devices for the same sysfs path. We chain them up here. */
+
+        LIST_FIELDS(struct Device, same_sysfs);
+
+        DeviceState state;
 };
 
 extern const UnitVTable device_vtable;