From efab1ab1bef78711e764f52e49c518f140d6ea67 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 21 May 2013 15:14:15 +0800 Subject: [PATCH] ui/test: Add boot status messages to test client Signed-off-by: Jeremy Kerr --- ui/test/discover-test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ui/test/discover-test.c b/ui/test/discover-test.c index 8f7c2c2..5077937 100644 --- a/ui/test/discover-test.c +++ b/ui/test/discover-test.c @@ -53,10 +53,22 @@ static void print_device_remove(struct device *device, printf("\tname: %s\n", device->name); } +static void print_status(struct boot_status *status, + void __attribute__((unused)) *arg) +{ + printf("status:\n"); + printf("\ttype: %d\n", status->type); + printf("\tmessage: %s\n", status->message); + printf("\tdetail: %s\n", status->detail); + printf("\tprogress: %d\n", status->progress); + +} + static struct discover_client_ops client_ops = { .device_add = print_device_add, .boot_option_add = print_boot_option_add, .device_remove = print_device_remove, + .update_status = print_status, }; int main(void) -- 2.39.2