Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
example-plugin.c File Reference

Go to the source code of this file.

Description

Dummy C plug-in to cover the plugin loader for unit test This file defines a Lumiera plug-in written in plain C, implementing the lumieraorg_testhello interface.

See also
test-interfaces.c

Definition in file example-plugin.c.

#include <stdio.h>
#include "common/interface-descriptor.h"
#include "common/config-interface.h"
#include "interface/say-hello.h"

Functions

void bye (const char *m)
 
void hallo (void)
 
void hello (void)
 
 LUMIERA_INTERFACE_INSTANCE (lumieraorg_interfacedescriptor, 0, lumieraorg_exampleplugin_descriptor, NULL, NULL, NULL, LUMIERA_INTERFACE_INLINE(name, const char *,(LumieraInterface iface),{(void) iface;return"LumieraTest";}), LUMIERA_INTERFACE_INLINE(brief, const char *,(LumieraInterface iface),{(void) iface;return"Lumiera Test suite examples";}), LUMIERA_INTERFACE_INLINE(homepage, const char *,(LumieraInterface iface),{(void) iface;return"http://www.lumiera.org/develompent.html";}), LUMIERA_INTERFACE_INLINE(version, const char *,(LumieraInterface iface),{(void) iface;return"No Version";}), LUMIERA_INTERFACE_INLINE(author, const char *,(LumieraInterface iface),{(void) iface;return"Christian Thaeter";}), LUMIERA_INTERFACE_INLINE(email, const char *,(LumieraInterface iface),{(void) iface;return"ct@pipapo.org";}), LUMIERA_INTERFACE_INLINE(copyright, const char *,(LumieraInterface iface),{(void) iface;return"Copyright (C) Lumiera.org\n"" 2008 Christian Thaeter <ct@pipapo.org>";}), LUMIERA_INTERFACE_INLINE(license, const char *,(LumieraInterface iface),{(void) iface;return"This program is free software; you can redistribute it and/or modify\n""it under the terms of the GNU General Public License as published by\n""the Free Software Foundation; either version 2 of the License, or\n""(at your option) any later version.\n""\n""This program is distributed in the hope that it will be useful,\n""but WITHOUT ANY WARRANTY; without even the implied warranty of\n""MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n""GNU General Public License for more details.\n""\n""You should have received a copy of the GNU General Public License\n""along with this program; if not, write to the Free Software\n""Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA";}), LUMIERA_INTERFACE_INLINE(state, int,(LumieraInterface iface),{(void) iface;return LUMIERA_INTERFACE_EXPERIMENTAL;}), LUMIERA_INTERFACE_INLINE(versioncmp, int,(const char *a, const char *b),{(void) a;(void) b;return 0;}))
 
void myclose (LumieraInterface self)
 
LumieraInterface myopen (LumieraInterface self, LumieraInterface interfaces)
 
void tschuess (const char *m)
 
void yeahbabe (void)
 

Variables

 LUMIERA_PLUGIN_INTERFACEHANDLE
 

Function Documentation

LumieraInterface myopen ( LumieraInterface  self,
LumieraInterface  interfaces 
)

Definition at line 42 of file example-plugin.c.

References LUMIERA_PLUGIN_STORE_INTERFACEHANDLE.

void myclose ( LumieraInterface  self)

Definition at line 51 of file example-plugin.c.

void hallo ( void  )

Definition at line 56 of file example-plugin.c.

void tschuess ( const char *  m)

Definition at line 61 of file example-plugin.c.

void hello ( void  )

Definition at line 66 of file example-plugin.c.

void bye ( const char *  m)

Definition at line 71 of file example-plugin.c.

void yeahbabe ( void  )
LUMIERA_INTERFACE_INSTANCE ( lumieraorg_interfacedescriptor  ,
,
lumieraorg_exampleplugin_descriptor  ,
NULL  ,
NULL  ,
NULL  ,
LUMIERA_INTERFACE_INLINE(name, const char *,(LumieraInterface iface),{(void) iface;return"LumieraTest";})  ,
LUMIERA_INTERFACE_INLINE(brief, const char *,(LumieraInterface iface),{(void) iface;return"Lumiera Test suite examples";})  ,
LUMIERA_INTERFACE_INLINE(homepage, const char *,(LumieraInterface iface),{(void) iface;return"http://www.lumiera.org/develompent.html";})  ,
LUMIERA_INTERFACE_INLINE(version, const char *,(LumieraInterface iface),{(void) iface;return"No Version";})  ,
LUMIERA_INTERFACE_INLINE(author, const char *,(LumieraInterface iface),{(void) iface;return"Christian Thaeter";})  ,
LUMIERA_INTERFACE_INLINE(email, const char *,(LumieraInterface iface),{(void) iface;return"ct@pipapo.org";})  ,
LUMIERA_INTERFACE_INLINE(copyright, const char *,(LumieraInterface iface),{(void) iface;return"Copyright (C) Lumiera.org\n"" 2008 Christian Thaeter <ct@pipapo.org>";})  ,
LUMIERA_INTERFACE_INLINE(license, const char *,(LumieraInterface iface),{(void) iface;return"This program is free software; you can redistribute it and/or modify\n""it under the terms of the GNU General Public License as published by\n""the Free Software Foundation; either version 2 of the License, or\n""(at your option) any later version.\n""\n""This program is distributed in the hope that it will be useful,\n""but WITHOUT ANY WARRANTY; without even the implied warranty of\n""MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n""GNU General Public License for more details.\n""\n""You should have received a copy of the GNU General Public License\n""along with this program; if not, write to the Free Software\n""Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA";})  ,
LUMIERA_INTERFACE_INLINE(state, int,(LumieraInterface iface),{(void) iface;return LUMIERA_INTERFACE_EXPERIMENTAL;})  ,
LUMIERA_INTERFACE_INLINE(versioncmp, int,(const char *a, const char *b),{(void) a;(void) b;return 0;})   
)

Variable Documentation

LUMIERA_PLUGIN_INTERFACEHANDLE

Definition at line 39 of file example-plugin.c.