From bc4114e2235163bd88456c25cc0a908d86151f93 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 9 Oct 2013 12:02:08 +0800 Subject: Add system info messages Add a little infrastructure for communicating information about the system to the petitboot UIs. We just send some identifying info (type and identifier), as well as the interfaces. Signed-off-by: Jeremy Kerr --- lib/types/types.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/types') diff --git a/lib/types/types.h b/lib/types/types.h index bb4b23c..9bb800c 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -2,6 +2,7 @@ #define _TYPES_H #include +#include #include enum device_type { @@ -59,4 +60,18 @@ struct boot_status { int progress; }; +struct interface_info { + unsigned int hwaddr_size; + uint8_t *hwaddr; + char *name; +}; + +struct system_info { + char *type; + char *identifier; + struct interface_info **interfaces; + unsigned int n_interfaces; +}; + + #endif /* _TYPES_H */ -- cgit v1.2.1