From 7b793150f96a6fe6033ac1390a663b1b62be2df6 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 18 Sep 2013 11:03:17 +0800 Subject: types: Add device_type to struct device Signed-off-by: Jeremy Kerr --- lib/types/types.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/types') diff --git a/lib/types/types.h b/lib/types/types.h index 9fed7aa..bb4b23c 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -4,8 +4,16 @@ #include #include +enum device_type { + DEVICE_TYPE_NETWORK, + DEVICE_TYPE_DISK, + DEVICE_TYPE_OPTICAL, + DEVICE_TYPE_UNKNOWN, +}; + struct device { char *id; + enum device_type type; char *name; char *description; char *icon_file; -- cgit v1.2.1