event: Make strings const
[petitboot] / discover / event.h
index 20585f2525d4a5e492fb3f2871462a2565bf652f..900ced892d11738939dad4381fd4241c4c7208ca 100644 (file)
@@ -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;
 };