2001-08-21 20:16:48 +00:00
|
|
|
|
|
|
|
#define GST_PLUGIN_STATIC
|
|
|
|
|
2003-11-04 05:48:16 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2001-08-21 20:16:48 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
static gboolean
|
2003-11-04 05:48:16 +00:00
|
|
|
plugin_init (GstPlugin *plugin)
|
2001-08-21 20:16:48 +00:00
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2003-10-31 19:32:47 +00:00
|
|
|
GST_PLUGIN_DEFINE (
|
2001-08-21 20:16:48 +00:00
|
|
|
GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
"testplugin",
|
2003-11-04 05:48:16 +00:00
|
|
|
"a plugin for testing",
|
|
|
|
plugin_init,
|
|
|
|
VERSION,
|
|
|
|
GST_LICENSE,
|
|
|
|
GST_PACKAGE,
|
|
|
|
GST_ORIGIN
|
2001-08-21 20:16:48 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static gboolean
|
2003-11-04 05:48:16 +00:00
|
|
|
plugin2_init (GstPlugin *plugin)
|
2001-08-21 20:16:48 +00:00
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2003-10-31 19:32:47 +00:00
|
|
|
GST_PLUGIN_DEFINE (
|
2001-08-21 20:16:48 +00:00
|
|
|
GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
"testplugin2",
|
2003-11-04 05:48:16 +00:00
|
|
|
"a second plugin for testing",
|
|
|
|
plugin2_init,
|
|
|
|
VERSION,
|
|
|
|
GST_LICENSE,
|
|
|
|
GST_PACKAGE,
|
|
|
|
GST_ORIGIN
|
2001-08-21 20:16:48 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
int
|
|
|
|
main (int argc, char *argv[])
|
|
|
|
{
|
|
|
|
GstPlugin *plugin;
|
|
|
|
|
|
|
|
gst_init (&argc, &argv);
|
|
|
|
|
2002-05-10 19:24:04 +00:00
|
|
|
plugin = gst_registry_pool_find_plugin ("testplugin");
|
2001-08-21 20:16:48 +00:00
|
|
|
g_assert (plugin != NULL);
|
|
|
|
|
2003-11-04 05:48:16 +00:00
|
|
|
g_print ("testplugin: %p %s\n", plugin, gst_plugin_get_name(plugin));
|
2001-08-21 20:16:48 +00:00
|
|
|
|
2002-05-10 19:24:04 +00:00
|
|
|
plugin = gst_registry_pool_find_plugin ("testplugin2");
|
2001-08-21 20:16:48 +00:00
|
|
|
g_assert (plugin != NULL);
|
|
|
|
|
2003-11-04 05:48:16 +00:00
|
|
|
g_print ("testplugin2: %p %s\n", plugin, gst_plugin_get_name(plugin));
|
2001-08-21 20:16:48 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|