X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=device.h;h=be7c06ea15bdff3966564a8d1bd0fce8b534481e;hp=e2597f710dec01f9ec43905a401d9633e3deb89d;hb=5630af71d72a2fa8142886ca2fb37e69a1906bca;hpb=5cb5a6ffc33667c93e9bc3572534dcaa684046e3 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