chiark / gitweb /
client: add a very basic Vala command line tool
[elogind.git] / device.h
index e2597f710dec01f9ec43905a401d9633e3deb89d..be7c06ea15bdff3966564a8d1bd0fce8b534481e 100644 (file)
--- 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