gstreamer: Add bindings for Message::structure_mut()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1204>
This commit is contained in:
Sebastian Dröge 2023-01-26 15:28:42 +02:00
parent f24b38470b
commit 5cea810820

View file

@ -67,6 +67,16 @@ impl MessageRef {
}
}
#[doc(alias = "gst_message_writable_structure")]
#[inline]
pub fn structure_mut(&mut self) -> &mut StructureRef {
unsafe {
StructureRef::from_glib_borrow_mut(ffi::gst_message_writable_structure(
self.as_mut_ptr(),
))
}
}
#[doc(alias = "gst_message_has_name")]
#[inline]
pub fn has_name(&self, name: &str) -> bool {