summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-01 08:49:54 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-06 09:02:12 +0800
commitab4ca06537f10b768b2e81a178273e9509de0b07 (patch)
tree006b501896ca903632d3b3173ea11aeed549ac92 /lib
parent851f58e3623c539833295b4a50834d18b65c4cd8 (diff)
downloadpetitboot-ab4ca06537f10b768b2e81a178273e9509de0b07.zip
petitboot-ab4ca06537f10b768b2e81a178273e9509de0b07.tar.gz
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')
-rw-r--r--lib/pb-protocol/pb-protocol.h1
-rw-r--r--lib/types/types.h10
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h
index 35e96f0..4451700 100644
--- a/lib/pb-protocol/pb-protocol.h
+++ b/lib/pb-protocol/pb-protocol.h
@@ -17,6 +17,7 @@ enum pb_protocol_action {
PB_PROTOCOL_ACTION_DEVICE_REMOVE = 0x3,
/* PB_PROTOCOL_ACTION_BOOT_OPTION_REMOVE = 0x4, */
PB_PROTOCOL_ACTION_BOOT = 0x5,
+ PB_PROTOCOL_ACTION_STATUS = 0x6,
};
struct pb_protocol_message {
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 */
OpenPOWER on IntegriCloud