From 285059cfed1f7572f2a46ca1385f874642db3f17 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 21 Jan 2009 16:27:00 -0800 Subject: 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 Signed-off-by: Jeremy Kerr --- ui/test/pb-test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ui/test') 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, }; -- cgit v1.2.1