X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fevent.h;h=2d83ad99b359b7a68a59d8c9e6ba36e9b9df6b05;hp=70cc8fc3c15d3da7e39436e0c527696de7d1eced;hb=9e869ebe3a5127575105d82c4d289d95cbed2db9;hpb=19dab336ae13f0476bfbf0db34f1329a802eeb8e diff --git a/discover/event.h b/discover/event.h index 70cc8fc..2d83ad9 100644 --- a/discover/event.h +++ b/discover/event.h @@ -10,7 +10,11 @@ enum event_type { enum event_action { EVENT_ACTION_ADD = 20, EVENT_ACTION_REMOVE, - EVENT_ACTION_CONF, + EVENT_ACTION_URL, + EVENT_ACTION_DHCP, + EVENT_ACTION_BOOT, + EVENT_ACTION_SYNC, + EVENT_ACTION_PLUGIN, EVENT_ACTION_MAX, }; @@ -19,14 +23,15 @@ struct event { enum event_action action; const char *device; - struct param { - const char *name; - const char *value; + struct event_param { + 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 */