summaryrefslogtreecommitdiffstats
path: root/ui/test/discover-test.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-21 15:14:15 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-21 15:29:43 +0800
commitefab1ab1bef78711e764f52e49c518f140d6ea67 (patch)
tree51e3df25bb7d716cea8cd5a9b91f12c7b8478369 /ui/test/discover-test.c
parent9168031edb7affc437928a9123faf8fcbddf5d2a (diff)
downloadtalos-petitboot-efab1ab1bef78711e764f52e49c518f140d6ea67.tar.gz
talos-petitboot-efab1ab1bef78711e764f52e49c518f140d6ea67.zip
ui/test: Add boot status messages to test client
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/test/discover-test.c')
-rw-r--r--ui/test/discover-test.c12
1 files changed, 12 insertions, 0 deletions
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)
OpenPOWER on IntegriCloud