From ab4ca06537f10b768b2e81a178273e9509de0b07 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 1 May 2013 08:49:54 +0800 Subject: [PATCH] lib: Add boot_status type & protocol definitions Add an initial definition for boot status messages sent to clients Signed-off-by: Jeremy Kerr --- lib/pb-protocol/pb-protocol.h | 1 + lib/types/types.h | 10 ++++++++++ 2 files changed, 11 insertions(+) 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 */ -- 2.39.2