X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=device.h;h=be7c06ea15bdff3966564a8d1bd0fce8b534481e;hb=9eba9da4bce4778b4d5dd43e2c41756976a1582b;hp=e2597f710dec01f9ec43905a401d9633e3deb89d;hpb=5cb5a6ffc33667c93e9bc3572534dcaa684046e3;p=elogind.git diff --git a/device.h b/device.h index e2597f710..be7c06ea1 100644 --- a/device.h +++ b/device.h @@ -5,7 +5,7 @@ typedef struct Device Device; -#include "name.h" +#include "unit.h" /* We simply watch devices, we cannot plug/unplug them. That * simplifies the state engine greatly */ @@ -21,9 +21,11 @@ struct Device { DeviceState state; /* A single device can be created by multiple sysfs objects */ - char **sysfs; + char *sysfs; }; -extern const NameVTable device_vtable; +extern const UnitVTable device_vtable; + +void device_fd_event(Manager *m, int events); #endif