X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fevent.h;h=900ced892d11738939dad4381fd4241c4c7208ca;hp=20585f2525d4a5e492fb3f2871462a2565bf652f;hb=7acd3374490fd4fe035edcbd2c1393961e6090db;hpb=d7ce19907ff585e7fb6b950a40bd638d49c96a27 diff --git a/discover/event.h b/discover/event.h index 20585f2..900ced8 100644 --- a/discover/event.h +++ b/discover/event.h @@ -4,21 +4,23 @@ 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_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; };