Commit c263483b authored by Zeeshan Ali's avatar Zeeshan Ali

Add binding for gst_plugin_get_name()

For some reason it doesn't get autogenerated so let's generate it
manually. To avoid conflict with the same method from GObject, let's name
it get_plugin_name().
parent e7f32334
......@@ -822,6 +822,7 @@ trait = false
name = "get_name"
[object.function.return]
nullable = false
ignore = true
[[object.function]]
name = "get_license"
......
......@@ -25,6 +25,10 @@ impl Plugin {
}
}
pub fn get_plugin_name(&self) -> String {
unsafe { from_glib_none(ffi::gst_plugin_get_name(self.to_glib_none().0)) }
}
pub fn set_cache_data(&self, cache_data: Structure) {
unsafe {
ffi::gst_plugin_set_cache_data(self.to_glib_none().0, cache_data.into_ptr());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment