validate: Expose gst_validate::print_action_types

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1227>
This commit is contained in:
Thibault Saunier 2023-03-26 22:41:52 -03:00
parent 9647ce8895
commit 98db1b546e
2 changed files with 12 additions and 0 deletions

View file

@ -28,6 +28,17 @@ pub fn setup_test_file(test_file: &str, use_fakesinks: bool) -> gst::Structure {
}
}
#[doc(alias = "gst_validate_print_action_types")]
pub fn print_action_types(action_types: Vec<&str>) {
assert_initialized_main_thread!();
unsafe {
ffi::gst_validate_print_action_types(
action_types.to_glib_none().0,
action_types.len() as i32,
);
}
}
#[cfg(test)]
mod tests {
#[test]

View file

@ -3,6 +3,7 @@ use glib::translate::*;
use crate::action::Action;
impl crate::Reporter {
#[doc(alias = "gst_validate_report_action")]
pub fn report_action(&self, action: &Action, issue_id: crate::IssueId, message: &str) {
unsafe {
ffi::gst_validate_report_action(