]> git.ozlabs.org Git - petitboot/commitdiff
lib: Add boot_status type & protocol definitions
authorJeremy Kerr <jk@ozlabs.org>
Wed, 1 May 2013 00:49:54 +0000 (08:49 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 6 May 2013 01:02:12 +0000 (09:02 +0800)
Add an initial definition for boot status messages sent to clients

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/pb-protocol/pb-protocol.h
lib/types/types.h

index 35e96f0d1a7c510a25e44cdaf909fbe9858d6a93..44517001c749abef008f1dc970b05b6fa9e93b84 100644 (file)
@@ -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_DEVICE_REMOVE        = 0x3,
 /*     PB_PROTOCOL_ACTION_BOOT_OPTION_REMOVE   = 0x4, */
        PB_PROTOCOL_ACTION_BOOT                 = 0x5,
+       PB_PROTOCOL_ACTION_STATUS               = 0x6,
 };
 
 struct pb_protocol_message {
 };
 
 struct pb_protocol_message {
index fb53826902d7507e1f82d874c2fbc947167664d8..90b23c37a77446d0cda4b531869c6dee31eed343 100644 (file)
@@ -37,4 +37,14 @@ struct boot_command {
        char *boot_args;
 };
 
        char *boot_args;
 };
 
+struct boot_status {
+       enum {
+               BOOT_STATUS_INFO,
+               BOOT_STATUS_ERROR,
+       } type;
+       char    *message;
+       char    *detail;
+       int     progress;
+};
+
 #endif /* _TYPES_H */
 #endif /* _TYPES_H */