/* * 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; }
/* * 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))); }
/* 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))); }
/* 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))); }
/* 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); }
/* 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)); }
/* 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); }
/* 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))); }
/* Method: license * Returns: the effective license of the plugin. */ static VALUE rg_license (VALUE self) { return CSTR2RVAL (gst_plugin_get_license (RGST_PLUGIN (self))); }
/* 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); }
/* 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); }