lumiera_/tests/plugin/example_plugin.c

46 lines
725 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
}
CINELERRA_INTERFACE_IMPLEMENT(hello, 1, german, myopen, myclose,
2007-08-18 05:05:58 +02:00
hallo,
tschuess
2007-07-18 00:10:02 +02:00
);
CINELERRA_INTERFACE_IMPLEMENT(hello, 1, english, myopen, myclose,
2007-08-18 05:05:58 +02:00
hello,
bye
2007-07-18 00:10:02 +02:00
);