summaryrefslogtreecommitdiffstats
path: root/lib/types
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-18 11:03:17 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-18 11:43:27 +0800
commit7b793150f96a6fe6033ac1390a663b1b62be2df6 (patch)
treee5969cfcdaacbb001544e02089444c2be13b4a7e /lib/types
parente17f6c7e1bcf7a5f67d0f1a51c39af0d8ab104d4 (diff)
downloadtalos-petitboot-7b793150f96a6fe6033ac1390a663b1b62be2df6.tar.gz
talos-petitboot-7b793150f96a6fe6033ac1390a663b1b62be2df6.zip
types: Add device_type to struct device
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/types')
-rw-r--r--lib/types/types.h8
1 files changed, 8 insertions, 0 deletions
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 <stdbool.h>
#include <list/list.h>
+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;
OpenPOWER on IntegriCloud