chiark / gitweb /
journald: allocate PAGE_SIZE bytes for selinux label length
[elogind.git] / src / device.h
index 654499cfd7f0b528fdcdc9c1ac3c156ea72842ca..a05c3d37b06735cd73d40876e9c5c7c6b9fc4008 100644 (file)
@@ -1,4 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
 #ifndef foodevicehfoo
 #define foodevicehfoo
@@ -36,11 +36,17 @@ typedef enum DeviceState {
 } DeviceState;
 
 struct Device {
-        Meta meta;
-
-        DeviceState state;
+        Unit meta;
 
         char *sysfs;
+
+        /* In order to be able to distinguish 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;