diff options
author | Benjamin Otte <otte@gnome.org> | 2003-10-31 19:32:47 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-10-31 19:32:47 +0000 |
commit | 907e3e97d932da8c943f83e65acadff55c8ab0e3 (patch) | |
tree | 9cebb0eb3313ffb3f1d8cf08be34f1182c2b9f6e /plugins/indexers | |
parent | 37d3d6ec994df7b64d9cda57be44233d6d63dcaa (diff) |
update plugin initialization restructuring (see email for details
Original commit message from CVS:
update plugin initialization restructuring (see email for details
Diffstat (limited to 'plugins/indexers')
-rw-r--r-- | plugins/indexers/gstfileindex.c | 3 | ||||
-rw-r--r-- | plugins/indexers/gstindexers.c | 23 | ||||
-rw-r--r-- | plugins/indexers/gstmemindex.c | 4 |
3 files changed, 17 insertions, 13 deletions
diff --git a/plugins/indexers/gstfileindex.c b/plugins/indexers/gstfileindex.c index 3806aa700..ccb969e78 100644 --- a/plugins/indexers/gstfileindex.c +++ b/plugins/indexers/gstfileindex.c @@ -993,12 +993,11 @@ gst_file_index_get_assoc_entry (GstIndex *index, } gboolean -gst_file_index_plugin_init (GModule *module, GstPlugin *plugin) +gst_file_index_plugin_init (GstPlugin *plugin) { GstIndexFactory *factory; GST_DEBUG_CATEGORY_INIT(DC, "GST_FILEINDEX", 0, NULL); - gst_plugin_set_longname (plugin, "A file index"); factory = gst_index_factory_new ("fileindex", "A index that stores entries in file", diff --git a/plugins/indexers/gstindexers.c b/plugins/indexers/gstindexers.c index e2f491e90..6894202a4 100644 --- a/plugins/indexers/gstindexers.c +++ b/plugins/indexers/gstindexers.c @@ -21,24 +21,31 @@ #include <gst/gstversion.h> #include <gst/gstplugin.h> -extern gboolean gst_mem_index_plugin_init (GModule *module, GstPlugin *plugin); -extern gboolean gst_file_index_plugin_init (GModule *module, GstPlugin *plugin); +extern gboolean gst_mem_index_plugin_init (GstPlugin *plugin); +extern gboolean gst_file_index_plugin_init (GstPlugin *plugin); static gboolean -plugin_init (GModule *module, GstPlugin *plugin) +plugin_init (GstPlugin *plugin) { gboolean res = TRUE; - res &= gst_mem_index_plugin_init (module, plugin); - res &= gst_file_index_plugin_init (module, plugin); + res &= gst_mem_index_plugin_init (plugin); + res &= gst_file_index_plugin_init (plugin); return res; } -GstPluginDesc plugin_desc = { +GST_PLUGIN_DEFINE ( GST_VERSION_MAJOR, GST_VERSION_MINOR, "gstindexers", - plugin_init -}; + "Gstremaer core indexers", + plugin_init, + VERSION, + GST_LICENSE, + GST_COPYRIGHT, + GST_PACKAGE, + GST_ORIGIN +) + diff --git a/plugins/indexers/gstmemindex.c b/plugins/indexers/gstmemindex.c index 80856c463..bc5f210d9 100644 --- a/plugins/indexers/gstmemindex.c +++ b/plugins/indexers/gstmemindex.c @@ -397,12 +397,10 @@ gst_mem_index_get_assoc_entry (GstIndex *index, gint id, } gboolean -gst_mem_index_plugin_init (GModule *module, GstPlugin *plugin) +gst_mem_index_plugin_init (GstPlugin *plugin) { GstIndexFactory *factory; - gst_plugin_set_longname (plugin, "A memory index"); - factory = gst_index_factory_new ("memindex", "A index that stores entries in memory", gst_mem_index_get_type()); |