X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fevent.h;h=70cc8fc3c15d3da7e39436e0c527696de7d1eced;hb=25a7c442028ed3d2d75a554cfa5da7b1ac4724bb;hp=20585f2525d4a5e492fb3f2871462a2565bf652f;hpb=d7ce19907ff585e7fb6b950a40bd638d49c96a27;p=petitboot diff --git a/discover/event.h b/discover/event.h index 20585f2..70cc8fc 100644 --- a/discover/event.h +++ b/discover/event.h @@ -4,21 +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_CONF, + EVENT_ACTION_MAX, }; struct event { enum event_type type; enum event_action action; - char *device; + const char *device; struct param { - char *name; - char *value; + const char *name; + const char *value; } *params; int n_params; };