path: root/discover/device-handler.h
diff options
authorGeoff Levand <>2009-04-12 15:11:53 +0000
committerJeremy Kerr <>2009-06-30 15:29:20 +0800
commitd7ce19907ff585e7fb6b950a40bd638d49c96a27 (patch)
tree16ce0e186e9a99a676fc925465823fe744b71d03 /discover/device-handler.h
parent4414db4f4442009008ef15658bd4df2349c62ec7 (diff)
Make udev_event a generic event
The struct udev_event can be used as a generic event, so rename it struct event and move it from udev.h into a new file event.h. Also, rename the emums UDEV_ACTION_ADD and UDEV_ACTION_REMOVE to ACTION_UDEV_ADD and ACTION_UDEV_REMOVE. Signed-off-by: Geoff Levand <> Signed-off-by: Jeremy Kerr <>
Diffstat (limited to 'discover/device-handler.h')
1 files changed, 3 insertions, 4 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index 8a469e0..796b328 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -5,14 +5,14 @@
struct device_handler;
struct discover_server;
-struct udev_event;
+struct event;
struct device;
struct discover_context {
char *id;
char *device_path;
char *mount_path;
- struct udev_event *event;
+ struct event *event;
struct device *device;
char **links;
int n_links;
@@ -28,7 +28,6 @@ int device_handler_get_device_count(const struct device_handler *handler);
const struct device *device_handler_get_device(
const struct device_handler *handler, unsigned int index);
-int device_handler_event(struct device_handler *handler,
- struct udev_event *event);
+int device_handler_event(struct device_handler *handler, struct event *event);
#endif /* _DEVICE_HANDLER_H */
OpenPOWER on IntegriCloud