Esempio n. 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;
}
Esempio n. 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)));
}
Esempio n. 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)));
}
Esempio n. 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)));
}
Esempio n. 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);
}
Esempio n. 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));
}
Esempio n. 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);
}
Esempio n. 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)));
}
Esempio n. 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)));
}
Esempio n. 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);
}
Esempio n. 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);
}