Add 2008 to the copyright notice.
[Rockbox.git] / apps / plugins / helloworld.c
blob6ef5b584ce82b30ce0f3d14742b184a6258d0b9d
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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 ****************************************************************************/
19 #include "plugin.h"
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 */
25 PLUGIN_HEADER
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
29 in the plugin */
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 */
37 (void)parameter;
39 /* if you are using a global api pointer, don't forget to copy it!
40 otherwise you will get lovely "I04: IllInstr" errors... :-) */
41 rb = api;
43 /* now go ahead and have fun! */
44 rb->splash(HZ*2, "Hello world!");
46 return PLUGIN_OK;