X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fevent.h;h=1f6966c970ab54279b4d27747477dc1342b5a43d;hp=20585f2525d4a5e492fb3f2871462a2565bf652f;hb=33a0f544151f44bb58924ad281aaca2dc58fe561;hpb=d7ce19907ff585e7fb6b950a40bd638d49c96a27 diff --git a/discover/event.h b/discover/event.h index 20585f2..1f6966c 100644 --- a/discover/event.h +++ b/discover/event.h @@ -4,17 +4,24 @@ enum event_type { EVENT_TYPE_UDEV = 10, EVENT_TYPE_USER, + EVENT_TYPE_MAX, }; enum event_action { EVENT_ACTION_ADD = 20, EVENT_ACTION_REMOVE, + EVENT_ACTION_URL, + EVENT_ACTION_DHCP, + EVENT_ACTION_BOOT, + EVENT_ACTION_SYNC, + EVENT_ACTION_PLUGIN, + EVENT_ACTION_MAX, }; struct event { enum event_type type; enum event_action action; - char *device; + const char *device; struct param { char *name; @@ -25,5 +32,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 */