From 95a566908a5e02c51bd2af6b468df3fb9ad1bf75 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 30 Jan 2014 16:32:21 +0800 Subject: discover: Add DEVICE_TYPE_ANY for matching any device Currently, If we want disable all but a specific device type from default boot, we need to add a negative priority for all other devices. This change adds a DEVICE_TYPE_ANY definition, to allow a simpler way to express "only boot a specific type" by default behaviour. Signed-off-by: Jeremy Kerr --- ui/test/discover-test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/test/discover-test.c') diff --git a/ui/test/discover-test.c b/ui/test/discover-test.c index 576f293..363a289 100644 --- a/ui/test/discover-test.c +++ b/ui/test/discover-test.c @@ -12,6 +12,8 @@ static const char *device_type_string(enum device_type type) return "network"; case DEVICE_TYPE_OPTICAL: return "optical"; + case DEVICE_TYPE_ANY: + return "any"; case DEVICE_TYPE_UNKNOWN: return "unknown"; } -- cgit v1.2.1