mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-05 14:58:41 +00:00
validate: Expose gst_validate::print_action_types
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1227>
This commit is contained in:
parent
9647ce8895
commit
98db1b546e
2 changed files with 12 additions and 0 deletions
|
@ -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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -3,6 +3,7 @@ use glib::translate::*;
|
||||||
use crate::action::Action;
|
use crate::action::Action;
|
||||||
|
|
||||||
impl crate::Reporter {
|
impl crate::Reporter {
|
||||||
|
#[doc(alias = "gst_validate_report_action")]
|
||||||
pub fn report_action(&self, action: &Action, issue_id: crate::IssueId, message: &str) {
|
pub fn report_action(&self, action: &Action, issue_id: crate::IssueId, message: &str) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_validate_report_action(
|
ffi::gst_validate_report_action(
|
||||||
|
|
Loading…
Reference in a new issue