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 /discover/sysinfo.h | |
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 'discover/sysinfo.h')
-rw-r--r-- | discover/sysinfo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/discover/sysinfo.h b/discover/sysinfo.h new file mode 100644 index 0000000..2764784 --- /dev/null +++ b/discover/sysinfo.h @@ -0,0 +1,16 @@ +#ifndef SYSINFO_H +#define SYSINFO_H + +#include <types/types.h> + +struct discover_server; + +const struct system_info *system_info_get(void); + +void system_info_register_interface(unsigned hwaddr_size, uint8_t *hwaddr, + const char *name); + +void system_info_init(struct discover_server *server); + +#endif /* SYSINFO_H */ + |