示例#1
0
/*
 * Method: remove_plugin(plugin)
 * plugin: a Gst::Plugin.
 *
 * Removes a plugin from the registry.
 *
 * Returns: self.
 */
static VALUE
rb_gst_registry_remove_plugin (VALUE self, VALUE plugin)
{
	gst_registry_remove_plugin (RGST_REGISTRY (self),
				    RGST_PLUGIN (plugin));
	return self;
}
示例#2
0
/*
 * Method: add_plugin(plugin)
 * plugin: a Gst::Plugin.
 *
 * Adds a plugin to the registry. The 'plugin-added' signal will be emitted.
 *
 * Returns: true on success, false otherwise.
 */
static VALUE
rb_gst_registry_add_plugin(VALUE self, VALUE plugin)
{
    return CBOOL2RVAL(gst_registry_add_plugin(RGST_REGISTRY (self),
                                              RGST_PLUGIN (plugin)));
}
示例#3
0
/* Method: description
 * Returns: a long description of the plugin.
 */
static VALUE
rb_gst_plugin_get_description (VALUE self)
{
    return CSTR2RVAL (gst_plugin_get_description (RGST_PLUGIN (self)));
}
示例#4
0
/* Method: name
 * Returns: the unique name of the plugin.
 */
static VALUE
rb_gst_plugin_get_name (VALUE self)
{
    return CSTR2RVAL (gst_plugin_get_name (RGST_PLUGIN (self)));
}
示例#5
0
/* Method: version
 * Returns: the version of the plugin (note: as a string).
 */
static VALUE
rb_gst_plugin_get_version (VALUE self)
{
    return CSTR2RVAL (RGST_PLUGIN (self)->desc.version);
}
示例#6
0
/* Method: loaded?
 * Returns: true if the plugin is loaded into memory, false otherwise.
 */
static VALUE
rb_gst_plugin_is_loaded (VALUE self)
{
    GstPlugin *plugin = RGST_PLUGIN (self);
    return CBOOL2RVAL (gst_plugin_is_loaded (plugin));
}
示例#7
0
/* Method: major_version
 * Returns: the major version of the core this plugin was compiled for.
 */
static VALUE
rb_gst_plugin_get_major_version (VALUE self)
{
    return INT2FIX (RGST_PLUGIN (self)->desc.major_version);
}
示例#8
0
/* Method: origin
 * Returns: the URL to the provider of the plugin.
 */
static VALUE
rg_origin (VALUE self)
{
    return CSTR2RVAL (gst_plugin_get_origin ( RGST_PLUGIN (self)));
}
示例#9
0
/* Method: license 
 * Returns: the effective license of the plugin.
 */
static VALUE
rg_license (VALUE self)
{
    return CSTR2RVAL (gst_plugin_get_license (RGST_PLUGIN (self)));
}
示例#10
0
/* Method: version
 * Returns: the version of the plugin (note: as a string).
 */
static VALUE
rg_version (VALUE self)
{
    return CSTR2RVAL (RGST_PLUGIN (self)->desc.version);
}
示例#11
0
/* Method: major_version 
 * Returns: the major version of the core this plugin was compiled for.
 */
static VALUE
rg_major_version (VALUE self)
{
    return INT2FIX (RGST_PLUGIN (self)->desc.major_version);
}