diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-09 12:02:08 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-10-09 17:40:04 +0800 |
commit | bc4114e2235163bd88456c25cc0a908d86151f93 (patch) | |
tree | 47e7e1674e33a5f138ed3a390c3dc02e2d9f3133 /lib/types | |
parent | ab7076882bc49d895209bf0ecb84e4003e034dd9 (diff) | |
download | talos-petitboot-bc4114e2235163bd88456c25cc0a908d86151f93.tar.gz talos-petitboot-bc4114e2235163bd88456c25cc0a908d86151f93.zip |
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 <jk@ozlabs.org>
Diffstat (limited to 'lib/types')
-rw-r--r-- | lib/types/types.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <stdbool.h> +#include <stdint.h> #include <list/list.h> 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 */ |