Lumiera  0.pre.03
»edityourfreedom«
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\ " 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\" "it under the terms of the GNU General Public License as published by\" "the Free Software Foundation;either version 2 of the License, or\" "(at your option) any later version.\" "\" "This program is distributed in the hope that it will be useful,\" "but WITHOUT ANY WARRANTY;without even the implied warranty of\" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\" "GNU General Public License for more details.\" "\" "You should have received a copy of the GNU General Public License\" "along with this program;if not, write to the Free Software\" "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

◆ myopen()

LumieraInterface myopen ( LumieraInterface  self,
LumieraInterface  interfaces 
)

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

References LUMIERA_PLUGIN_STORE_INTERFACEHANDLE.

Referenced by yeahbabe().

+ Here is the caller graph for this function:

◆ myclose()

void myclose ( LumieraInterface  self)

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

Referenced by yeahbabe().

+ Here is the caller graph for this function:

◆ hallo()

void hallo ( void  )

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

Referenced by yeahbabe().

+ Here is the caller graph for this function:

◆ tschuess()

void tschuess ( const char *  m)

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

Referenced by yeahbabe().

+ Here is the caller graph for this function:

◆ hello()

void hello ( void  )

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

Referenced by ExamplePlugin_en::bye(), and yeahbabe().

+ Here is the caller graph for this function:

◆ bye()

void bye ( const char *  m)

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

Referenced by yeahbabe().

+ Here is the caller graph for this function:

◆ yeahbabe()

void yeahbabe ( void  )

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

References bye(), hallo(), hello(), LUMIERA_EXPORT, LUMIERA_INTERFACE_CLOSE, LUMIERA_INTERFACE_EXPERIMENTAL, LUMIERA_INTERFACE_HANDLE, LUMIERA_INTERFACE_INSTANCE(), LUMIERA_INTERFACE_OPEN, LUMIERA_INTERFACE_REF, myclose(), myopen(), NULL, and tschuess().

+ Here is the call graph for this function:

◆ LUMIERA_INTERFACE_INSTANCE()

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\" 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\ "it under the terms of the GNU General Public License as published by\" "the Free Software Foundation;either version 2 of the License, or\" "(at your option) any later version.\" "\" "This program is distributed in the hope that it will be useful,\" "but WITHOUT ANY WARRANTY;without even the implied warranty of\" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\" "GNU General Public License for more details.\" "\" "You should have received a copy of the GNU General Public License\" "along with this program;if not, write to the Free Software\" "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;})   
)

Referenced by yeahbabe().

+ Here is the caller graph for this function:

Variable Documentation

◆ LUMIERA_PLUGIN_INTERFACEHANDLE

LUMIERA_PLUGIN_INTERFACEHANDLE

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