diff --git a/tests/examples/Makefile.am b/tests/examples/Makefile.am index a28e4b087..5ca03150a 100644 --- a/tests/examples/Makefile.am +++ b/tests/examples/Makefile.am @@ -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 diff --git a/tests/examples/example_plugin.c b/tests/examples/example_plugin.c index 1a294b8bf..2f4e96a6c 100644 --- a/tests/examples/example_plugin.c +++ b/tests/examples/example_plugin.c @@ -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) );