1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 Björn Stenberg
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
21 /* welcome to the example rockbox plugin */
23 /* This macros must always be included. Should be placed at the top by
24 convention, although the actual position doesn't matter */
27 /* here is a global api struct pointer. while not strictly necessary,
28 it's nice not to have to pass the api pointer in all function calls
30 static struct plugin_api
* rb
;
32 /* this is the plugin entry point */
33 enum plugin_status
plugin_start(struct plugin_api
* api
, void* parameter
)
35 /* if you don't use the parameter, you can do like
36 this to avoid the compiler warning about it */
39 /* if you are using a global api pointer, don't forget to copy it!
40 otherwise you will get lovely "I04: IllInstr" errors... :-) */
43 /* now go ahead and have fun! */
44 rb
->splash(HZ
*2, "Hello world!");