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>
|
2004-12-06 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
submitted by: Luca Ferretti <elle.uca@infinito.it>
|
submitted by: Luca Ferretti <elle.uca@infinito.it>
|
||||||
|
|
||||||
* po/LINGUAS:
|
* po/LINGUAS:
|
||||||
* po/it.po:
|
* po/it.po:
|
||||||
New tranlation added: Italian
|
New tranlation added: Italian
|
||||||
|
|
|
@ -578,6 +578,22 @@ gst_plugin_get_filename (GstPlugin * plugin)
|
||||||
return plugin->filename;
|
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:
|
* gst_plugin_get_license:
|
||||||
* @plugin: plugin to get the license of
|
* @plugin: plugin to get the license of
|
||||||
|
|
|
@ -63,7 +63,7 @@ struct _GstPluginDesc {
|
||||||
gchar *license; /* effective license of plugin */
|
gchar *license; /* effective license of plugin */
|
||||||
gchar *package; /* package plugin belongs to */
|
gchar *package; /* package plugin belongs to */
|
||||||
gchar *origin; /* URL to provider of plugin */
|
gchar *origin; /* URL to provider of plugin */
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -71,25 +71,25 @@ struct _GstPlugin {
|
||||||
GstPluginDesc desc;
|
GstPluginDesc desc;
|
||||||
|
|
||||||
gchar * filename;
|
gchar * filename;
|
||||||
GList * features; /* list of features provided */
|
GList * features; /* list of features provided */
|
||||||
gint numfeatures;
|
gint numfeatures;
|
||||||
|
|
||||||
gpointer manager; /* managing registry */
|
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];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GST_PLUGIN_DEFINE(major,minor,name,description,init,version,license,package,origin) \
|
#define GST_PLUGIN_DEFINE(major,minor,name,description,init,version,license,package,origin) \
|
||||||
GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
|
GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
|
||||||
major, \
|
major, \
|
||||||
minor, \
|
minor, \
|
||||||
name, \
|
name, \
|
||||||
description, \
|
description, \
|
||||||
init, \
|
init, \
|
||||||
NULL, \
|
NULL, \
|
||||||
version, \
|
version, \
|
||||||
license, \
|
license, \
|
||||||
package, \
|
package, \
|
||||||
origin, \
|
origin, \
|
||||||
GST_PADDING_INIT \
|
GST_PADDING_INIT \
|
||||||
|
@ -102,18 +102,18 @@ _gst_plugin_static_init__ ##init (void) \
|
||||||
static GstPluginDesc plugin_desc_ = { \
|
static GstPluginDesc plugin_desc_ = { \
|
||||||
major, \
|
major, \
|
||||||
minor, \
|
minor, \
|
||||||
name, \
|
name, \
|
||||||
description, \
|
description, \
|
||||||
init, \
|
init, \
|
||||||
NULL, \
|
NULL, \
|
||||||
version, \
|
version, \
|
||||||
license, \
|
license, \
|
||||||
package, \
|
package, \
|
||||||
origin, \
|
origin, \
|
||||||
GST_PADDING_INIT \
|
GST_PADDING_INIT \
|
||||||
}; \
|
}; \
|
||||||
_gst_plugin_register_static (&plugin_desc_); \
|
_gst_plugin_register_static (&plugin_desc_); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GST_LICENSE_UNKNOWN "unknown"
|
#define GST_LICENSE_UNKNOWN "unknown"
|
||||||
|
|
||||||
|
@ -125,22 +125,23 @@ typedef gboolean (*GstPluginFilter) (GstPlugin *plugin,
|
||||||
#define GST_TYPE_PLUGIN (gst_plugin_get_type())
|
#define GST_TYPE_PLUGIN (gst_plugin_get_type())
|
||||||
GType gst_plugin_get_type (void);
|
GType gst_plugin_get_type (void);
|
||||||
void _gst_plugin_initialize (void);
|
void _gst_plugin_initialize (void);
|
||||||
void _gst_plugin_register_static (GstPluginDesc *desc);
|
void _gst_plugin_register_static (GstPluginDesc *desc);
|
||||||
|
|
||||||
G_CONST_RETURN gchar* gst_plugin_get_name (GstPlugin *plugin);
|
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_description (GstPlugin *plugin);
|
||||||
G_CONST_RETURN gchar* gst_plugin_get_filename (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_license (GstPlugin *plugin);
|
||||||
G_CONST_RETURN gchar* gst_plugin_get_package (GstPlugin *plugin);
|
G_CONST_RETURN gchar* gst_plugin_get_package (GstPlugin *plugin);
|
||||||
G_CONST_RETURN gchar* gst_plugin_get_origin (GstPlugin *plugin);
|
G_CONST_RETURN gchar* gst_plugin_get_origin (GstPlugin *plugin);
|
||||||
GModule * gst_plugin_get_module (GstPlugin *plugin);
|
GModule * gst_plugin_get_module (GstPlugin *plugin);
|
||||||
gboolean gst_plugin_is_loaded (GstPlugin *plugin);
|
gboolean gst_plugin_is_loaded (GstPlugin *plugin);
|
||||||
|
|
||||||
GList* gst_plugin_feature_filter (GstPlugin *plugin,
|
GList* gst_plugin_feature_filter (GstPlugin *plugin,
|
||||||
GstPluginFeatureFilter filter,
|
GstPluginFeatureFilter filter,
|
||||||
gboolean first,
|
gboolean first,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
GList* gst_plugin_list_feature_filter (GList *list,
|
GList* gst_plugin_list_feature_filter (GList *list,
|
||||||
GstPluginFeatureFilter filter,
|
GstPluginFeatureFilter filter,
|
||||||
gboolean first,
|
gboolean first,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
@ -149,15 +150,15 @@ gboolean gst_plugin_name_filter (GstPlugin *plugin, const gchar *name);
|
||||||
GList* gst_plugin_get_feature_list (GstPlugin *plugin);
|
GList* gst_plugin_get_feature_list (GstPlugin *plugin);
|
||||||
GstPluginFeature* gst_plugin_find_feature (GstPlugin *plugin, const gchar *name, GType type);
|
GstPluginFeature* gst_plugin_find_feature (GstPlugin *plugin, const gchar *name, GType type);
|
||||||
|
|
||||||
gboolean gst_plugin_check_file (const gchar *filename, GError** error);
|
gboolean gst_plugin_check_file (const gchar *filename, GError** error);
|
||||||
GstPlugin * gst_plugin_load_file (const gchar *filename, GError** error);
|
GstPlugin * gst_plugin_load_file (const gchar *filename, GError** error);
|
||||||
gboolean gst_plugin_unload_plugin (GstPlugin *plugin);
|
gboolean gst_plugin_unload_plugin (GstPlugin *plugin);
|
||||||
|
|
||||||
void gst_plugin_add_feature (GstPlugin *plugin, GstPluginFeature *feature);
|
void gst_plugin_add_feature (GstPlugin *plugin, GstPluginFeature *feature);
|
||||||
|
|
||||||
/* shortcuts to load from the registry pool */
|
/* shortcuts to load from the registry pool */
|
||||||
gboolean gst_plugin_load (const gchar *name);
|
gboolean gst_plugin_load (const gchar *name);
|
||||||
gboolean gst_library_load (const gchar *name);
|
gboolean gst_library_load (const gchar *name);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue