discover/grub2: Ignore sign-compare warning for generated code
[petitboot] / discover / event.h
index 91575ccd0de02004b94ff032566841e7c528e1b3..8dee13b560f689cacc46aeb3cbe5cdcc1da233b9 100644 (file)
@@ -10,13 +10,16 @@ enum event_type {
 enum event_action {
        EVENT_ACTION_ADD = 20,
        EVENT_ACTION_REMOVE,
+       EVENT_ACTION_URL,
+       EVENT_ACTION_CONF,
+       EVENT_ACTION_DHCP,
        EVENT_ACTION_MAX,
 };
 
 struct event {
        enum event_type type;
        enum event_action action;
-       char *device;
+       const char *device;
 
        struct param {
                char *name;
@@ -27,5 +30,6 @@ struct event {
 
 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 */