summaryrefslogtreecommitdiffstats
path: root/ui/test
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2009-02-01 15:45:34 +1100
committerJeremy Kerr <jk@ozlabs.org>2009-02-01 16:03:18 +1100
commite48a0d17214a832cfcc42d937a26a4bbf732c25a (patch)
tree46361b4feb8f77275224fa06468514280b2937d6 /ui/test
parent58821e4d5e593e4a828a1d79215e9480e9a6ca4f (diff)
downloadtalos-petitboot-e48a0d17214a832cfcc42d937a26a4bbf732c25a.tar.gz
talos-petitboot-e48a0d17214a832cfcc42d937a26a4bbf732c25a.zip
[discover client] Make devices persistent
Change discover client to keep devices around after they've been added, and freed after removal. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/test')
-rw-r--r--ui/test/pb-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/test/pb-test.c b/ui/test/pb-test.c
index 551c9b0..b32944f 100644
--- a/ui/test/pb-test.c
+++ b/ui/test/pb-test.c
@@ -28,11 +28,12 @@ static int print_device_add(const struct device *device,
return 0;
}
-static void print_device_remove(const char *dev_id,
+static void print_device_remove(const struct device *device,
void __attribute__((unused)) *arg)
{
printf("removed device:\n");
- printf("\tid: %s\n", dev_id);
+ printf("\tid: %s\n", device->id);
+ printf("\tname: %s\n", device->name);
}
static struct discover_client_ops client_ops = {
OpenPOWER on IntegriCloud