diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-05-01 08:49:54 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-05-06 09:02:12 +0800 |
commit | ab4ca06537f10b768b2e81a178273e9509de0b07 (patch) | |
tree | 006b501896ca903632d3b3173ea11aeed549ac92 /lib/types/types.h | |
parent | 851f58e3623c539833295b4a50834d18b65c4cd8 (diff) | |
download | talos-petitboot-ab4ca06537f10b768b2e81a178273e9509de0b07.tar.gz talos-petitboot-ab4ca06537f10b768b2e81a178273e9509de0b07.zip |
lib: Add boot_status type & protocol definitions
Add an initial definition for boot status messages sent to clients
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/types/types.h')
-rw-r--r-- | lib/types/types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/types/types.h b/lib/types/types.h index fb53826..90b23c3 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -37,4 +37,14 @@ struct boot_command { char *boot_args; }; +struct boot_status { + enum { + BOOT_STATUS_INFO, + BOOT_STATUS_ERROR, + } type; + char *message; + char *detail; + int progress; +}; + #endif /* _TYPES_H */ |