discover: Rename struct udev to struct pb_udev
[petitboot] / discover / udev.h
index afdbbe18667c1158e1f7523930e12e2f04f1b00a..2ea9090b31ed1a44458e6d3a6dc5320cfc818b5a 100644 (file)
@@ -1,29 +1,13 @@
 #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 pb_udev;
 struct device_handler;
+struct waitset;
 
-struct udev *udev_init(struct device_handler *handler);
-int udev_trigger(struct udev *udev);
-
-void udev_destroy(struct udev *udev);
+struct pb_udev *udev_init(struct waitset *waitset,
+       struct device_handler *handler);
+int udev_trigger(struct pb_udev *udev);
+void udev_destroy(struct pb_udev *udev);
 
-const char *udev_event_param(struct udev_event *event, const char *name);
 #endif /* _UDEV_H */