lumiera_/tests/examples/example_plugin.c

46 lines
868 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
{
printf("Tschues %s\n", m);
}
void hello(void)
2007-07-18 00:10:02 +02:00
{
printf("Hello world!\n");
}
void bye(const char* m)
2007-07-18 00:10:02 +02:00
{
printf("bye %s\n", m);
}
CINELERRA_INTERFACE_IMPLEMENT(hello, 1, german, myopen, myclose,
//CINELERRA_INTERFACE_FUNC(hello, hallo),
//CINELERRA_INTERFACE_FUNC(goodbye, tschuess)
2007-07-18 00:10:02 +02:00
);
CINELERRA_INTERFACE_IMPLEMENT(hello, 1, english, myopen, myclose,
//CINELERRA_INTERFACE_FUNC(hello, hello),
//CINELERRA_INTERFACE_FUNC(goodbye, bye)
2007-07-18 00:10:02 +02:00
);