From 652657781805d9cc10d744a49fb23eb17019fbbf Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Tue, 13 May 2008 09:57:56 +0000 Subject: Plugin parameters should be const. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/helloworld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/helloworld.c') diff --git a/apps/plugins/helloworld.c b/apps/plugins/helloworld.c index eca9d2e85a..ebad484d9c 100644 --- a/apps/plugins/helloworld.c +++ b/apps/plugins/helloworld.c @@ -27,10 +27,10 @@ PLUGIN_HEADER /* here is a global api struct pointer. while not strictly necessary, it's nice not to have to pass the api pointer in all function calls in the plugin */ -static struct plugin_api* rb; +static const struct plugin_api* rb; /* this is the plugin entry point */ -enum plugin_status plugin_start(struct plugin_api* api, void* parameter) +enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) { /* if you don't use the parameter, you can do like this to avoid the compiler warning about it */ -- cgit v1.2.3