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 */
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