summaryrefslogtreecommitdiffstats
path: root/ui/common/discover-client.h
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-01-21 16:27:01 -0800
committerJeremy Kerr <jk@ozlabs.org>2009-02-01 11:54:25 +1100
commit2b42cdd35ccd83c52e9df257efdfcda040d170d9 (patch)
tree91e68ee0cdd988d2f8e60e557d59181cbd266a5a /ui/common/discover-client.h
parent285059cfed1f7572f2a46ca1385f874642db3f17 (diff)
downloadpetitboot-2b42cdd35ccd83c52e9df257efdfcda040d170d9.zip
petitboot-2b42cdd35ccd83c52e9df257efdfcda040d170d9.tar.gz
Make client ops constant
Make the discover_client_ops args read-only. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/common/discover-client.h')
-rw-r--r--ui/common/discover-client.h9
1 files changed, 5 insertions, 4 deletions
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);
OpenPOWER on IntegriCloud