X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fdevice.h;h=a05c3d37b06735cd73d40876e9c5c7c6b9fc4008;hp=5757c9139d9470e7ec1a74ed5d7e88b45477a409;hb=d657c51f14601d0235434ffb78cf6ac0f27cc83c;hpb=8fe914ec81d9f57bcc083036f528b00119ed2e3b diff --git a/src/device.h b/src/device.h index 5757c9139..a05c3d37b 100644 --- a/src/device.h +++ b/src/device.h @@ -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,17 +36,17 @@ typedef enum DeviceState { } DeviceState; struct Device { - Meta meta; - - DeviceState state; + Unit meta; char *sysfs; - /* In order to be able to distuingish dependencies on + /* 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;