summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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