summaryrefslogtreecommitdiffstats
path: root/discover/udev.h
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-04-12 15:11:53 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-06-30 15:29:20 +0800
commitd7ce19907ff585e7fb6b950a40bd638d49c96a27 (patch)
tree16ce0e186e9a99a676fc925465823fe744b71d03 /discover/udev.h
parent4414db4f4442009008ef15658bd4df2349c62ec7 (diff)
downloadpetitboot-d7ce19907ff585e7fb6b950a40bd638d49c96a27.zip
petitboot-d7ce19907ff585e7fb6b950a40bd638d49c96a27.tar.gz
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 <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/udev.h')
-rw-r--r--discover/udev.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/discover/udev.h b/discover/udev.h
index afdbbe1..db17c45 100644
--- a/discover/udev.h
+++ b/discover/udev.h
@@ -1,29 +1,11 @@
#ifndef _UDEV_H
#define _UDEV_H
-enum udev_action {
- UDEV_ACTION_ADD,
- UDEV_ACTION_REMOVE,
-};
-
-struct udev_event {
- enum udev_action action;
- char *device;
-
- struct param {
- char *name;
- char *value;
- } *params;
- int n_params;
-};
-
struct udev;
struct device_handler;
struct udev *udev_init(struct device_handler *handler);
int udev_trigger(struct udev *udev);
-
void udev_destroy(struct udev *udev);
-const char *udev_event_param(struct udev_event *event, const char *name);
#endif /* _UDEV_H */
OpenPOWER on IntegriCloud