source: roaraudio/plugins/universal/helloworld.c @ 5439:7950543cabbc

Last change on this file since 5439:7950543cabbc was 5439:7950543cabbc, checked in by phi, 10 years ago

added example plugin

File size: 1.6 KB
Line 
1//helloworld.c:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2012
5 *
6 *  This file is part of roard a part of RoarAudio,
7 *  a cross-platform sound system for both, home and professional use.
8 *  See README for details.
9 *
10 *  This file is free software; you can redistribute it and/or modify
11 *  it under the terms of the GNU General Public License version 3
12 *  as published by the Free Software Foundation.
13 *
14 *  RoarAudio is distributed in the hope that it will be useful,
15 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *  GNU General Public License for more details.
18 *
19 *  You should have received a copy of the GNU General Public License
20 *  along with this software; see the file COPYING.  If not, write to
21 *  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 *  Boston, MA 02110-1301, USA.
23 *
24 */
25
26#include <roaraudio.h>
27
28static int hw_init (struct roar_dl_librarypara * para) {
29 (void)para;
30
31 roar_vio_printf(roar_stdout, "Hello world!\n");
32
33 return 0;
34}
35
36static struct roar_dl_appsched sched = {
37 .init   = hw_init,
38 .free   = NULL,
39 .update = NULL,
40 .tick   = NULL,
41 .wait   = NULL
42};
43
44ROAR_DL_PLUGIN_START(helloworld) {
45 ROAR_DL_PLUGIN_META_PRODUCT_NIV("helloworld", ROAR_VID_ROARAUDIO, ROAR_VNAME_ROARAUDIO);
46 ROAR_DL_PLUGIN_META_VERSION(ROAR_VERSION_STRING);
47 ROAR_DL_PLUGIN_META_LICENSE_TAG(GPLv3_0);
48 ROAR_DL_PLUGIN_META_CONTACT_FLNE("Philipp", "Schafft", "ph3-der-loewe", "lion@lion.leolix.org");
49 ROAR_DL_PLUGIN_META_DESC("This plugin prints the string \"Hello world!\".");
50 ROAR_DL_PLUGIN_REG_APPSCHED(&sched);
51} ROAR_DL_PLUGIN_END
52
53//ll
Note: See TracBrowser for help on using the repository browser.