diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-08-30 20:58:38 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-08-30 20:58:38 +0000 |
commit | ce0d2b1d4746bb9e2dd23bedeb55c9a684edae75 (patch) | |
tree | d4014ab689f9559c568e739f82793ac6b4c50090 /apps | |
parent | da16248e47901c826a90291d2bb2a7aae78b209a (diff) | |
download | rockbox-ce0d2b1d4746bb9e2dd23bedeb55c9a684edae75.tar.gz rockbox-ce0d2b1d4746bb9e2dd23bedeb55c9a684edae75.zip |
Update comments in the helloword plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27949 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/helloworld.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/helloworld.c b/apps/plugins/helloworld.c index f1093f0a8b..af55610c73 100644 --- a/apps/plugins/helloworld.c +++ b/apps/plugins/helloworld.c | |||
@@ -18,13 +18,11 @@ | |||
18 | * KIND, either express or implied. | 18 | * KIND, either express or implied. |
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #include "plugin.h" | ||
22 | 21 | ||
23 | /* welcome to the example rockbox plugin */ | 22 | /* welcome to the example rockbox plugin */ |
24 | 23 | ||
25 | /* This macros must always be included. Should be placed at the top by | 24 | /* mandatory include for all plugins */ |
26 | convention, although the actual position doesn't matter */ | 25 | #include "plugin.h" |
27 | |||
28 | 26 | ||
29 | /* this is the plugin entry point */ | 27 | /* this is the plugin entry point */ |
30 | enum plugin_status plugin_start(const void* parameter) | 28 | enum plugin_status plugin_start(const void* parameter) |
@@ -33,8 +31,11 @@ enum plugin_status plugin_start(const void* parameter) | |||
33 | this to avoid the compiler warning about it */ | 31 | this to avoid the compiler warning about it */ |
34 | (void)parameter; | 32 | (void)parameter; |
35 | 33 | ||
34 | /* "rb->" marks a plugin api call. Rockbox offers many of its built-in | ||
35 | * functions to plugins */ | ||
36 | /* now go ahead and have fun! */ | 36 | /* now go ahead and have fun! */ |
37 | rb->splash(HZ*2, "Hello world!"); | 37 | rb->splash(HZ*2, "Hello world!"); |
38 | 38 | ||
39 | /* tell Rockbox that we have completed successfully */ | ||
39 | return PLUGIN_OK; | 40 | return PLUGIN_OK; |
40 | } | 41 | } |