Use static array for parsers
[petitboot] / discover / udev.h
index a23eef4861adbad27bc874d350977c4de0464ea4..db17c45e45f1cdc3f1b91bea01f4ef4d540297bb 100644 (file)
@@ -1,27 +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);
 
 #endif /* _UDEV_H */