discover/udev: copy dev->device path from udev devnode
[petitboot] / discover / event.h
index 70cc8fc3c15d3da7e39436e0c527696de7d1eced..98ece11c73a8bd3bcda0362b8789d30baa3cb452 100644 (file)
@@ -11,6 +11,7 @@ enum event_action {
        EVENT_ACTION_ADD = 20,
        EVENT_ACTION_REMOVE,
        EVENT_ACTION_CONF,
+       EVENT_ACTION_DHCP,
        EVENT_ACTION_MAX,
 };
 
@@ -20,13 +21,14 @@ struct event {
        const char *device;
 
        struct param {
-               const char *name;
-               const char *value;
+               char *name;
+               char *value;
        } *params;
        int n_params;
 };
 
 int event_parse_ad_message(struct event *event, char *buf, int len);
 const char *event_get_param(const struct event *event, const char *name);
+void event_set_param(struct event *event, const char *name, const char *value);
 
 #endif /* _PB_EVENT_H */