diff options
Diffstat (limited to 'apps/plugins/helloworld.c')
-rw-r--r-- | apps/plugins/helloworld.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/plugins/helloworld.c b/apps/plugins/helloworld.c index c4bd043244..e582eb77b3 100644 --- a/apps/plugins/helloworld.c +++ b/apps/plugins/helloworld.c | |||
@@ -26,22 +26,13 @@ | |||
26 | convention, although the actual position doesn't matter */ | 26 | convention, although the actual position doesn't matter */ |
27 | PLUGIN_HEADER | 27 | PLUGIN_HEADER |
28 | 28 | ||
29 | /* here is a global api struct pointer. while not strictly necessary, | ||
30 | it's nice not to have to pass the api pointer in all function calls | ||
31 | in the plugin */ | ||
32 | static const struct plugin_api* rb; | ||
33 | |||
34 | /* this is the plugin entry point */ | 29 | /* this is the plugin entry point */ |
35 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 30 | enum plugin_status plugin_start(const void* parameter) |
36 | { | 31 | { |
37 | /* if you don't use the parameter, you can do like | 32 | /* if you don't use the parameter, you can do like |
38 | this to avoid the compiler warning about it */ | 33 | this to avoid the compiler warning about it */ |
39 | (void)parameter; | 34 | (void)parameter; |
40 | 35 | ||
41 | /* if you are using a global api pointer, don't forget to copy it! | ||
42 | otherwise you will get lovely "I04: IllInstr" errors... :-) */ | ||
43 | rb = api; | ||
44 | |||
45 | /* now go ahead and have fun! */ | 36 | /* now go ahead and have fun! */ |
46 | rb->splash(HZ*2, "Hello world!"); | 37 | rb->splash(HZ*2, "Hello world!"); |
47 | 38 | ||