X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=device.h;fp=device.h;h=b9ca22d1983c8696bcfc7a5d7e1abbdb9208f927;hb=6326a423e7d3df2062bf29a4e9710aeecac89411;hp=30b8915c16f16f22cfbf7c02bd7402d30d563d21;hpb=d2b9fd2bb971b3b7a23acdfa1748d6810629c94c;p=elogind.git diff --git a/device.h b/device.h index 30b8915c1..b9ca22d19 100644 --- a/device.h +++ b/device.h @@ -31,7 +31,8 @@ typedef struct Device Device; typedef enum DeviceState { DEVICE_DEAD, DEVICE_AVAILABLE, - _DEVICE_STATE_MAX + _DEVICE_STATE_MAX, + _DEVICE_STATE_INVALID = -1 } DeviceState; struct Device { @@ -39,7 +40,6 @@ struct Device { DeviceState state; - /* A single device can be created by multiple sysfs objects */ char *sysfs; };