summaryrefslogtreecommitdiffstats
path: root/ui/test
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-01-21 16:27:00 -0800
committerJeremy Kerr <jk@ozlabs.org>2009-02-01 11:54:15 +1100
commit285059cfed1f7572f2a46ca1385f874642db3f17 (patch)
treeca8cf3941ad4c65419f643c65c7cf8579e81a8fe /ui/test
parent5a1cb18519a0140ad49c460d99be2fb399efb802 (diff)
downloadtalos-petitboot-285059cfed1f7572f2a46ca1385f874642db3f17.tar.gz
talos-petitboot-285059cfed1f7572f2a46ca1385f874642db3f17.zip
Add client ops instance arg
Add a user supplied agument to the struct discover_client_ops callback routines that is suitable for managing client instance data. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/test')
-rw-r--r--ui/test/pb-test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/test/pb-test.c b/ui/test/pb-test.c
index 5f021ff..b6ff627 100644
--- a/ui/test/pb-test.c
+++ b/ui/test/pb-test.c
@@ -3,7 +3,8 @@
#include "ui/common/discover-client.h"
-static int print_device_add(struct device *device)
+static int print_device_add(struct device *device,
+ void __attribute__((unused)) *arg)
{
struct boot_option *opt;
@@ -27,13 +28,13 @@ static int print_device_add(struct device *device)
return 0;
}
-static void print_device_remove(char *dev_id)
+static void print_device_remove(char *dev_id, void __attribute__((unused)) *arg)
{
printf("removed device:\n");
printf("\tid: %s\n", dev_id);
}
-struct discover_client_ops client_ops = {
+static struct discover_client_ops client_ops = {
.add_device = print_device_add,
.remove_device = print_device_remove,
};
OpenPOWER on IntegriCloud