discover: simplify handler switch statement
[petitboot] / discover / event.h
index 20585f2525d4a5e492fb3f2871462a2565bf652f..91575ccd0de02004b94ff032566841e7c528e1b3 100644 (file)
@@ -4,11 +4,13 @@
 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 {