mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
add accessor for version field
Original commit message from CVS: add accessor for version field
This commit is contained in:
parent
23a4951efd
commit
6688e2fd48
3 changed files with 47 additions and 23 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue