disable (non finished) plugin test, fix some bugs

This commit is contained in:
Christian Thaeter 2007-08-14 04:21:47 +02:00
parent 441e192c81
commit d2c13807bb
2 changed files with 14 additions and 13 deletions

View file

@ -25,6 +25,6 @@ plugin_example_LDADD = $(builddir)/libcin3.a -lnobugmt -lpthread -ldl
plugin_example_SOURCES = $(examples_srcdir)/plugin_main.c
noinst_HEADERS += $(examples_srcdir)/hello_interface.h
noinst_LTLIBRARIES += example_plugin.la
example_plugin_la_CPPFLAGS = $(CPPFLAGS) -std=gnu99 -Wall -Werror -I$(top_srcdir)/src/lib/
example_plugin_la_SOURCES = $(examples_srcdir)/example_plugin.c
#noinst_LTLIBRARIES += example_plugin.la
#example_plugin_la_CPPFLAGS = $(CPPFLAGS) -std=gnu99 -Wall -Werror -I$(top_srcdir)/src/lib/
#example_plugin_la_SOURCES = $(examples_srcdir)/example_plugin.c

View file

@ -5,40 +5,41 @@
int myopen(void)
{
printf("opened\n");
return 0;
}
int myclose(void);
int myclose(void)
{
printf("closed\n");
return 0;
}
int hallo(void)
void hallo(void)
{
printf("Hallo Welt!\n");
}
int tschuess(const char* m)
void tschuess(const char* m)
{
printf("Tschues %s\n", m);
}
int hello(void);
void hello(void)
{
printf("Hello world!\n");
}
int bye(const char* m)
void bye(const char* m)
{
printf("bye %s\n", m);
}
CINELERRA_INTERFACE_IMPLEMENT(hello, 1, german, myopen, myclose,
CINELERRA_INTERFACE_FUNC(hello, hallo),
CINELERRA_INTERFACE_FUNC(goodbye, tschuess)
//CINELERRA_INTERFACE_FUNC(hello, hallo),
//CINELERRA_INTERFACE_FUNC(goodbye, tschuess)
);
CINELERRA_INTERFACE_IMPLEMENT(hello, 1, english, myopen, myclose,
CINELERRA_INTERFACE_FUNC(hello, hello),
CINELERRA_INTERFACE_FUNC(goodbye, bye)
//CINELERRA_INTERFACE_FUNC(hello, hello),
//CINELERRA_INTERFACE_FUNC(goodbye, bye)
);