validate: action: Expose the .scenario() method

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1586>
This commit is contained in:
Thibault Saunier 2024-10-30 21:46:48 -03:00 committed by GStreamer Marge Bot
parent e06e0fb33e
commit e42b3c6bbe

View file

@ -27,6 +27,15 @@ impl ActionRef {
gst::StructureRef::from_glib_borrow_mut((*action).structure)
}
}
#[doc(alias = "gst_validate_action_get_scenario")]
pub fn scenario(&self) -> Option<Scenario> {
unsafe {
let scenario = ffi::gst_validate_action_get_scenario(self.as_mut_ptr());
from_glib_full(scenario)
}
}
}
impl Action {