diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2009-02-01 15:45:34 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-02-01 16:03:18 +1100 |
commit | e48a0d17214a832cfcc42d937a26a4bbf732c25a (patch) | |
tree | 46361b4feb8f77275224fa06468514280b2937d6 /ui/test | |
parent | 58821e4d5e593e4a828a1d79215e9480e9a6ca4f (diff) | |
download | talos-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.c | 5 |
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 = { |