LUMIERA.clone/tests/plugin/example_plugin.c

46 lines
709 B
C
Raw Normal View History

2007-07-18 00:10:02 +02:00
#include <stdio.h>
#include "hello_interface.h"
int myopen(void)
{
printf("opened\n");
return 0;
2007-07-18 00:10:02 +02:00
}
int myclose(void)
2007-07-18 00:10:02 +02:00
{
printf("closed\n");
return 0;
2007-07-18 00:10:02 +02:00
}
void hallo(void)
2007-07-18 00:10:02 +02:00
{
printf("Hallo Welt!\n");
}
void tschuess(const char* m)
2007-07-18 00:10:02 +02:00
{
2007-08-19 05:53:43 +02:00
printf("Tschuess %s\n", m);
2007-07-18 00:10:02 +02:00
}
void hello(void)
2007-07-18 00:10:02 +02:00
{
2007-08-19 05:53:43 +02:00
printf("Hello World!\n");
2007-07-18 00:10:02 +02:00
}
void bye(const char* m)
2007-07-18 00:10:02 +02:00
{
2007-08-19 05:53:43 +02:00
printf("Bye %s\n", m);
2007-07-18 00:10:02 +02:00
}
2008-03-10 06:09:44 +01:00
LUMIERA_INTERFACE_IMPLEMENT(hello, 1, german, myopen, myclose,
hallo,
tschuess
);
LUMIERA_INTERFACE_IMPLEMENT(hello, 1, english, myopen, myclose,
hello,
bye
);