Use static array for parsers
[petitboot] / discover / udev.h
index c30adc9005466a356176b5a13194e421d3121934..db17c45e45f1cdc3f1b91bea01f4ef4d540297bb 100644 (file)
@@ -1,26 +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(void);
-
+struct udev *udev_init(struct device_handler *handler);
+int udev_trigger(struct udev *udev);
 void udev_destroy(struct udev *udev);
 
 #endif /* _UDEV_H */