add accessor for version field

Original commit message from CVS:
add accessor for version field
This commit is contained in:
Thomas Vander Stichele 2004-12-07 18:50:39 +00:00
parent 23a4951efd
commit 6688e2fd48
3 changed files with 47 additions and 23 deletions

View file

@ -1,6 +1,13 @@
2004-12-07 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstplugin.c:
* gst/gstplugin.h:
add accessor for version field
2004-12-06 Thomas Vander Stichele <thomas at apestaart dot org>
submitted by: Luca Ferretti <elle.uca@infinito.it>
* po/LINGUAS:
* po/it.po:
New tranlation added: Italian

View file

@ -578,6 +578,22 @@ gst_plugin_get_filename (GstPlugin * plugin)
return plugin->filename;
}
/**
* gst_plugin_get_version:
* @plugin: plugin to get the version of
*
* get the version of the plugin
*
* Returns: the version of the plugin
*/
G_CONST_RETURN gchar *
gst_plugin_get_version (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
return plugin->desc.version;
}
/**
* gst_plugin_get_license:
* @plugin: plugin to get the license of

View file

@ -75,7 +75,7 @@ struct _GstPlugin {
gint numfeatures;
gpointer manager; /* managing registry */
GModule * module; /* contains the module if the plugin is loaded */
GModule * module; /* contains the module if plugin is loaded */
gpointer _gst_reserved[GST_PADDING];
};
@ -130,6 +130,7 @@ void _gst_plugin_register_static (GstPluginDesc *desc);
G_CONST_RETURN gchar* gst_plugin_get_name (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_description (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_filename (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_version (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_license (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_package (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_origin (GstPlugin *plugin);