From 2b42cdd35ccd83c52e9df257efdfcda040d170d9 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 21 Jan 2009 16:27:01 -0800 Subject: Make client ops constant Make the discover_client_ops args read-only. Signed-off-by: Geoff Levand Signed-off-by: Jeremy Kerr --- ui/common/discover-client.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ui/common/discover-client.h') diff --git a/ui/common/discover-client.h b/ui/common/discover-client.h index bc2294a..132da02 100644 --- a/ui/common/discover-client.h +++ b/ui/common/discover-client.h @@ -13,14 +13,15 @@ struct discover_client; */ struct discover_client_ops { - int (*add_device)(struct device *device, void *arg); - void (*remove_device)(char *dev_id, void *arg); + int (*add_device)(const struct device *device, void *arg); + void (*remove_device)(const char *dev_id, void *arg); void *cb_arg; }; -struct discover_client *discover_client_init(struct discover_client_ops *ops); +struct discover_client *discover_client_init( + const struct discover_client_ops *ops); -int discover_client_get_fd(struct discover_client *client); +int discover_client_get_fd(const struct discover_client *client); void discover_client_destroy(struct discover_client *client); -- cgit v1.1