From: Jeremy Kerr Date: Wed, 1 May 2013 00:49:54 +0000 (+0800) Subject: lib: Add boot_status type & protocol definitions X-Git-Tag: v1.0.0~674 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=ab4ca06537f10b768b2e81a178273e9509de0b07 lib: Add boot_status type & protocol definitions Add an initial definition for boot status messages sent to clients Signed-off-by: Jeremy Kerr --- 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 */