mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 14:19:58 +01:00
test for faulty plugins
git-svn-id: svn://code.dyne.org/veejay/trunk@485 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
42
vevo-mpool/plugins/example_plugin.c
Normal file
42
vevo-mpool/plugins/example_plugin.c
Normal file
@@ -0,0 +1,42 @@
|
||||
#include <stddef.h>
|
||||
#include "stdio.h"
|
||||
#include <include/livido.h>
|
||||
|
||||
LIVIDO_PLUGIN
|
||||
|
||||
livido_init_f init_instance (livido_port_t *my_instance)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
livido_init_f deinit_instance (livido_port_t* my_instance)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
livido_process_f process_frame( livido_port_t *my_instance,
|
||||
double timecode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
livido_port_t *livido_setup(livido_setup_t *list,int vversion)
|
||||
{
|
||||
livido_port_t *info = NULL;
|
||||
|
||||
char *name = "Niels Elburg";
|
||||
int version = 101;
|
||||
int i = 55;
|
||||
|
||||
LIVIDO_IMPORT( list );
|
||||
|
||||
info = livido_port_new( i );
|
||||
|
||||
livido_property_set( info, "name", LIVIDO_ATOM_TYPE_STRING ,1, &name );
|
||||
livido_property_set( info, "PLUGIN_foo", LIVIDO_ATOM_TYPE_INT,1, &i);
|
||||
livido_property_set( info, "PLUGIN_bar", LIVIDO_ATOM_TYPE_STRING,1, &name);
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user