forked from mirrors/gstreamer-rs
gstreamer: Add bindings for Message::structure_mut()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1204>
This commit is contained in:
parent
f24b38470b
commit
5cea810820
1 changed files with 10 additions and 0 deletions
|
@ -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")]
|
#[doc(alias = "gst_message_has_name")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn has_name(&self, name: &str) -> bool {
|
pub fn has_name(&self, name: &str) -> bool {
|
||||||
|
|
Loading…
Reference in a new issue