X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fdevice.h;h=515db65644b144c42fe9d568e87a3d14aa0e29b6;hp=654499cfd7f0b528fdcdc9c1ac3c156ea72842ca;hb=2396fb04f78eaa9842c747e384218f0069446960;hpb=73608ed994efef7f00eac0b0275ab0f7bc218af5 diff --git a/src/device.h b/src/device.h index 654499cfd..515db6564 100644 --- a/src/device.h +++ b/src/device.h @@ -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;