diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index e0378e3af..854817122 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -7,7 +7,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -20,8 +19,8 @@ glib::glib_wrapper! { } impl AppSink { - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn get_buffer_list_support(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_buffer_list_support( @@ -68,8 +67,8 @@ impl AppSink { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn set_buffer_list_support(&self, enable_lists: bool) { unsafe { ffi::gst_app_sink_set_buffer_list_support( @@ -113,8 +112,8 @@ impl AppSink { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_preroll( @@ -124,8 +123,8 @@ impl AppSink { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_sample( @@ -137,7 +136,7 @@ impl AppSink { pub fn get_property_buffer_list(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"buffer-list\0".as_ptr() as *const _, @@ -155,14 +154,14 @@ impl AppSink { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"buffer-list\0".as_ptr() as *const _, - Value::from(&buffer_list).to_glib_none().0, + glib::Value::from(&buffer_list).to_glib_none().0, ); } } pub fn get_property_eos(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"eos\0".as_ptr() as *const _, diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 1a04305cc..5cc50b2ae 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -29,8 +28,8 @@ impl AppSrc { unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) } } @@ -61,8 +60,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_duration(&self, duration: gst::ClockTime) { unsafe { ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib()); @@ -95,7 +94,7 @@ impl AppSrc { pub fn get_property_block(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"block\0".as_ptr() as *const _, @@ -113,14 +112,14 @@ impl AppSrc { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"block\0".as_ptr() as *const _, - Value::from(&block).to_glib_none().0, + glib::Value::from(&block).to_glib_none().0, ); } } pub fn get_property_format(&self) -> gst::Format { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"format\0".as_ptr() as *const _, @@ -138,16 +137,16 @@ impl AppSrc { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"format\0".as_ptr() as *const _, - Value::from(&format).to_glib_none().0, + glib::Value::from(&format).to_glib_none().0, ); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_property_handle_segment_change(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"handle-segment-change\0".as_ptr() as *const _, @@ -160,21 +159,21 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"handle-segment-change\0".as_ptr() as *const _, - Value::from(&handle_segment_change).to_glib_none().0, + glib::Value::from(&handle_segment_change).to_glib_none().0, ); } } pub fn get_property_is_live(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"is-live\0".as_ptr() as *const _, @@ -192,14 +191,14 @@ impl AppSrc { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"is-live\0".as_ptr() as *const _, - Value::from(&is_live).to_glib_none().0, + glib::Value::from(&is_live).to_glib_none().0, ); } } pub fn get_property_max_latency(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"max-latency\0".as_ptr() as *const _, @@ -217,14 +216,14 @@ impl AppSrc { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"max-latency\0".as_ptr() as *const _, - Value::from(&max_latency).to_glib_none().0, + glib::Value::from(&max_latency).to_glib_none().0, ); } } pub fn get_property_min_latency(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"min-latency\0".as_ptr() as *const _, @@ -242,14 +241,14 @@ impl AppSrc { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"min-latency\0".as_ptr() as *const _, - Value::from(&min_latency).to_glib_none().0, + glib::Value::from(&min_latency).to_glib_none().0, ); } } pub fn get_property_min_percent(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"min-percent\0".as_ptr() as *const _, @@ -267,7 +266,7 @@ impl AppSrc { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"min-percent\0".as_ptr() as *const _, - Value::from(&min_percent).to_glib_none().0, + glib::Value::from(&min_percent).to_glib_none().0, ); } } @@ -425,8 +424,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_duration_notify( &self, f: F, @@ -504,8 +503,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn connect_property_handle_segment_change_notify( &self, f: F, diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 6737ed471..1b56affb1 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -54,19 +53,19 @@ impl StaticType for AppStreamType { } impl<'a> FromValueOptional<'a> for AppStreamType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AppStreamType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for AppStreamType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-app/sys/Cargo.toml b/gstreamer-app/sys/Cargo.toml index 234542807..c8a5da0c0 100644 --- a/gstreamer-app/sys/Cargo.toml +++ b/gstreamer-app/sys/Cargo.toml @@ -27,6 +27,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_app_sys" @@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_app_1_0] name = "gstreamer-app-1.0" version = "1.8" diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 7208ee16b..ea47999b2 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gstreamer_base_sys as gst_base; @@ -186,8 +186,8 @@ extern "C" { // GstAppSink //========================================================================= pub fn gst_app_sink_get_type() -> GType; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_app_sink_get_buffer_list_support(appsink: *mut GstAppSink) -> gboolean; pub fn gst_app_sink_get_caps(appsink: *mut GstAppSink) -> *mut gst::GstCaps; pub fn gst_app_sink_get_drop(appsink: *mut GstAppSink) -> gboolean; @@ -197,8 +197,8 @@ extern "C" { pub fn gst_app_sink_is_eos(appsink: *mut GstAppSink) -> gboolean; pub fn gst_app_sink_pull_preroll(appsink: *mut GstAppSink) -> *mut gst::GstSample; pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_app_sink_set_buffer_list_support(appsink: *mut GstAppSink, enable_lists: gboolean); pub fn gst_app_sink_set_callbacks( appsink: *mut GstAppSink, @@ -211,14 +211,14 @@ extern "C" { pub fn gst_app_sink_set_emit_signals(appsink: *mut GstAppSink, emit: gboolean); pub fn gst_app_sink_set_max_buffers(appsink: *mut GstAppSink, max: c_uint); pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_sink_try_pull_preroll( appsink: *mut GstAppSink, timeout: gst::GstClockTime, ) -> *mut gst::GstSample; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_sink_try_pull_sample( appsink: *mut GstAppSink, timeout: gst::GstClockTime, @@ -231,8 +231,8 @@ extern "C" { pub fn gst_app_src_end_of_stream(appsrc: *mut GstAppSrc) -> gst::GstFlowReturn; pub fn gst_app_src_get_caps(appsrc: *mut GstAppSrc) -> *mut gst::GstCaps; pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_src_get_duration(appsrc: *mut GstAppSrc) -> gst::GstClockTime; pub fn gst_app_src_get_emit_signals(appsrc: *mut GstAppSrc) -> gboolean; pub fn gst_app_src_get_latency(appsrc: *mut GstAppSrc, min: *mut u64, max: *mut u64); @@ -243,8 +243,8 @@ extern "C" { appsrc: *mut GstAppSrc, buffer: *mut gst::GstBuffer, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_app_src_push_buffer_list( appsrc: *mut GstAppSrc, buffer_list: *mut gst::GstBufferList, @@ -260,8 +260,8 @@ extern "C" { notify: glib::GDestroyNotify, ); pub fn gst_app_src_set_caps(appsrc: *mut GstAppSrc, caps: *const gst::GstCaps); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_src_set_duration(appsrc: *mut GstAppSrc, duration: gst::GstClockTime); pub fn gst_app_src_set_emit_signals(appsrc: *mut GstAppSrc, emit: gboolean); pub fn gst_app_src_set_latency(appsrc: *mut GstAppSrc, min: u64, max: u64); diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 5a958efb4..cdc261b39 100644 --- a/gstreamer-app/sys/tests/abi.rs +++ b/gstreamer-app/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_app_sys::*; diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-app/sys/tests/constant.c +++ b/gstreamer-app/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-app/sys/tests/layout.c +++ b/gstreamer-app/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/src/auto/audio_base_sink.rs b/gstreamer-audio/src/auto/audio_base_sink.rs index bc3d9d133..80e533cb7 100644 --- a/gstreamer-audio/src/auto/audio_base_sink.rs +++ b/gstreamer-audio/src/auto/audio_base_sink.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -194,7 +193,7 @@ impl> AudioBaseSinkExt for O { fn get_property_buffer_time(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"buffer-time\0".as_ptr() as *const _, @@ -212,14 +211,14 @@ impl> AudioBaseSinkExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"buffer-time\0".as_ptr() as *const _, - Value::from(&buffer_time).to_glib_none().0, + glib::Value::from(&buffer_time).to_glib_none().0, ); } } fn get_property_can_activate_pull(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"can-activate-pull\0".as_ptr() as *const _, @@ -237,14 +236,14 @@ impl> AudioBaseSinkExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"can-activate-pull\0".as_ptr() as *const _, - Value::from(&can_activate_pull).to_glib_none().0, + glib::Value::from(&can_activate_pull).to_glib_none().0, ); } } fn get_property_latency_time(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"latency-time\0".as_ptr() as *const _, @@ -262,7 +261,7 @@ impl> AudioBaseSinkExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"latency-time\0".as_ptr() as *const _, - Value::from(&latency_time).to_glib_none().0, + glib::Value::from(&latency_time).to_glib_none().0, ); } } diff --git a/gstreamer-audio/src/auto/audio_base_src.rs b/gstreamer-audio/src/auto/audio_base_src.rs index 4f34dfc51..57dca03d9 100644 --- a/gstreamer-audio/src/auto/audio_base_src.rs +++ b/gstreamer-audio/src/auto/audio_base_src.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -111,7 +110,7 @@ impl> AudioBaseSrcExt for O { fn get_property_actual_buffer_time(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"actual-buffer-time\0".as_ptr() as *const _, @@ -126,7 +125,7 @@ impl> AudioBaseSrcExt for O { fn get_property_actual_latency_time(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"actual-latency-time\0".as_ptr() as *const _, @@ -141,7 +140,7 @@ impl> AudioBaseSrcExt for O { fn get_property_buffer_time(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"buffer-time\0".as_ptr() as *const _, @@ -159,14 +158,14 @@ impl> AudioBaseSrcExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"buffer-time\0".as_ptr() as *const _, - Value::from(&buffer_time).to_glib_none().0, + glib::Value::from(&buffer_time).to_glib_none().0, ); } } fn get_property_latency_time(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"latency-time\0".as_ptr() as *const _, @@ -184,7 +183,7 @@ impl> AudioBaseSrcExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"latency-time\0".as_ptr() as *const _, - Value::from(&latency_time).to_glib_none().0, + glib::Value::from(&latency_time).to_glib_none().0, ); } } diff --git a/gstreamer-audio/src/auto/audio_decoder.rs b/gstreamer-audio/src/auto/audio_decoder.rs index f7793430b..6c71bb15a 100644 --- a/gstreamer-audio/src/auto/audio_decoder.rs +++ b/gstreamer-audio/src/auto/audio_decoder.rs @@ -56,8 +56,8 @@ pub trait AudioDecoderExt: 'static { fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_drainable(&self, enabled: bool); @@ -80,8 +80,8 @@ pub trait AudioDecoderExt: 'static { fn set_use_default_pad_acceptcaps(&self, use_: bool); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, @@ -228,8 +228,8 @@ impl> AudioDecoderExt for O { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { unsafe { ffi::gst_audio_decoder_set_allocation_caps( @@ -315,8 +315,8 @@ impl> AudioDecoderExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, diff --git a/gstreamer-audio/src/auto/audio_encoder.rs b/gstreamer-audio/src/auto/audio_encoder.rs index c0aa57704..c784711e4 100644 --- a/gstreamer-audio/src/auto/audio_encoder.rs +++ b/gstreamer-audio/src/auto/audio_encoder.rs @@ -53,8 +53,8 @@ pub trait AudioEncoderExt: 'static { fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_drainable(&self, enabled: bool); @@ -205,8 +205,8 @@ impl> AudioEncoderExt for O { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { unsafe { ffi::gst_audio_encoder_set_allocation_caps( diff --git a/gstreamer-audio/src/auto/audio_stream_align.rs b/gstreamer-audio/src/auto/audio_stream_align.rs index 363fc6054..a839d2774 100644 --- a/gstreamer-audio/src/auto/audio_stream_align.rs +++ b/gstreamer-audio/src/auto/audio_stream_align.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] use glib::translate::*; glib::glib_wrapper! { @@ -18,8 +18,8 @@ glib::glib_wrapper! { } impl AudioStreamAlign { - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn new( rate: i32, alignment_threshold: gst::ClockTime, @@ -35,8 +35,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_alignment_threshold(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_alignment_threshold( @@ -45,8 +45,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_discont_wait(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override( @@ -55,14 +55,14 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_rate(&self) -> i32 { unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_samples_since_discont(&self) -> u64 { unsafe { ffi::gst_audio_stream_align_get_samples_since_discont(mut_override( @@ -71,8 +71,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_timestamp_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont( @@ -81,16 +81,16 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn mark_discont(&mut self) { unsafe { ffi::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0); } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) { unsafe { ffi::gst_audio_stream_align_set_alignment_threshold( @@ -100,8 +100,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) { unsafe { ffi::gst_audio_stream_align_set_discont_wait( @@ -111,8 +111,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn set_rate(&mut self, rate: i32) { unsafe { ffi::gst_audio_stream_align_set_rate(self.to_glib_none_mut().0, rate); diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index 2df88b55f..b66ee88cc 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -150,19 +149,19 @@ impl StaticType for AudioChannelPosition { } impl<'a> FromValueOptional<'a> for AudioChannelPosition { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AudioChannelPosition { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for AudioChannelPosition { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -298,19 +297,19 @@ impl StaticType for AudioFormat { } impl<'a> FromValueOptional<'a> for AudioFormat { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AudioFormat { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for AudioFormat { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -356,19 +355,19 @@ impl StaticType for AudioLayout { } impl<'a> FromValueOptional<'a> for AudioLayout { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AudioLayout { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for AudioLayout { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -388,14 +387,14 @@ pub enum AudioRingBufferFormatType { Dts, Mpeg2Aac, Mpeg4Aac, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Mpeg2AacRaw, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Mpeg4AacRaw, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Flac, #[doc(hidden)] __Unknown(i32), @@ -419,15 +418,15 @@ impl ToGlib for AudioRingBufferFormatType { AudioRingBufferFormatType::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS, AudioRingBufferFormatType::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC, AudioRingBufferFormatType::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] AudioRingBufferFormatType::Mpeg2AacRaw => { ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] AudioRingBufferFormatType::Mpeg4AacRaw => { ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] AudioRingBufferFormatType::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC, AudioRingBufferFormatType::__Unknown(value) => value, } @@ -451,11 +450,11 @@ impl FromGlib for AudioRingBufferFormatType { 9 => AudioRingBufferFormatType::Dts, 10 => AudioRingBufferFormatType::Mpeg2Aac, 11 => AudioRingBufferFormatType::Mpeg4Aac, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 12 => AudioRingBufferFormatType::Mpeg2AacRaw, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 13 => AudioRingBufferFormatType::Mpeg4AacRaw, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 14 => AudioRingBufferFormatType::Flac, value => AudioRingBufferFormatType::__Unknown(value), } @@ -469,19 +468,19 @@ impl StaticType for AudioRingBufferFormatType { } impl<'a> FromValueOptional<'a> for AudioRingBufferFormatType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AudioRingBufferFormatType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for AudioRingBufferFormatType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-audio/src/auto/flags.rs b/gstreamer-audio/src/auto/flags.rs index beb791e25..e131a6e7b 100644 --- a/gstreamer-audio/src/auto/flags.rs +++ b/gstreamer-audio/src/auto/flags.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -41,19 +40,19 @@ impl StaticType for AudioFlags { } impl<'a> FromValueOptional<'a> for AudioFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AudioFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for AudioFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -92,19 +91,19 @@ impl StaticType for AudioFormatFlags { } impl<'a> FromValueOptional<'a> for AudioFormatFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AudioFormatFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for AudioFormatFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -139,19 +138,19 @@ impl StaticType for AudioPackFlags { } impl<'a> FromValueOptional<'a> for AudioPackFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for AudioPackFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for AudioPackFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-audio/src/auto/mod.rs b/gstreamer-audio/src/auto/mod.rs index 3047ec125..755680d63 100644 --- a/gstreamer-audio/src/auto/mod.rs +++ b/gstreamer-audio/src/auto/mod.rs @@ -28,11 +28,11 @@ mod stream_volume; pub use self::stream_volume::StreamVolumeExt; pub use self::stream_volume::{StreamVolume, NONE_STREAM_VOLUME}; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] mod audio_stream_align; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::audio_stream_align::AudioStreamAlign; mod enums; diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-audio/sys/Cargo.toml b/gstreamer-audio/sys/Cargo.toml index 5ed8903da..23c520513 100644 --- a/gstreamer-audio/sys/Cargo.toml +++ b/gstreamer-audio/sys/Cargo.toml @@ -30,6 +30,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_audio_sys" @@ -49,7 +50,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_audio_1_0] name = "gstreamer-audio-1.0" version = "1.8" diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index d7af10ae6..778526e44 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -1441,22 +1441,22 @@ extern "C" { //========================================================================= // GstAudioResamplerFilterInterpolation //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType; //========================================================================= // GstAudioResamplerFilterMode //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_filter_mode_get_type() -> GType; //========================================================================= // GstAudioResamplerMethod //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_method_get_type() -> GType; //========================================================================= @@ -1502,23 +1502,23 @@ extern "C" { //========================================================================= // GstAudioResamplerFlags //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_flags_get_type() -> GType; //========================================================================= // GstAudioBuffer //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_map( buffer: *mut GstAudioBuffer, info: *const GstAudioInfo, gstbuffer: *mut gst::GstBuffer, flags: gst::GstMapFlags, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer); pub fn gst_audio_buffer_clip( buffer: *mut gst::GstBuffer, @@ -1533,8 +1533,8 @@ extern "C" { from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_truncate( buffer: *mut gst::GstBuffer, bpf: c_int, @@ -1561,8 +1561,8 @@ extern "C" { out_channels: c_int, out_position: *mut GstAudioChannelPosition, ) -> *mut GstAudioChannelMixer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_channel_mixer_new_with_matrix( flags: GstAudioChannelMixerFlags, format: GstAudioFormat, @@ -1579,8 +1579,8 @@ extern "C" { //========================================================================= // GstAudioConverter //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_converter_get_type() -> GType; pub fn gst_audio_converter_new( flags: GstAudioConverterFlags, @@ -1588,8 +1588,8 @@ extern "C" { out_info: *mut GstAudioInfo, config: *mut gst::GstStructure, ) -> *mut GstAudioConverter; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_converter_convert( convert: *mut GstAudioConverter, flags: GstAudioConverterFlags, @@ -1613,8 +1613,8 @@ extern "C" { convert: *mut GstAudioConverter, in_frames: size_t, ) -> size_t; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean; pub fn gst_audio_converter_reset(convert: *mut GstAudioConverter); pub fn gst_audio_converter_samples( @@ -1625,8 +1625,8 @@ extern "C" { out: *mut gpointer, out_frames: size_t, ) -> gboolean; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean; pub fn gst_audio_converter_update_config( convert: *mut GstAudioConverter, @@ -1681,8 +1681,8 @@ extern "C" { //========================================================================= // GstAudioMeta //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1708,26 +1708,26 @@ extern "C" { //========================================================================= // GstAudioResampler //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_free(resampler: *mut GstAudioResampler); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_get_in_frames( resampler: *mut GstAudioResampler, out_frames: size_t, ) -> size_t; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_get_max_latency(resampler: *mut GstAudioResampler) -> size_t; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_get_out_frames( resampler: *mut GstAudioResampler, in_frames: size_t, ) -> size_t; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_resample( resampler: *mut GstAudioResampler, in_: *mut gpointer, @@ -1735,19 +1735,19 @@ extern "C" { out: *mut gpointer, out_frames: size_t, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_update( resampler: *mut GstAudioResampler, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_new( method: GstAudioResamplerMethod, flags: GstAudioResamplerFlags, @@ -1757,8 +1757,8 @@ extern "C" { out_rate: c_int, options: *mut gst::GstStructure, ) -> *mut GstAudioResampler; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_options_set_quality( method: GstAudioResamplerMethod, quality: c_uint, @@ -1770,51 +1770,51 @@ extern "C" { //========================================================================= // GstAudioStreamAlign //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_new( rate: c_int, alignment_threshold: gst::GstClockTime, discont_wait: gst::GstClockTime, ) -> *mut GstAudioStreamAlign; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_copy( align: *const GstAudioStreamAlign, ) -> *mut GstAudioStreamAlign; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_free(align: *mut GstAudioStreamAlign); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_alignment_threshold( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_discont_wait( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign) -> u64; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_timestamp_at_discont( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_mark_discont(align: *mut GstAudioStreamAlign); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_process( align: *mut GstAudioStreamAlign, discont: gboolean, @@ -1824,30 +1824,30 @@ extern "C" { out_duration: *mut gst::GstClockTime, out_sample_position: *mut u64, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_set_alignment_threshold( align: *mut GstAudioStreamAlign, alignment_threshold: gst::GstClockTime, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_set_discont_wait( align: *mut GstAudioStreamAlign, discont_wait: gst::GstClockTime, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_set_rate(align: *mut GstAudioStreamAlign, rate: c_int); //========================================================================= // GstAudioAggregator //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_set_sink_caps( aagg: *mut GstAudioAggregator, pad: *mut GstAudioAggregatorPad, @@ -1857,15 +1857,15 @@ extern "C" { //========================================================================= // GstAudioAggregatorConvertPad //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_convert_pad_get_type() -> GType; //========================================================================= // GstAudioAggregatorPad //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_pad_get_type() -> GType; //========================================================================= @@ -1966,8 +1966,8 @@ extern "C" { buf: *mut gst::GstBuffer, frames: c_int, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_finish_subframe( dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer, @@ -2008,8 +2008,8 @@ extern "C" { caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_decoder_set_allocation_caps( dec: *mut GstAudioDecoder, allocation_caps: *mut gst::GstCaps, @@ -2024,8 +2024,8 @@ extern "C" { pub fn gst_audio_decoder_set_max_errors(dec: *mut GstAudioDecoder, num: c_int); pub fn gst_audio_decoder_set_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime); pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_set_output_caps( dec: *mut GstAudioDecoder, caps: *mut gst::GstCaps, @@ -2087,8 +2087,8 @@ extern "C" { caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_encoder_set_allocation_caps( enc: *mut GstAudioEncoder, allocation_caps: *mut gst::GstCaps, @@ -2184,8 +2184,8 @@ extern "C" { cb: GstAudioRingBufferCallback, user_data: gpointer, ); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_audio_ring_buffer_set_callback_full( buf: *mut GstAudioRingBuffer, cb: GstAudioRingBufferCallback, @@ -2252,8 +2252,8 @@ extern "C" { force_order: gboolean, channel_mask: *mut u64, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_channel_positions_to_string( position: *const GstAudioChannelPosition, channels: c_int, @@ -2270,8 +2270,8 @@ extern "C" { pub fn gst_audio_clipping_meta_api_get_type() -> GType; pub fn gst_audio_downmix_meta_api_get_type() -> GType; pub fn gst_audio_format_info_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat; pub fn gst_audio_get_channel_reorder_map( channels: c_int, @@ -2288,15 +2288,15 @@ extern "C" { spec: *const GstAudioRingBufferSpec, endianness: c_int, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_audio_make_raw_caps( formats: *const GstAudioFormat, len: c_uint, layout: GstAudioLayout, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_api_get_type() -> GType; pub fn gst_audio_reorder_channels( data: gpointer, @@ -2320,8 +2320,8 @@ extern "C" { to_channels: c_int, matrix: *mut *const c_float, ) -> *mut GstAudioDownmixMeta; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_audio_meta( buffer: *mut gst::GstBuffer, info: *const GstAudioInfo, diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index 5a7169043..f6c347109 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_audio_sys::*; diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-audio/sys/tests/layout.c +++ b/gstreamer-audio/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/src/auto/adapter.rs b/gstreamer-base/src/auto/adapter.rs index 9dc5b09c8..abf3a4754 100644 --- a/gstreamer-base/src/auto/adapter.rs +++ b/gstreamer-base/src/auto/adapter.rs @@ -45,14 +45,14 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn distance_from_discont(&self) -> u64 { unsafe { ffi::gst_adapter_distance_from_discont(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn dts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_adapter_dts_at_discont(self.to_glib_none().0)) } } @@ -127,8 +127,8 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn offset_at_discont(&self) -> u64 { unsafe { ffi::gst_adapter_offset_at_discont(self.to_glib_none().0) } } @@ -158,8 +158,8 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn prev_offset(&self) -> (u64, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -194,8 +194,8 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn pts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_adapter_pts_at_discont(self.to_glib_none().0)) } } diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index f9f8fa410..4b5dbb0e1 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -2,11 +2,11 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::AggregatorPad; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::AggregatorStartTimeSelection; use glib::object::Cast; use glib::object::IsA; @@ -14,7 +14,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -32,75 +31,75 @@ unsafe impl Sync for Aggregator {} pub const NONE_AGGREGATOR: Option<&Aggregator> = None; pub trait AggregatorExt: 'static { - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_buffer_pool(&self) -> Option; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_latency(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn peek_next_sample>(&self, pad: &P) -> Option; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_src_caps(&self, caps: &gst::Caps); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn simple_get_next_time(&self) -> gst::ClockTime; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn update_segment(&self, segment: /*Ignored*/&gst::Segment); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_emit_signals(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_emit_signals(&self, emit_signals: bool); fn get_property_start_time(&self) -> u64; fn set_property_start_time(&self, start_time: u64); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection); - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_samples_selected(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_emit_signals_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn connect_property_latency_notify( &self, f: F, @@ -111,8 +110,8 @@ pub trait AggregatorExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_start_time_selection_notify( &self, f: F, @@ -120,14 +119,14 @@ pub trait AggregatorExt: 'static { } impl> AggregatorExt for O { - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) { // unsafe { TODO: call ffi:gst_aggregator_get_allocator() } //} - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_get_buffer_pool( @@ -136,8 +135,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_latency(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_aggregator_get_latency( @@ -146,8 +145,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_negotiate( @@ -156,8 +155,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn peek_next_sample>(&self, pad: &P) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_peek_next_sample( @@ -167,8 +166,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime) { unsafe { ffi::gst_aggregator_set_latency( @@ -179,16 +178,16 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_src_caps(&self, caps: &gst::Caps) { unsafe { ffi::gst_aggregator_set_src_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0); } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn simple_get_next_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_aggregator_simple_get_next_time( @@ -197,17 +196,17 @@ impl> AggregatorExt for O { } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn update_segment(&self, segment: /*Ignored*/&gst::Segment) { // unsafe { TODO: call ffi:gst_aggregator_update_segment() } //} - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_emit_signals(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"emit-signals\0".as_ptr() as *const _, @@ -220,21 +219,21 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_emit_signals(&self, emit_signals: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"emit-signals\0".as_ptr() as *const _, - Value::from(&emit_signals).to_glib_none().0, + glib::Value::from(&emit_signals).to_glib_none().0, ); } } fn get_property_start_time(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"start-time\0".as_ptr() as *const _, @@ -252,17 +251,17 @@ impl> AggregatorExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"start-time\0".as_ptr() as *const _, - Value::from(&start_time).to_glib_none().0, + glib::Value::from(&start_time).to_glib_none().0, ); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection { unsafe { let mut value = - Value::from_type(::static_type()); + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"start-time-selection\0".as_ptr() as *const _, @@ -275,8 +274,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_start_time_selection( &self, start_time_selection: AggregatorStartTimeSelection, @@ -285,19 +284,19 @@ impl> AggregatorExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"start-time-selection\0".as_ptr() as *const _, - Value::from(&start_time_selection).to_glib_none().0, + glib::Value::from(&start_time_selection).to_glib_none().0, ); } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_samples_selected(&self, f: F) -> SignalHandlerId { // Ignored segment: Gst.Segment //} - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_emit_signals_notify( &self, f: F, @@ -325,8 +324,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn connect_property_latency_notify( &self, f: F, @@ -381,8 +380,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_start_time_selection_notify( &self, f: F, diff --git a/gstreamer-base/src/auto/aggregator_pad.rs b/gstreamer-base/src/auto/aggregator_pad.rs index 1d66ff114..5d9e68a1a 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -7,12 +7,9 @@ use glib::object::IsA; use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::StaticType; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -30,32 +27,32 @@ unsafe impl Sync for AggregatorPad {} pub const NONE_AGGREGATOR_PAD: Option<&AggregatorPad> = None; pub trait AggregatorPadExt: 'static { - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn drop_buffer(&self) -> bool; - #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] + #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] fn has_buffer(&self) -> bool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_eos(&self) -> bool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn peek_buffer(&self) -> Option; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn pop_buffer(&self) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_property_emit_signals(&self) -> bool; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_property_emit_signals(&self, emit_signals: bool); fn connect_buffer_consumed( @@ -63,8 +60,8 @@ pub trait AggregatorPadExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_emit_signals_notify( &self, f: F, @@ -72,8 +69,8 @@ pub trait AggregatorPadExt: 'static { } impl> AggregatorPadExt for O { - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn drop_buffer(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_drop_buffer( @@ -82,8 +79,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] + #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] fn has_buffer(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_has_buffer( @@ -92,8 +89,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_eos(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_is_eos( @@ -102,8 +99,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn peek_buffer(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_pad_peek_buffer( @@ -112,8 +109,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn pop_buffer(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_pad_pop_buffer( @@ -122,11 +119,11 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_property_emit_signals(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"emit-signals\0".as_ptr() as *const _, @@ -139,14 +136,14 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_property_emit_signals(&self, emit_signals: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"emit-signals\0".as_ptr() as *const _, - Value::from(&emit_signals).to_glib_none().0, + glib::Value::from(&emit_signals).to_glib_none().0, ); } } @@ -184,8 +181,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_emit_signals_notify( &self, f: F, diff --git a/gstreamer-base/src/auto/base_parse.rs b/gstreamer-base/src/auto/base_parse.rs index 03a27aef4..3c56acabe 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -28,8 +27,8 @@ pub const NONE_BASE_PARSE: Option<&BaseParse> = None; pub trait BaseParseExt: 'static { fn add_index_entry(&self, offset: u64, ts: gst::ClockTime, key: bool, force: bool) -> bool; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn drain(&self); fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -75,8 +74,8 @@ impl> BaseParseExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn drain(&self) { unsafe { ffi::gst_base_parse_drain(self.as_ref().to_glib_none().0); @@ -162,7 +161,7 @@ impl> BaseParseExt for O { fn get_property_disable_passthrough(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"disable-passthrough\0".as_ptr() as *const _, @@ -180,7 +179,7 @@ impl> BaseParseExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"disable-passthrough\0".as_ptr() as *const _, - Value::from(&disable_passthrough).to_glib_none().0, + glib::Value::from(&disable_passthrough).to_glib_none().0, ); } } diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index c30ed05a5..2b402e171 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -30,8 +29,8 @@ pub trait BaseSinkExt: 'static { fn get_blocksize(&self) -> u32; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_drop_out_of_segment(&self) -> bool; fn get_last_sample(&self) -> Option; @@ -42,14 +41,14 @@ pub trait BaseSinkExt: 'static { fn get_max_lateness(&self) -> i64; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_processing_deadline(&self) -> gst::ClockTime; fn get_render_delay(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stats(&self) -> Option; fn get_sync(&self) -> bool; @@ -68,8 +67,8 @@ pub trait BaseSinkExt: 'static { fn set_blocksize(&self, blocksize: u32); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool); fn set_last_sample_enabled(&self, enabled: bool); @@ -78,8 +77,8 @@ pub trait BaseSinkExt: 'static { fn set_max_lateness(&self, max_lateness: i64); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime); fn set_qos_enabled(&self, enabled: bool); @@ -134,8 +133,8 @@ pub trait BaseSinkExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_processing_deadline_notify( &self, f: F, @@ -151,8 +150,8 @@ pub trait BaseSinkExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_stats_notify( &self, f: F, @@ -183,8 +182,8 @@ impl> BaseSinkExt for O { unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_drop_out_of_segment(&self) -> bool { unsafe { from_glib(ffi::gst_base_sink_get_drop_out_of_segment( @@ -217,8 +216,8 @@ impl> BaseSinkExt for O { unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_processing_deadline(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_base_sink_get_processing_deadline( @@ -235,8 +234,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stats(&self) -> Option { unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) } } @@ -289,8 +288,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) { unsafe { ffi::gst_base_sink_set_drop_out_of_segment( @@ -321,8 +320,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) { unsafe { ffi::gst_base_sink_set_processing_deadline( @@ -364,7 +363,7 @@ impl> BaseSinkExt for O { fn get_property_async(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"async\0".as_ptr() as *const _, @@ -382,14 +381,14 @@ impl> BaseSinkExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"async\0".as_ptr() as *const _, - Value::from(&async_).to_glib_none().0, + glib::Value::from(&async_).to_glib_none().0, ); } } fn get_property_enable_last_sample(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"enable-last-sample\0".as_ptr() as *const _, @@ -407,14 +406,14 @@ impl> BaseSinkExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"enable-last-sample\0".as_ptr() as *const _, - Value::from(&enable_last_sample).to_glib_none().0, + glib::Value::from(&enable_last_sample).to_glib_none().0, ); } } fn get_property_qos(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, @@ -432,7 +431,7 @@ impl> BaseSinkExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, - Value::from(&qos).to_glib_none().0, + glib::Value::from(&qos).to_glib_none().0, ); } } @@ -602,8 +601,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_processing_deadline_notify( &self, f: F, @@ -688,8 +687,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_stats_notify( &self, f: F, diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index bc3dc9d2f..d0dd3ceed 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -38,8 +37,8 @@ pub trait BaseSrcExt: 'static { fn is_live(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool; #[cfg_attr(feature = "v1_18", deprecated)] @@ -123,8 +122,8 @@ impl> BaseSrcExt for O { unsafe { from_glib(ffi::gst_base_src_is_live(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(ffi::gst_base_src_negotiate(self.as_ref().to_glib_none().0)) } } @@ -196,7 +195,7 @@ impl> BaseSrcExt for O { fn get_property_num_buffers(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"num-buffers\0".as_ptr() as *const _, @@ -214,14 +213,14 @@ impl> BaseSrcExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"num-buffers\0".as_ptr() as *const _, - Value::from(&num_buffers).to_glib_none().0, + glib::Value::from(&num_buffers).to_glib_none().0, ); } } fn get_property_typefind(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"typefind\0".as_ptr() as *const _, @@ -239,7 +238,7 @@ impl> BaseSrcExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"typefind\0".as_ptr() as *const _, - Value::from(&typefind).to_glib_none().0, + glib::Value::from(&typefind).to_glib_none().0, ); } } diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 0d0212a3c..22bf0d58f 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -36,8 +35,8 @@ pub trait BaseTransformExt: 'static { fn is_qos_enabled(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn reconfigure(&self) -> bool; fn reconfigure_sink(&self); @@ -105,8 +104,8 @@ impl> BaseTransformExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn reconfigure(&self) -> bool { unsafe { from_glib(ffi::gst_base_transform_reconfigure( @@ -197,7 +196,7 @@ impl> BaseTransformExt for O { fn get_property_qos(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, @@ -215,7 +214,7 @@ impl> BaseTransformExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, - Value::from(&qos).to_glib_none().0, + glib::Value::from(&qos).to_glib_none().0, ); } } diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 0d906ad74..00cbdbf46 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -6,12 +6,11 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum AggregatorStartTimeSelection { @@ -22,8 +21,8 @@ pub enum AggregatorStartTimeSelection { __Unknown(i32), } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for AggregatorStartTimeSelection { type GlibType = ffi::GstAggregatorStartTimeSelection; @@ -38,8 +37,8 @@ impl ToGlib for AggregatorStartTimeSelection { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for AggregatorStartTimeSelection { fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { @@ -53,34 +52,34 @@ impl FromGlib for AggregatorStartTimeSelec } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for AggregatorStartTimeSelection { fn static_type() -> Type { unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) } } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for AggregatorStartTimeSelection { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for AggregatorStartTimeSelection { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-base/src/auto/functions.rs b/gstreamer-base/src/auto/functions.rs index da06d7de0..fb8e4f253 100644 --- a/gstreamer-base/src/auto/functions.rs +++ b/gstreamer-base/src/auto/functions.rs @@ -37,8 +37,8 @@ pub fn type_find_helper_for_extension>( // unsafe { TODO: call ffi:gst_type_find_helper_get_range() } //} -//#[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))] -//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_3")))] +//#[cfg(any(feature = "v1_14_3", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] //pub fn type_find_helper_get_range_full, Q: IsA, R: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> gst::FlowReturn>(obj: &P, parent: Option<&Q>, func: R, size: u64, extension: Option<&str>) -> (gst::FlowReturn, gst::Caps, gst::TypeFindProbability) { // unsafe { TODO: call ffi:gst_type_find_helper_get_range_full() } //} diff --git a/gstreamer-base/src/auto/mod.rs b/gstreamer-base/src/auto/mod.rs index f84d3a361..828c6259d 100644 --- a/gstreamer-base/src/auto/mod.rs +++ b/gstreamer-base/src/auto/mod.rs @@ -5,24 +5,24 @@ mod adapter; pub use self::adapter::Adapter; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] mod aggregator; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator::AggregatorExt; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator::{Aggregator, NONE_AGGREGATOR}; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] mod aggregator_pad; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator_pad::AggregatorPadExt; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator_pad::{AggregatorPad, NONE_AGGREGATOR_PAD}; mod base_parse; @@ -45,8 +45,8 @@ mod push_src; pub use self::push_src::{PushSrc, NONE_PUSH_SRC}; mod enums; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::enums::AggregatorStartTimeSelection; mod flags; @@ -56,11 +56,11 @@ pub mod functions; #[doc(hidden)] pub mod traits { - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use super::AggregatorExt; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use super::AggregatorPadExt; pub use super::BaseParseExt; pub use super::BaseSinkExt; diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-base/sys/Cargo.toml b/gstreamer-base/sys/Cargo.toml index 6f3145498..083263afc 100644 --- a/gstreamer-base/sys/Cargo.toml +++ b/gstreamer-base/sys/Cargo.toml @@ -31,6 +31,7 @@ v1_14_1 = ["v1_14"] v1_14_3 = ["v1_14_1"] v1_16 = ["v1_14_3"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_base_sys" @@ -50,7 +51,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_base_1_0] name = "gstreamer-base-1.0" version = "1.8" diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index f1e14d908..55384cf2e 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -1216,8 +1216,8 @@ extern "C" { //========================================================================= // GstAggregatorStartTimeSelection //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_start_time_selection_get_type() -> GType; //========================================================================= @@ -1229,8 +1229,8 @@ extern "C" { flags: GstBaseParseFrameFlags, overhead: c_int, ) -> *mut GstBaseParseFrame; - #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))] + #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_base_parse_frame_copy(frame: *mut GstBaseParseFrame) -> *mut GstBaseParseFrame; pub fn gst_base_parse_frame_free(frame: *mut GstBaseParseFrame); pub fn gst_base_parse_frame_init(frame: *mut GstBaseParseFrame); @@ -1291,101 +1291,101 @@ extern "C" { //========================================================================= // GstBitWriter //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_init_with_data( bitwriter: *mut GstBitWriter, data: *mut u8, size: c_uint, initialized: gboolean, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint16( bitwriter: *mut GstBitWriter, value: u16, nbits: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint32( bitwriter: *mut GstBitWriter, value: u32, nbits: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint64( bitwriter: *mut GstBitWriter, value: u64, nbits: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint8( bitwriter: *mut GstBitWriter, value: u8, nbits: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bytes( bitwriter: *mut GstBitWriter, data: *const u8, nbytes: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new() -> *mut GstBitWriter; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new_with_data( data: *mut u8, size: c_uint, initialized: gboolean, ) -> *mut GstBitWriter; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter; //========================================================================= @@ -1616,13 +1616,13 @@ extern "C" { pub fn gst_flow_combiner_add_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad); pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner); - #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))] + #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_flow_combiner_ref(combiner: *mut GstFlowCombiner) -> *mut GstFlowCombiner; pub fn gst_flow_combiner_remove_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad); pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner); - #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))] + #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_update_flow( combiner: *mut GstFlowCombiner, @@ -1637,8 +1637,8 @@ extern "C" { //========================================================================= // GstQueueArray //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_clear(array: *mut GstQueueArray); pub fn gst_queue_array_drop_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer; pub fn gst_queue_array_drop_struct( @@ -1656,30 +1656,30 @@ extern "C" { pub fn gst_queue_array_is_empty(array: *mut GstQueueArray) -> gboolean; pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_pop_head(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_pop_head_struct(array: *mut GstQueueArray) -> gpointer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_pop_tail(array: *mut GstQueueArray) -> gpointer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_pop_tail_struct(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_push_tail(array: *mut GstQueueArray, data: gpointer); pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_set_clear_func( array: *mut GstQueueArray, clear_func: glib::GDestroyNotify, @@ -1704,11 +1704,11 @@ extern "C" { offset: size_t, size: size_t, ) -> *mut glib::GBytes; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_distance_from_discont(adapter: *mut GstAdapter) -> u64; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_dts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime; pub fn gst_adapter_flush(adapter: *mut GstAdapter, flush: size_t); pub fn gst_adapter_get_buffer(adapter: *mut GstAdapter, nbytes: size_t) -> *mut gst::GstBuffer; @@ -1737,8 +1737,8 @@ extern "C" { size: size_t, value: *mut u32, ) -> ssize_t; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_offset_at_discont(adapter: *mut GstAdapter) -> u64; pub fn gst_adapter_prev_dts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime; pub fn gst_adapter_prev_dts_at_offset( @@ -1746,8 +1746,8 @@ extern "C" { offset: size_t, distance: *mut u64, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_prev_offset(adapter: *mut GstAdapter, distance: *mut u64) -> u64; pub fn gst_adapter_prev_pts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime; pub fn gst_adapter_prev_pts_at_offset( @@ -1755,8 +1755,8 @@ extern "C" { offset: size_t, distance: *mut u64, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_pts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime; pub fn gst_adapter_push(adapter: *mut GstAdapter, buf: *mut gst::GstBuffer); pub fn gst_adapter_take(adapter: *mut GstAdapter, nbytes: size_t) -> gpointer; @@ -1776,45 +1776,45 @@ extern "C" { //========================================================================= // GstAggregator //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_finish_buffer( aggregator: *mut GstAggregator, buffer: *mut gst::GstBuffer, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_finish_buffer_list( aggregator: *mut GstAggregator, bufferlist: *mut gst::GstBufferList, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_allocator( self_: *mut GstAggregator, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_peek_next_sample( self_: *mut GstAggregator, pad: *mut GstAggregatorPad, ) -> *mut gst::GstSample; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_selected_samples( self_: *mut GstAggregator, pts: gst::GstClockTime, @@ -1822,21 +1822,21 @@ extern "C" { duration: gst::GstClockTime, info: *mut gst::GstStructure, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_set_latency( self_: *mut GstAggregator, min_latency: gst::GstClockTime, max_latency: gst::GstClockTime, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_update_segment( self_: *mut GstAggregator, segment: *const gst::GstSegment, @@ -1845,23 +1845,23 @@ extern "C" { //========================================================================= // GstAggregatorPad //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean; - #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] + #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; //========================================================================= @@ -1882,8 +1882,8 @@ extern "C" { dest_format: gst::GstFormat, dest_value: *mut i64, ) -> gboolean; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_base_parse_drain(parse: *mut GstBaseParse); pub fn gst_base_parse_finish_frame( parse: *mut GstBaseParse, @@ -1938,19 +1938,19 @@ extern "C" { obj: *mut gst::GstMiniObject, ) -> gst::GstFlowReturn; pub fn gst_base_sink_get_blocksize(sink: *mut GstBaseSink) -> c_uint; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_base_sink_get_drop_out_of_segment(sink: *mut GstBaseSink) -> gboolean; pub fn gst_base_sink_get_last_sample(sink: *mut GstBaseSink) -> *mut gst::GstSample; pub fn gst_base_sink_get_latency(sink: *mut GstBaseSink) -> gst::GstClockTime; pub fn gst_base_sink_get_max_bitrate(sink: *mut GstBaseSink) -> u64; pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime; pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure; pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean; pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64; @@ -1967,8 +1967,8 @@ extern "C" { ) -> gboolean; pub fn gst_base_sink_set_async_enabled(sink: *mut GstBaseSink, enabled: gboolean); pub fn gst_base_sink_set_blocksize(sink: *mut GstBaseSink, blocksize: c_uint); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_base_sink_set_drop_out_of_segment( sink: *mut GstBaseSink, drop_out_of_segment: gboolean, @@ -1976,8 +1976,8 @@ extern "C" { pub fn gst_base_sink_set_last_sample_enabled(sink: *mut GstBaseSink, enabled: gboolean); pub fn gst_base_sink_set_max_bitrate(sink: *mut GstBaseSink, max_bitrate: u64); pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_base_sink_set_processing_deadline( sink: *mut GstBaseSink, processing_deadline: gst::GstClockTime, @@ -2013,8 +2013,8 @@ extern "C" { pub fn gst_base_src_get_do_timestamp(src: *mut GstBaseSrc) -> gboolean; pub fn gst_base_src_is_async(src: *mut GstBaseSrc) -> gboolean; pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean; pub fn gst_base_src_new_seamless_segment( src: *mut GstBaseSrc, @@ -2022,8 +2022,8 @@ extern "C" { stop: i64, time: i64, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_src_new_segment( src: *mut GstBaseSrc, segment: *const gst::GstSegment, @@ -2044,8 +2044,8 @@ extern "C" { pub fn gst_base_src_set_live(src: *mut GstBaseSrc, live: gboolean); pub fn gst_base_src_start_complete(basesrc: *mut GstBaseSrc, ret: gst::GstFlowReturn); pub fn gst_base_src_start_wait(basesrc: *mut GstBaseSrc) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_base_src_submit_buffer_list( src: *mut GstBaseSrc, buffer_list: *mut gst::GstBufferList, @@ -2067,8 +2067,8 @@ extern "C" { pub fn gst_base_transform_is_in_place(trans: *mut GstBaseTransform) -> gboolean; pub fn gst_base_transform_is_passthrough(trans: *mut GstBaseTransform) -> gboolean; pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean; pub fn gst_base_transform_reconfigure_sink(trans: *mut GstBaseTransform); pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform); @@ -2244,8 +2244,8 @@ extern "C" { buf: *mut gst::GstBuffer, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_buffer_with_extension( obj: *mut gst::GstObject, buf: *mut gst::GstBuffer, @@ -2258,8 +2258,8 @@ extern "C" { size: size_t, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_data_with_extension( obj: *mut gst::GstObject, data: *const u8, @@ -2279,8 +2279,8 @@ extern "C" { extension: *const c_char, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_3")))] + #[cfg(any(feature = "v1_14_3", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] pub fn gst_type_find_helper_get_range_full( obj: *mut gst::GstObject, parent: *mut gst::GstObject, diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index 962eccf8b..d27a872bb 100644 --- a/gstreamer-base/sys/tests/abi.rs +++ b/gstreamer-base/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_base_sys::*; diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-base/sys/tests/constant.c +++ b/gstreamer-base/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-base/sys/tests/layout.c +++ b/gstreamer-base/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index 048ddc898..0ae370631 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -66,8 +65,8 @@ impl TestClock { // unsafe { TODO: call ffi:gst_test_clock_peek_next_pending_id() } //} - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool { // unsafe { TODO: call ffi:gst_test_clock_process_id() } //} @@ -86,8 +85,8 @@ impl TestClock { } } - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn timed_wait_for_multiple_pending_ids(&self, count: u32, timeout_ms: u32, pending_list: /*Unimplemented*/Vec) -> bool { // unsafe { TODO: call ffi:gst_test_clock_timed_wait_for_multiple_pending_ids() } //} @@ -108,7 +107,7 @@ impl TestClock { pub fn get_property_clock_type(&self) -> gst::ClockType { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"clock-type\0".as_ptr() as *const _, @@ -126,14 +125,14 @@ impl TestClock { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"clock-type\0".as_ptr() as *const _, - Value::from(&clock_type).to_glib_none().0, + glib::Value::from(&clock_type).to_glib_none().0, ); } } pub fn get_property_start_time(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"start-time\0".as_ptr() as *const _, diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-check/sys/Cargo.toml b/gstreamer-check/sys/Cargo.toml index 17780f564..38dd874cd 100644 --- a/gstreamer-check/sys/Cargo.toml +++ b/gstreamer-check/sys/Cargo.toml @@ -27,6 +27,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_check_sys" @@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_check_1_0] name = "gstreamer-check-1.0" version = "1.8" diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index eeb60ffcb..5e3a1fcf5 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -129,8 +129,8 @@ extern "C" { user_data: gpointer, destroy_data: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_harness_add_propose_allocation_meta( h: *mut GstHarness, api: GType, @@ -182,8 +182,8 @@ extern "C" { pub fn gst_harness_play(h: *mut GstHarness); pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer; pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_harness_pull_until_eos( h: *mut GstHarness, buf: *mut *mut gst::GstBuffer, @@ -296,14 +296,14 @@ extern "C" { h: *mut GstHarness, sleep: c_ulong, ) -> *mut GstHarnessThread; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_harness_take_all_data(h: *mut GstHarness, size: *mut size_t) -> *mut u8; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_harness_take_all_data_as_buffer(h: *mut GstHarness) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_harness_take_all_data_as_bytes(h: *mut GstHarness) -> *mut glib::GBytes; pub fn gst_harness_teardown(h: *mut GstHarness); pub fn gst_harness_try_pull(h: *mut GstHarness) -> *mut gst::GstBuffer; @@ -363,8 +363,8 @@ extern "C" { test_clock: *mut GstTestClock, pending_id: *mut gst::GstClockID, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_test_clock_process_id( test_clock: *mut GstTestClock, pending_id: gst::GstClockID, @@ -375,8 +375,8 @@ extern "C" { ) -> c_uint; pub fn gst_test_clock_process_next_clock_id(test_clock: *mut GstTestClock) -> gst::GstClockID; pub fn gst_test_clock_set_time(test_clock: *mut GstTestClock, new_time: gst::GstClockTime); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_test_clock_timed_wait_for_multiple_pending_ids( test_clock: *mut GstTestClock, count: c_uint, diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index f9629291c..afebdeed3 100644 --- a/gstreamer-check/sys/tests/abi.rs +++ b/gstreamer-check/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_check_sys::*; diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-check/sys/tests/constant.c +++ b/gstreamer-check/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-check/sys/tests/layout.c +++ b/gstreamer-check/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/src/auto/argb_control_binding.rs b/gstreamer-controller/src/auto/argb_control_binding.rs index ce10d7126..19e72a5ad 100644 --- a/gstreamer-controller/src/auto/argb_control_binding.rs +++ b/gstreamer-controller/src/auto/argb_control_binding.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -108,7 +107,8 @@ pub trait ARGBControlBindingExt: 'static { impl> ARGBControlBindingExt for O { fn get_property_control_source_a(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-a\0".as_ptr() as *const _, @@ -128,14 +128,15 @@ impl> ARGBControlBindingExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-a\0".as_ptr() as *const _, - Value::from(control_source_a).to_glib_none().0, + glib::Value::from(control_source_a).to_glib_none().0, ); } } fn get_property_control_source_b(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-b\0".as_ptr() as *const _, @@ -155,14 +156,15 @@ impl> ARGBControlBindingExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-b\0".as_ptr() as *const _, - Value::from(control_source_b).to_glib_none().0, + glib::Value::from(control_source_b).to_glib_none().0, ); } } fn get_property_control_source_g(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-g\0".as_ptr() as *const _, @@ -182,14 +184,15 @@ impl> ARGBControlBindingExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-g\0".as_ptr() as *const _, - Value::from(control_source_g).to_glib_none().0, + glib::Value::from(control_source_g).to_glib_none().0, ); } } fn get_property_control_source_r(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-r\0".as_ptr() as *const _, @@ -209,7 +212,7 @@ impl> ARGBControlBindingExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source-r\0".as_ptr() as *const _, - Value::from(control_source_r).to_glib_none().0, + glib::Value::from(control_source_r).to_glib_none().0, ); } } diff --git a/gstreamer-controller/src/auto/direct_control_binding.rs b/gstreamer-controller/src/auto/direct_control_binding.rs index 28c9ac6ee..2b9d11c6f 100644 --- a/gstreamer-controller/src/auto/direct_control_binding.rs +++ b/gstreamer-controller/src/auto/direct_control_binding.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -75,7 +74,7 @@ pub trait DirectControlBindingExt: 'static { impl> DirectControlBindingExt for O { fn get_property_absolute(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"absolute\0".as_ptr() as *const _, @@ -90,7 +89,8 @@ impl> DirectControlBindingExt for O { fn get_property_control_source(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source\0".as_ptr() as *const _, @@ -107,7 +107,7 @@ impl> DirectControlBindingExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"control-source\0".as_ptr() as *const _, - Value::from(control_source).to_glib_none().0, + glib::Value::from(control_source).to_glib_none().0, ); } } diff --git a/gstreamer-controller/src/auto/enums.rs b/gstreamer-controller/src/auto/enums.rs index 8cbb9c368..5632ff2bd 100644 --- a/gstreamer-controller/src/auto/enums.rs +++ b/gstreamer-controller/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -57,19 +56,19 @@ impl StaticType for InterpolationMode { } impl<'a> FromValueOptional<'a> for InterpolationMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for InterpolationMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for InterpolationMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -124,19 +123,19 @@ impl StaticType for LFOWaveform { } impl<'a> FromValueOptional<'a> for LFOWaveform { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for LFOWaveform { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for LFOWaveform { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-controller/src/auto/interpolation_control_source.rs b/gstreamer-controller/src/auto/interpolation_control_source.rs index f671c220e..b80fa337b 100644 --- a/gstreamer-controller/src/auto/interpolation_control_source.rs +++ b/gstreamer-controller/src/auto/interpolation_control_source.rs @@ -10,7 +10,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -57,7 +56,8 @@ pub trait InterpolationControlSourceExt: 'static { impl> InterpolationControlSourceExt for O { fn get_property_mode(&self) -> InterpolationMode { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"mode\0".as_ptr() as *const _, @@ -75,7 +75,7 @@ impl> InterpolationControlSourceExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"mode\0".as_ptr() as *const _, - Value::from(&mode).to_glib_none().0, + glib::Value::from(&mode).to_glib_none().0, ); } } diff --git a/gstreamer-controller/src/auto/lfo_control_source.rs b/gstreamer-controller/src/auto/lfo_control_source.rs index ae4ce342a..e976eb7a8 100644 --- a/gstreamer-controller/src/auto/lfo_control_source.rs +++ b/gstreamer-controller/src/auto/lfo_control_source.rs @@ -9,7 +9,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -91,7 +90,7 @@ pub trait LFOControlSourceExt: 'static { impl> LFOControlSourceExt for O { fn get_property_amplitude(&self) -> f64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"amplitude\0".as_ptr() as *const _, @@ -109,14 +108,14 @@ impl> LFOControlSourceExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"amplitude\0".as_ptr() as *const _, - Value::from(&litude).to_glib_none().0, + glib::Value::from(&litude).to_glib_none().0, ); } } fn get_property_frequency(&self) -> f64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"frequency\0".as_ptr() as *const _, @@ -134,14 +133,14 @@ impl> LFOControlSourceExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"frequency\0".as_ptr() as *const _, - Value::from(&frequency).to_glib_none().0, + glib::Value::from(&frequency).to_glib_none().0, ); } } fn get_property_offset(&self) -> f64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"offset\0".as_ptr() as *const _, @@ -159,14 +158,14 @@ impl> LFOControlSourceExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"offset\0".as_ptr() as *const _, - Value::from(&offset).to_glib_none().0, + glib::Value::from(&offset).to_glib_none().0, ); } } fn get_property_timeshift(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"timeshift\0".as_ptr() as *const _, @@ -184,14 +183,14 @@ impl> LFOControlSourceExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"timeshift\0".as_ptr() as *const _, - Value::from(×hift).to_glib_none().0, + glib::Value::from(×hift).to_glib_none().0, ); } } fn get_property_waveform(&self) -> LFOWaveform { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"waveform\0".as_ptr() as *const _, @@ -209,7 +208,7 @@ impl> LFOControlSourceExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"waveform\0".as_ptr() as *const _, - Value::from(&waveform).to_glib_none().0, + glib::Value::from(&waveform).to_glib_none().0, ); } } diff --git a/gstreamer-controller/src/auto/mod.rs b/gstreamer-controller/src/auto/mod.rs index 7921ed664..a3a2fedbd 100644 --- a/gstreamer-controller/src/auto/mod.rs +++ b/gstreamer-controller/src/auto/mod.rs @@ -20,11 +20,11 @@ mod lfo_control_source; pub use self::lfo_control_source::LFOControlSourceExt; pub use self::lfo_control_source::{LFOControlSource, NONE_LFO_CONTROL_SOURCE}; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] mod proxy_control_binding; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::proxy_control_binding::{ProxyControlBinding, NONE_PROXY_CONTROL_BINDING}; mod timed_value_control_source; diff --git a/gstreamer-controller/src/auto/proxy_control_binding.rs b/gstreamer-controller/src/auto/proxy_control_binding.rs index b84fb9cf9..fd396e75e 100644 --- a/gstreamer-controller/src/auto/proxy_control_binding.rs +++ b/gstreamer-controller/src/auto/proxy_control_binding.rs @@ -2,11 +2,11 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use glib::object::Cast; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use glib::object::IsA; use glib::translate::*; @@ -19,8 +19,8 @@ glib::glib_wrapper! { } impl ProxyControlBinding { - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn new, Q: IsA>( object: &P, property_name: &str, diff --git a/gstreamer-controller/src/auto/trigger_control_source.rs b/gstreamer-controller/src/auto/trigger_control_source.rs index 3b6b158e4..3d9235b8f 100644 --- a/gstreamer-controller/src/auto/trigger_control_source.rs +++ b/gstreamer-controller/src/auto/trigger_control_source.rs @@ -9,7 +9,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -55,7 +54,7 @@ pub trait TriggerControlSourceExt: 'static { impl> TriggerControlSourceExt for O { fn get_property_tolerance(&self) -> i64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"tolerance\0".as_ptr() as *const _, @@ -73,7 +72,7 @@ impl> TriggerControlSourceExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"tolerance\0".as_ptr() as *const _, - Value::from(&tolerance).to_glib_none().0, + glib::Value::from(&tolerance).to_glib_none().0, ); } } diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-controller/sys/Cargo.toml b/gstreamer-controller/sys/Cargo.toml index b2a2df643..f68addb2e 100644 --- a/gstreamer-controller/sys/Cargo.toml +++ b/gstreamer-controller/sys/Cargo.toml @@ -28,6 +28,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_controller_sys" @@ -47,7 +48,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_controller_1_0] name = "gstreamer-controller-1.0" version = "1.8" diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index 3ff42bdb7..a85060864 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -504,8 +504,8 @@ extern "C" { // GstProxyControlBinding //========================================================================= pub fn gst_proxy_control_binding_get_type() -> GType; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_proxy_control_binding_new( object: *mut gst::GstObject, property_name: *const c_char, diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index fa663d43e..5bace8a94 100644 --- a/gstreamer-controller/sys/tests/abi.rs +++ b/gstreamer-controller/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_controller_sys::*; diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-controller/sys/tests/constant.c +++ b/gstreamer-controller/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-controller/sys/tests/layout.c +++ b/gstreamer-controller/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-editing-services/src/auto/base_effect.rs b/gstreamer-editing-services/src/auto/base_effect.rs index 3abf0ef3c..9629febe1 100644 --- a/gstreamer-editing-services/src/auto/base_effect.rs +++ b/gstreamer-editing-services/src/auto/base_effect.rs @@ -19,22 +19,22 @@ glib::glib_wrapper! { pub const NONE_BASE_EFFECT: Option<&BaseEffect> = None; pub trait BaseEffectExt: 'static { - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_time_effect(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn register_time_property(&self, child_property_name: &str) -> bool; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option) -> bool; } impl> BaseEffectExt for O { - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_time_effect(&self) -> bool { unsafe { from_glib(ffi::ges_base_effect_is_time_effect( @@ -43,8 +43,8 @@ impl> BaseEffectExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn register_time_property(&self, child_property_name: &str) -> bool { unsafe { from_glib(ffi::ges_base_effect_register_time_property( @@ -54,8 +54,8 @@ impl> BaseEffectExt for O { } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option) -> bool { // unsafe { TODO: call ffi:ges_base_effect_set_time_translation_funcs() } //} diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index 651b0a7ee..9f7403819 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -6,8 +6,8 @@ use crate::Asset; use crate::BaseEffect; use crate::Container; use crate::Extractable; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::FrameNumber; use crate::Layer; use crate::TimelineElement; @@ -21,8 +21,8 @@ use glib::signal::SignalHandlerId; use glib::translate::*; use std::boxed::Box as Box_; use std::mem::transmute; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -38,16 +38,16 @@ pub const NONE_CLIP: Option<&Clip> = None; pub trait ClipExt: 'static { fn add_asset>(&self, asset: &P) -> Result; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_child_to_track, Q: IsA>( &self, child: &P, track: &Q, ) -> Result; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_top_effect>(&self, effect: &P, index: i32) -> Result<(), glib::Error>; @@ -64,12 +64,12 @@ pub trait ClipExt: 'static { type_: glib::types::Type, ) -> Vec; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_duration_limit(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_internal_time_from_timeline_time>( &self, child: &P, @@ -80,16 +80,16 @@ pub trait ClipExt: 'static { fn get_supported_formats(&self) -> TrackType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_internal_time>( &self, child: &P, internal_time: gst::ClockTime, ) -> Result; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_source_frame( &self, frame_number: FrameNumber, @@ -103,12 +103,12 @@ pub trait ClipExt: 'static { fn move_to_layer>(&self, layer: &P) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn move_to_layer_full>(&self, layer: &P) -> Result<(), glib::Error>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_top_effect>(&self, effect: &P) -> Result<(), glib::Error>; fn set_supported_formats(&self, supportedformats: TrackType); @@ -119,8 +119,8 @@ pub trait ClipExt: 'static { newindex: u32, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_top_effect_index_full>( &self, effect: &P, @@ -135,12 +135,12 @@ pub trait ClipExt: 'static { fn split(&self, position: u64) -> Result; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn split_full(&self, position: u64) -> Result, glib::Error>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_duration_limit_notify( &self, f: F, @@ -165,8 +165,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_child_to_track, Q: IsA>( &self, child: &P, @@ -188,8 +188,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_top_effect>( &self, effect: &P, @@ -241,8 +241,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_duration_limit(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_clip_get_duration_limit( @@ -251,8 +251,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_internal_time_from_timeline_time>( &self, child: &P, @@ -286,8 +286,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_internal_time>( &self, child: &P, @@ -309,8 +309,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_source_frame( &self, frame_number: FrameNumber, @@ -368,8 +368,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn move_to_layer_full>(&self, layer: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -386,8 +386,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_top_effect>(&self, effect: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -430,8 +430,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_top_effect_index_full>( &self, effect: &P, @@ -480,8 +480,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn split_full(&self, position: u64) -> Result, glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -495,8 +495,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_duration_limit_notify( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/container.rs b/gstreamer-editing-services/src/auto/container.rs index b119aeae7..7ff63630b 100644 --- a/gstreamer-editing-services/src/auto/container.rs +++ b/gstreamer-editing-services/src/auto/container.rs @@ -13,7 +13,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -136,7 +135,7 @@ impl> GESContainerExt for O { fn get_property_height(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"height\0".as_ptr() as *const _, diff --git a/gstreamer-editing-services/src/auto/effect.rs b/gstreamer-editing-services/src/auto/effect.rs index b683755fe..03b87ca69 100644 --- a/gstreamer-editing-services/src/auto/effect.rs +++ b/gstreamer-editing-services/src/auto/effect.rs @@ -9,7 +9,6 @@ use crate::TrackElement; use glib::object::IsA; use glib::translate::*; use glib::StaticType; -use glib::Value; glib::glib_wrapper! { pub struct Effect(Object) @extends BaseEffect, TrackElement, TimelineElement, @implements Extractable; @@ -38,7 +37,7 @@ pub trait EffectExt: 'static { impl> EffectExt for O { fn get_property_bin_description(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"bin-description\0".as_ptr() as *const _, diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index a5bdded31..ba8566ee4 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -54,19 +53,19 @@ impl StaticType for Edge { } impl<'a> FromValueOptional<'a> for Edge { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for Edge { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for Edge { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -121,19 +120,19 @@ impl StaticType for EditMode { } impl<'a> FromValueOptional<'a> for EditMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for EditMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for EditMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-editing-services/src/auto/flags.rs b/gstreamer-editing-services/src/auto/flags.rs index e45f218e5..d4e8ff4d3 100644 --- a/gstreamer-editing-services/src/auto/flags.rs +++ b/gstreamer-editing-services/src/auto/flags.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -45,19 +44,19 @@ impl StaticType for PipelineFlags { } impl<'a> FromValueOptional<'a> for PipelineFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PipelineFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for PipelineFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -96,19 +95,19 @@ impl StaticType for TrackType { } impl<'a> FromValueOptional<'a> for TrackType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TrackType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for TrackType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-editing-services/src/auto/group.rs b/gstreamer-editing-services/src/auto/group.rs index 2c19627d7..d932eea36 100644 --- a/gstreamer-editing-services/src/auto/group.rs +++ b/gstreamer-editing-services/src/auto/group.rs @@ -11,7 +11,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -74,7 +73,7 @@ pub trait GroupExt: 'static { impl> GroupExt for O { fn get_property_duration(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"duration\0".as_ptr() as *const _, @@ -92,14 +91,14 @@ impl> GroupExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"duration\0".as_ptr() as *const _, - Value::from(&duration).to_glib_none().0, + glib::Value::from(&duration).to_glib_none().0, ); } } fn get_property_in_point(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"in-point\0".as_ptr() as *const _, @@ -117,14 +116,14 @@ impl> GroupExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"in-point\0".as_ptr() as *const _, - Value::from(&in_point).to_glib_none().0, + glib::Value::from(&in_point).to_glib_none().0, ); } } fn get_property_max_duration(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"max-duration\0".as_ptr() as *const _, @@ -142,14 +141,14 @@ impl> GroupExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"max-duration\0".as_ptr() as *const _, - Value::from(&max_duration).to_glib_none().0, + glib::Value::from(&max_duration).to_glib_none().0, ); } } fn get_property_priority(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"priority\0".as_ptr() as *const _, @@ -167,14 +166,14 @@ impl> GroupExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"priority\0".as_ptr() as *const _, - Value::from(&priority).to_glib_none().0, + glib::Value::from(&priority).to_glib_none().0, ); } } fn get_property_start(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"start\0".as_ptr() as *const _, @@ -192,7 +191,7 @@ impl> GroupExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"start\0".as_ptr() as *const _, - Value::from(&start).to_glib_none().0, + glib::Value::from(&start).to_glib_none().0, ); } } diff --git a/gstreamer-editing-services/src/auto/layer.rs b/gstreamer-editing-services/src/auto/layer.rs index 0c5b97eda..f906ad937 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -6,8 +6,8 @@ use crate::Asset; use crate::Clip; use crate::Extractable; use crate::Timeline; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::Track; use crate::TrackType; use glib::object::Cast; @@ -17,8 +17,8 @@ use glib::signal::SignalHandlerId; use glib::translate::*; use std::boxed::Box as Box_; use std::mem::transmute; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -54,8 +54,8 @@ pub trait LayerExt: 'static { track_types: TrackType, ) -> Result; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_asset_full>( &self, asset: &P, @@ -67,12 +67,12 @@ pub trait LayerExt: 'static { fn add_clip>(&self, clip: &P) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_clip_full>(&self, clip: &P) -> Result<(), glib::Error>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_active_for_track>(&self, track: &P) -> bool; fn get_auto_transition(&self) -> bool; @@ -91,8 +91,8 @@ pub trait LayerExt: 'static { fn remove_clip>(&self, clip: &P) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool; fn set_auto_transition(&self, auto_transition: bool); @@ -102,8 +102,8 @@ pub trait LayerExt: 'static { fn set_timeline>(&self, timeline: &P); - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_active_changed(&self, f: F) -> SignalHandlerId; fn connect_clip_added(&self, f: F) -> SignalHandlerId; @@ -141,8 +141,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_asset_full>( &self, asset: &P, @@ -182,8 +182,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_clip_full>(&self, clip: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -200,8 +200,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_active_for_track>(&self, track: &P) -> bool { unsafe { from_glib(ffi::ges_layer_get_active_for_track( @@ -265,8 +265,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool { unsafe { from_glib(ffi::ges_layer_set_active_for_tracks( @@ -301,8 +301,8 @@ impl> LayerExt for O { } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_active_changed(&self, f: F) -> SignalHandlerId { // Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 } //} diff --git a/gstreamer-editing-services/src/auto/pipeline.rs b/gstreamer-editing-services/src/auto/pipeline.rs index 50c3d38e7..45ee6daad 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -10,7 +10,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; use std::ptr; @@ -227,7 +226,7 @@ impl> GESPipelineExt for O { fn get_property_audio_filter(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"audio-filter\0".as_ptr() as *const _, @@ -244,14 +243,14 @@ impl> GESPipelineExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"audio-filter\0".as_ptr() as *const _, - Value::from(audio_filter).to_glib_none().0, + glib::Value::from(audio_filter).to_glib_none().0, ); } } fn get_property_audio_sink(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"audio-sink\0".as_ptr() as *const _, @@ -268,14 +267,14 @@ impl> GESPipelineExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"audio-sink\0".as_ptr() as *const _, - Value::from(audio_sink).to_glib_none().0, + glib::Value::from(audio_sink).to_glib_none().0, ); } } fn get_property_timeline(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"timeline\0".as_ptr() as *const _, @@ -289,7 +288,7 @@ impl> GESPipelineExt for O { fn get_property_video_filter(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"video-filter\0".as_ptr() as *const _, @@ -306,14 +305,14 @@ impl> GESPipelineExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"video-filter\0".as_ptr() as *const _, - Value::from(video_filter).to_glib_none().0, + glib::Value::from(video_filter).to_glib_none().0, ); } } fn get_property_video_sink(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"video-sink\0".as_ptr() as *const _, @@ -330,7 +329,7 @@ impl> GESPipelineExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"video-sink\0".as_ptr() as *const _, - Value::from(video_sink).to_glib_none().0, + glib::Value::from(video_sink).to_glib_none().0, ); } } diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index 5b431a4e9..6fc145f2a 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -38,8 +38,8 @@ pub trait ProjectExt: 'static { profile: &P, ) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn add_formatter(&self, formatter: /*Ignored*/&Formatter); fn create_asset(&self, id: Option<&str>, extractable_type: glib::types::Type) -> bool; @@ -78,8 +78,8 @@ pub trait ProjectExt: 'static { fn connect_asset_removed(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_error_loading( &self, f: F, @@ -92,8 +92,8 @@ pub trait ProjectExt: 'static { fn connect_loaded(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_loading(&self, f: F) -> SignalHandlerId; fn connect_missing_uri Option + 'static>( @@ -127,8 +127,8 @@ impl> ProjectExt for O { } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn add_formatter(&self, formatter: /*Ignored*/&Formatter) { // unsafe { TODO: call ffi:ges_project_add_formatter() } //} @@ -337,8 +337,8 @@ impl> ProjectExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_error_loading( &self, f: F, @@ -440,8 +440,8 @@ impl> ProjectExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_loading(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn loading_trampoline( this: *mut ffi::GESProject, diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index 9c8b2e8b4..1b373bf03 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -3,12 +3,12 @@ // DO NOT EDIT use crate::Asset; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::Clip; use crate::Extractable; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::FrameNumber; use crate::Group; use crate::Layer; @@ -83,12 +83,12 @@ pub trait TimelineExt: 'static { fn get_element(&self, name: &str) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime; fn get_groups(&self) -> Vec; @@ -109,8 +109,8 @@ pub trait TimelineExt: 'static { fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn move_layer>( &self, layer: &P, @@ -149,8 +149,8 @@ pub trait TimelineExt: 'static { fn connect_layer_removed(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_select_element_track Track + 'static>( &self, f: F, @@ -255,16 +255,16 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber { unsafe { ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib()) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_get_frame_time( @@ -353,8 +353,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn move_layer>( &self, layer: &P, @@ -561,8 +561,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_select_element_track Track + 'static>( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 9bed56ca1..410c97183 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -2,15 +2,15 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::Edge; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::EditMode; use crate::Extractable; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::Layer; use crate::Timeline; use crate::TrackType; @@ -20,14 +20,13 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem; use std::mem::transmute; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -45,8 +44,8 @@ pub trait TimelineElementExt: 'static { fn copy(&self, deep: bool) -> Result; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit( &self, layers: &[Layer], @@ -56,8 +55,8 @@ pub trait TimelineElementExt: 'static { position: u64, ) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit_full( &self, new_layer_priority: i64, @@ -78,16 +77,16 @@ pub trait TimelineElementExt: 'static { fn get_inpoint(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_layer_priority(&self) -> u32; fn get_max_duration(&self) -> gst::ClockTime; fn get_name(&self) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_natural_framerate(&self) -> Option<(i32, i32)>; fn get_parent(&self) -> Option; @@ -124,8 +123,8 @@ pub trait TimelineElementExt: 'static { //fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value); - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error>; //fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); @@ -158,12 +157,12 @@ pub trait TimelineElementExt: 'static { fn set_property_serialize(&self, serialize: bool); - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_added(&self, f: F) -> SignalHandlerId; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_removed(&self, f: F) -> SignalHandlerId; //fn connect_deep_notify(&self, f: F) -> SignalHandlerId; @@ -204,8 +203,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit( &self, layers: &[Layer], @@ -226,8 +225,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit_full( &self, new_layer_priority: i64, @@ -285,8 +284,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_layer_priority(&self) -> u32 { unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) } } @@ -307,8 +306,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_natural_framerate(&self) -> Option<(i32, i32)> { unsafe { let mut framerate_n = mem::MaybeUninit::uninit(); @@ -445,8 +444,8 @@ impl> TimelineElementExt for O { // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_by_pspec() } //} - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error> { // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_full() } //} @@ -550,7 +549,7 @@ impl> TimelineElementExt for O { fn get_property_in_point(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"in-point\0".as_ptr() as *const _, @@ -568,14 +567,14 @@ impl> TimelineElementExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"in-point\0".as_ptr() as *const _, - Value::from(&in_point).to_glib_none().0, + glib::Value::from(&in_point).to_glib_none().0, ); } } fn get_property_serialize(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"serialize\0".as_ptr() as *const _, @@ -593,19 +592,19 @@ impl> TimelineElementExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"serialize\0".as_ptr() as *const _, - Value::from(&serialize).to_glib_none().0, + glib::Value::from(&serialize).to_glib_none().0, ); } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_added(&self, f: F) -> SignalHandlerId { // Ignored prop: GObject.ParamSpec //} - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_removed(&self, f: F) -> SignalHandlerId { // Ignored prop: GObject.ParamSpec //} diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index e6791e51e..11dc6765a 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -11,11 +11,10 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -38,8 +37,8 @@ pub const NONE_TRACK: Option<&Track> = None; pub trait GESTrackExt: 'static { fn add_element>(&self, object: &P) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_element_full>(&self, object: &P) -> Result<(), glib::Error>; fn commit(&self) -> bool; @@ -50,8 +49,8 @@ pub trait GESTrackExt: 'static { fn get_mixing(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_restriction_caps(&self) -> Option; fn get_timeline(&self) -> Option; @@ -61,8 +60,8 @@ pub trait GESTrackExt: 'static { object: &P, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_element_full>(&self, object: &P) -> Result<(), glib::Error>; //fn set_create_element_for_gap_func gst::Element + 'static>(&self, func: P); @@ -77,12 +76,12 @@ pub trait GESTrackExt: 'static { fn get_property_duration(&self) -> u64; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_id(&self) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_id(&self, id: Option<&str>); fn get_property_restriction_caps(&self) -> Option; @@ -103,8 +102,8 @@ pub trait GESTrackExt: 'static { fn connect_property_duration_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_id_notify(&self, f: F) -> SignalHandlerId; fn connect_property_mixing_notify(&self, f: F) -> SignalHandlerId; @@ -128,8 +127,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_element_full>(&self, object: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -166,8 +165,8 @@ impl> GESTrackExt for O { unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_restriction_caps(&self) -> Option { unsafe { from_glib_full(ffi::ges_track_get_restriction_caps( @@ -195,8 +194,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_element_full>(&self, object: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -252,7 +251,7 @@ impl> GESTrackExt for O { fn get_property_duration(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"duration\0".as_ptr() as *const _, @@ -265,11 +264,11 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_id(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"id\0".as_ptr() as *const _, @@ -279,21 +278,21 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_id(&self, id: Option<&str>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"id\0".as_ptr() as *const _, - Value::from(id).to_glib_none().0, + glib::Value::from(id).to_glib_none().0, ); } } fn get_property_restriction_caps(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"restriction-caps\0".as_ptr() as *const _, @@ -307,7 +306,7 @@ impl> GESTrackExt for O { fn get_property_track_type(&self) -> TrackType { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"track-type\0".as_ptr() as *const _, @@ -430,8 +429,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_id_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_id_trampoline( this: *mut ffi::GESTrack, diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index 5f9ffd4f2..a488f0250 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -15,7 +15,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -38,8 +37,8 @@ pub trait TrackElementExt: 'static { whitelist: &[&str], ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn clamp_control_source(&self, property_name: &str); #[cfg_attr(feature = "v1_18", deprecated)] @@ -53,8 +52,8 @@ pub trait TrackElementExt: 'static { //fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 }; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_auto_clamp_control_sources(&self) -> bool; //fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option; @@ -69,14 +68,14 @@ pub trait TrackElementExt: 'static { fn get_track_type(&self) -> TrackType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_internal_source(&self) -> bool; fn is_active(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_core(&self) -> bool; //fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option; @@ -85,22 +84,22 @@ pub trait TrackElementExt: 'static { fn set_active(&self, active: bool) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_auto_clamp_control_sources(&self, auto_clamp: bool); //fn set_control_source(&self, source: /*Ignored*/&gst::ControlSource, property_name: &str, binding_type: &str) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_has_internal_source(&self, has_internal_source: bool) -> bool; fn set_track_type(&self, type_: TrackType); fn get_property_active(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_has_internal_source(&self) -> bool; //fn connect_control_binding_added(&self, f: F) -> SignalHandlerId; @@ -109,15 +108,15 @@ pub trait TrackElementExt: 'static { fn connect_property_active_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_auto_clamp_control_sources_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_has_internal_source_notify( &self, f: F, @@ -147,8 +146,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn clamp_control_source(&self, property_name: &str) { unsafe { ffi::ges_track_element_clamp_control_source( @@ -183,8 +182,8 @@ impl> TrackElementExt for O { // unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() } //} - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_auto_clamp_control_sources(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_get_auto_clamp_control_sources( @@ -237,8 +236,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_internal_source(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_has_internal_source( @@ -255,8 +254,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_core(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_is_core( @@ -290,8 +289,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_auto_clamp_control_sources(&self, auto_clamp: bool) { unsafe { ffi::ges_track_element_set_auto_clamp_control_sources( @@ -305,8 +304,8 @@ impl> TrackElementExt for O { // unsafe { TODO: call ffi:ges_track_element_set_control_source() } //} - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_has_internal_source(&self, has_internal_source: bool) -> bool { unsafe { from_glib(ffi::ges_track_element_set_has_internal_source( @@ -324,7 +323,7 @@ impl> TrackElementExt for O { fn get_property_active(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"active\0".as_ptr() as *const _, @@ -337,11 +336,11 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_has_internal_source(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"has-internal-source\0".as_ptr() as *const _, @@ -386,8 +385,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_auto_clamp_control_sources_notify( &self, f: F, @@ -415,8 +414,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_has_internal_source_notify( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/uri_clip.rs b/gstreamer-editing-services/src/auto/uri_clip.rs index cd31ad18f..398b2e6eb 100644 --- a/gstreamer-editing-services/src/auto/uri_clip.rs +++ b/gstreamer-editing-services/src/auto/uri_clip.rs @@ -12,7 +12,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -88,7 +87,7 @@ impl> UriClipExt for O { fn get_property_is_image(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"is-image\0".as_ptr() as *const _, @@ -103,7 +102,7 @@ impl> UriClipExt for O { fn get_property_mute(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"mute\0".as_ptr() as *const _, diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index f82399417..b3b282fd4 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -9,10 +9,9 @@ use glib::object::IsA; use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; use std::ptr; @@ -26,8 +25,8 @@ glib::glib_wrapper! { } impl UriClipAsset { - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result { // unsafe { TODO: call ffi:ges_uri_clip_asset_finish() } //} @@ -57,26 +56,26 @@ pub trait UriClipAssetExt: 'static { fn get_info(&self) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_max_duration(&self) -> gst::ClockTime; fn get_stream_assets(&self) -> Vec; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool; fn set_property_duration(&self, duration: u64); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_is_nested_timeline(&self) -> bool; fn connect_property_duration_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_is_nested_timeline_notify( &self, f: F, @@ -100,8 +99,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_max_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_uri_clip_asset_get_max_duration( @@ -118,8 +117,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool { unsafe { from_glib(ffi::ges_uri_clip_asset_is_image( @@ -133,16 +132,16 @@ impl> UriClipAssetExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"duration\0".as_ptr() as *const _, - Value::from(&duration).to_glib_none().0, + glib::Value::from(&duration).to_glib_none().0, ); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_is_nested_timeline(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"is-nested-timeline\0".as_ptr() as *const _, @@ -179,8 +178,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_is_nested_timeline_notify( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/uri_source_asset.rs b/gstreamer-editing-services/src/auto/uri_source_asset.rs index d81cc762c..b7401c679 100644 --- a/gstreamer-editing-services/src/auto/uri_source_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_source_asset.rs @@ -24,8 +24,8 @@ pub trait UriSourceAssetExt: 'static { fn get_stream_uri(&self) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool; } @@ -54,8 +54,8 @@ impl> UriSourceAssetExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool { unsafe { from_glib(ffi::ges_uri_source_asset_is_image( diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-editing-services/sys/Cargo.toml b/gstreamer-editing-services/sys/Cargo.toml index 3b1539c05..f61b50311 100644 --- a/gstreamer-editing-services/sys/Cargo.toml +++ b/gstreamer-editing-services/sys/Cargo.toml @@ -33,6 +33,7 @@ v1_16 = ["v1_14"] v1_18 = ["v1_16"] v1_2 = [] v1_4 = ["v1_2"] +dox = [] [lib] name = "gstreamer_editing_services_sys" @@ -52,7 +53,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gst_editing_services_1_0] name = "gst-editing-services-1.0" version = "1.8" diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index a52226496..64d710b53 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -2651,16 +2651,16 @@ extern "C" { // GESEdge //========================================================================= pub fn ges_edge_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_edge_name(edge: GESEdge) -> *const c_char; //========================================================================= // GESEditMode //========================================================================= pub fn ges_edit_mode_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char; //========================================================================= @@ -2798,17 +2798,17 @@ extern "C" { // GESBaseEffect //========================================================================= pub fn ges_base_effect_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_is_time_effect(effect: *mut GESBaseEffect) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_register_time_property( effect: *mut GESBaseEffect, child_property_name: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_set_time_translation_funcs( effect: *mut GESBaseEffect, source_to_sink_func: GESBaseEffectTimeTranslationFunc, @@ -2837,16 +2837,16 @@ extern "C" { //========================================================================= pub fn ges_clip_get_type() -> GType; pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_add_child_to_track( clip: *mut GESClip, child: *mut GESTrackElement, track: *mut GESTrack, error: *mut *mut glib::GError, ) -> *mut GESTrackElement; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_add_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2864,11 +2864,11 @@ extern "C" { track_type: GESTrackType, type_: GType, ) -> *mut glib::GList; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_duration_limit(clip: *mut GESClip) -> gst::GstClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_internal_time_from_timeline_time( clip: *mut GESClip, child: *mut GESTrackElement, @@ -2877,16 +2877,16 @@ extern "C" { ) -> gst::GstClockTime; pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer; pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_timeline_time_from_internal_time( clip: *mut GESClip, child: *mut GESTrackElement, internal_time: gst::GstClockTime, error: *mut *mut glib::GError, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_timeline_time_from_source_frame( clip: *mut GESClip, frame_number: GESFrameNumber, @@ -2899,15 +2899,15 @@ extern "C" { ) -> c_int; pub fn ges_clip_get_top_effects(clip: *mut GESClip) -> *mut glib::GList; pub fn ges_clip_move_to_layer(clip: *mut GESClip, layer: *mut GESLayer) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_move_to_layer_full( clip: *mut GESClip, layer: *mut GESLayer, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_remove_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2919,8 +2919,8 @@ extern "C" { effect: *mut GESBaseEffect, newindex: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_set_top_effect_index_full( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2933,8 +2933,8 @@ extern "C" { newpriority: c_uint, ) -> gboolean; pub fn ges_clip_split(clip: *mut GESClip, position: u64) -> *mut GESClip; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_split_full( clip: *mut GESClip, position: u64, @@ -2945,14 +2945,14 @@ extern "C" { // GESClipAsset //========================================================================= pub fn ges_clip_asset_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_asset_get_frame_time( self_: *mut GESClipAsset, frame_number: GESFrameNumber, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_asset_get_natural_framerate( self_: *mut GESClipAsset, framerate_n: *mut c_int, @@ -3074,8 +3074,8 @@ extern "C" { duration: gst::GstClockTime, track_types: GESTrackType, ) -> *mut GESClip; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_add_asset_full( layer: *mut GESLayer, asset: *mut GESAsset, @@ -3086,15 +3086,15 @@ extern "C" { error: *mut *mut glib::GError, ) -> *mut GESClip; pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_add_clip_full( layer: *mut GESLayer, clip: *mut GESClip, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_get_active_for_track(layer: *mut GESLayer, track: *mut GESTrack) -> gboolean; pub fn ges_layer_get_auto_transition(layer: *mut GESLayer) -> gboolean; pub fn ges_layer_get_clips(layer: *mut GESLayer) -> *mut glib::GList; @@ -3108,8 +3108,8 @@ extern "C" { pub fn ges_layer_get_timeline(layer: *mut GESLayer) -> *mut GESTimeline; pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean; pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_set_active_for_tracks( layer: *mut GESLayer, active: gboolean, @@ -3122,40 +3122,40 @@ extern "C" { //========================================================================= // GESMarker //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_get_type() -> GType; //========================================================================= // GESMarkerList //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_new() -> *mut GESMarkerList; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_add( list: *mut GESMarkerList, position: gst::GstClockTime, ) -> *mut GESMarker; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_move( list: *mut GESMarkerList, marker: *mut GESMarker, position: gst::GstClockTime, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint; //========================================================================= @@ -3233,8 +3233,8 @@ extern "C" { project: *mut GESProject, profile: *mut gst_pbutils::GstEncodingProfile, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter); pub fn ges_project_create_asset( project: *mut GESProject, @@ -3280,15 +3280,15 @@ extern "C" { // GESSourceClip //========================================================================= pub fn ges_source_clip_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_source_clip_new_time_overlay() -> *mut GESSourceClip; //========================================================================= // GESSourceClipAsset //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_source_clip_asset_get_type() -> GType; //========================================================================= @@ -3370,14 +3370,14 @@ extern "C" { timeline: *mut GESTimeline, name: *const c_char, ) -> *mut GESTimelineElement; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_get_frame_at( self_: *mut GESTimeline, timestamp: gst::GstClockTime, ) -> GESFrameNumber; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_get_frame_time( self_: *mut GESTimeline, frame_number: GESFrameNumber, @@ -3401,8 +3401,8 @@ extern "C" { uri: *const c_char, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_timeline_move_layer( timeline: *mut GESTimeline, layer: *mut GESLayer, @@ -3442,8 +3442,8 @@ extern "C" { self_: *mut GESTimelineElement, deep: gboolean, ) -> *mut GESTimelineElement; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit( self_: *mut GESTimelineElement, layers: *mut glib::GList, @@ -3452,8 +3452,8 @@ extern "C" { edge: GESEdge, position: u64, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit_full( self_: *mut GESTimelineElement, new_layer_priority: i64, @@ -3480,15 +3480,15 @@ extern "C" { //pub fn ges_timeline_element_get_child_property_valist(self_: *mut GESTimelineElement, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list); pub fn ges_timeline_element_get_duration(self_: *mut GESTimelineElement) -> gst::GstClockTime; pub fn ges_timeline_element_get_inpoint(self_: *mut GESTimelineElement) -> gst::GstClockTime; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_timeline_element_get_layer_priority(self_: *mut GESTimelineElement) -> u32; pub fn ges_timeline_element_get_max_duration( self_: *mut GESTimelineElement, ) -> gst::GstClockTime; pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_get_natural_framerate( self_: *mut GESTimelineElement, framerate_n: *mut c_int, @@ -3553,8 +3553,8 @@ extern "C" { pspec: *mut gobject::GParamSpec, value: *const gobject::GValue, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_set_child_property_full( self_: *mut GESTimelineElement, property_name: *const c_char, @@ -3648,8 +3648,8 @@ extern "C" { pub fn ges_track_get_type() -> GType; pub fn ges_track_new(type_: GESTrackType, caps: *mut gst::GstCaps) -> *mut GESTrack; pub fn ges_track_add_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_add_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3659,14 +3659,14 @@ extern "C" { pub fn ges_track_get_caps(track: *mut GESTrack) -> *const gst::GstCaps; pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList; pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_get_restriction_caps(track: *mut GESTrack) -> *mut gst::GstCaps; pub fn ges_track_get_timeline(track: *mut GESTrack) -> *const GESTimeline; pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_remove_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3692,8 +3692,8 @@ extern "C" { blacklist: *mut *const c_char, whitelist: *mut *const c_char, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_clamp_control_source( object: *mut GESTrackElement, property_name: *const c_char, @@ -3708,8 +3708,8 @@ extern "C" { pub fn ges_track_element_get_all_control_bindings( trackelement: *mut GESTrackElement, ) -> *mut glib::GHashTable; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_get_auto_clamp_control_sources( object: *mut GESTrackElement, ) -> gboolean; @@ -3738,12 +3738,12 @@ extern "C" { pub fn ges_track_element_get_nleobject(object: *mut GESTrackElement) -> *mut gst::GstElement; pub fn ges_track_element_get_track(object: *mut GESTrackElement) -> *mut GESTrack; pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean; pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_is_core(object: *mut GESTrackElement) -> gboolean; pub fn ges_track_element_list_children_properties( object: *mut GESTrackElement, @@ -3761,8 +3761,8 @@ extern "C" { ) -> gboolean; pub fn ges_track_element_set_active(object: *mut GESTrackElement, active: gboolean) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_auto_clamp_control_sources( object: *mut GESTrackElement, auto_clamp: gboolean, @@ -3789,8 +3789,8 @@ extern "C" { property_name: *const c_char, binding_type: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_has_internal_source( object: *mut GESTrackElement, has_internal_source: gboolean, @@ -3801,8 +3801,8 @@ extern "C" { // GESTrackElementAsset //========================================================================= pub fn ges_track_element_asset_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_asset_get_natural_framerate( self_: *mut GESTrackElementAsset, framerate_n: *mut c_int, @@ -3843,8 +3843,8 @@ extern "C" { // GESUriClipAsset //========================================================================= pub fn ges_uri_clip_asset_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_uri_clip_asset_finish( res: *mut gio::GAsyncResult, error: *mut *mut glib::GError, @@ -3863,12 +3863,12 @@ extern "C" { pub fn ges_uri_clip_asset_get_info( self_: *const GESUriClipAsset, ) -> *mut gst_pbutils::GstDiscovererInfo; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_uri_clip_asset_get_max_duration(self_: *mut GESUriClipAsset) -> gst::GstClockTime; pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean; //========================================================================= @@ -3882,16 +3882,16 @@ extern "C" { asset: *mut GESUriSourceAsset, ) -> *mut gst_pbutils::GstDiscovererStreamInfo; pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean; //========================================================================= // GESVideoSource //========================================================================= pub fn ges_video_source_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_video_source_get_natural_size( self_: *mut GESVideoSource, width: *mut c_int, @@ -4005,8 +4005,8 @@ extern "C" { meta_item: *const c_char, dest: *mut i64, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_get_marker_list( container: *mut GESMetaContainer, key: *const c_char, @@ -4096,8 +4096,8 @@ extern "C" { meta_item: *const c_char, value: u64, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_register_static_meta( container: *mut GESMetaContainer, flags: GESMetaFlag, @@ -4139,8 +4139,8 @@ extern "C" { meta_item: *const c_char, value: i64, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_set_marker_list( container: *mut GESMetaContainer, meta_item: *const c_char, @@ -4172,8 +4172,8 @@ extern "C" { //========================================================================= pub fn ges_add_missing_uri_relocation_uri(uri: *const c_char, recurse: gboolean) -> gboolean; pub fn ges_deinit(); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset; pub fn ges_init() -> gboolean; pub fn ges_init_check( @@ -4182,8 +4182,8 @@ extern "C" { error: *mut *mut glib::GError, ) -> gboolean; pub fn ges_init_get_option_group() -> *mut glib::GOptionGroup; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_is_initialized() -> gboolean; pub fn ges_list_assets(filter: GType) -> *mut glib::GList; pub fn ges_play_sink_convert_frame( diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index 29b199662..12ab61d3e 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_editing_services_sys::*; diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-editing-services/sys/tests/constant.c +++ b/gstreamer-editing-services/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index 62f59fba0..4692ff932 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::Quark; use glib::StaticType; use glib::Type; @@ -90,19 +89,19 @@ impl StaticType for GLContextError { } impl<'a> FromValueOptional<'a> for GLContextError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLContextError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLContextError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -199,19 +198,19 @@ impl StaticType for GLFormat { } impl<'a> FromValueOptional<'a> for GLFormat { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLFormat { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLFormat { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -260,19 +259,19 @@ impl StaticType for GLQueryType { } impl<'a> FromValueOptional<'a> for GLQueryType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLQueryType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLQueryType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -343,19 +342,19 @@ impl StaticType for GLSLError { } impl<'a> FromValueOptional<'a> for GLSLError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLSLError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLSLError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -446,19 +445,19 @@ impl StaticType for GLSLVersion { } impl<'a> FromValueOptional<'a> for GLSLVersion { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLSLVersion { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLSLVersion { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -511,19 +510,19 @@ impl StaticType for GLStereoDownmix { } impl<'a> FromValueOptional<'a> for GLStereoDownmix { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLStereoDownmix { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLStereoDownmix { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -575,19 +574,19 @@ impl StaticType for GLTextureTarget { } impl<'a> FromValueOptional<'a> for GLTextureTarget { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLTextureTarget { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLTextureTarget { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -642,19 +641,19 @@ impl StaticType for GLUploadReturn { } impl<'a> FromValueOptional<'a> for GLUploadReturn { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLUploadReturn { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLUploadReturn { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -725,19 +724,19 @@ impl StaticType for GLWindowError { } impl<'a> FromValueOptional<'a> for GLWindowError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLWindowError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for GLWindowError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index b9cfdaa15..ebc13f10b 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -44,19 +43,19 @@ impl StaticType for GLAPI { } impl<'a> FromValueOptional<'a> for GLAPI { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLAPI { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for GLAPI { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -71,8 +70,8 @@ bitflags! { const EGL = 32; const VIV_FB = 64; const GBM = 128; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const EGL_DEVICE = 256; } } @@ -101,19 +100,19 @@ impl StaticType for GLDisplayType { } impl<'a> FromValueOptional<'a> for GLDisplayType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLDisplayType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for GLDisplayType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -152,19 +151,19 @@ impl StaticType for GLPlatform { } impl<'a> FromValueOptional<'a> for GLPlatform { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLPlatform { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for GLPlatform { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -201,19 +200,19 @@ impl StaticType for GLSLProfile { } impl<'a> FromValueOptional<'a> for GLSLProfile { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for GLSLProfile { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for GLSLProfile { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index f77fef716..a3c86b9b2 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -9,7 +9,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -27,12 +26,12 @@ unsafe impl Sync for GLBaseFilter {} pub const NONE_GL_BASE_FILTER: Option<&GLBaseFilter> = None; pub trait GLBaseFilterExt: 'static { - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn find_gl_context(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_gl_context(&self) -> Option; fn get_property_context(&self) -> Option; @@ -44,8 +43,8 @@ pub trait GLBaseFilterExt: 'static { } impl> GLBaseFilterExt for O { - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn find_gl_context(&self) -> bool { unsafe { from_glib(ffi::gst_gl_base_filter_find_gl_context( @@ -54,8 +53,8 @@ impl> GLBaseFilterExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_gl_context(&self) -> Option { unsafe { from_glib_full(ffi::gst_gl_base_filter_get_gl_context( @@ -66,7 +65,7 @@ impl> GLBaseFilterExt for O { fn get_property_context(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"context\0".as_ptr() as *const _, diff --git a/gstreamer-gl/src/auto/gl_context.rs b/gstreamer-gl/src/auto/gl_context.rs index 2f4d12470..db5909fd2 100644 --- a/gstreamer-gl/src/auto/gl_context.rs +++ b/gstreamer-gl/src/auto/gl_context.rs @@ -95,12 +95,12 @@ pub trait GLContextExt: 'static { fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; fn swap_buffers(&self); @@ -301,8 +301,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { unsafe { from_glib(ffi::gst_gl_context_supports_precision( @@ -313,8 +313,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { unsafe { from_glib(ffi::gst_gl_context_supports_precision_highp( diff --git a/gstreamer-gl/src/auto/gl_display.rs b/gstreamer-gl/src/auto/gl_display.rs index 08a96b5fb..f976a7b58 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -59,14 +59,14 @@ pub trait GLDisplayExt: 'static { fn get_handle_type(&self) -> GLDisplayType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_context>(&self, context: &P); fn remove_window>(&self, window: &P) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn retrieve_window(&self, data: /*Unimplemented*/Option, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option, /*Unimplemented*/Option) -> i32) -> Option; fn connect_create_context GLContext + Send + Sync + 'static>( @@ -148,8 +148,8 @@ impl> GLDisplayExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_context>(&self, context: &P) { unsafe { ffi::gst_gl_display_remove_context( @@ -171,8 +171,8 @@ impl> GLDisplayExt for O { } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn retrieve_window(&self, data: /*Unimplemented*/Option, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option, /*Unimplemented*/Option) -> i32) -> Option { // unsafe { TODO: call ffi:gst_gl_display_retrieve_window() } //} diff --git a/gstreamer-gl/src/auto/gl_overlay_compositor.rs b/gstreamer-gl/src/auto/gl_overlay_compositor.rs index 2a12950a3..2b3f70d2a 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -4,27 +4,24 @@ use crate::GLContext; use glib::object::IsA; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::object::ObjectType as ObjectType_; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::signal::connect_raw; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::signal::SignalHandlerId; use glib::translate::*; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::StaticType; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] -use glib::Value; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use std::mem::transmute; glib::glib_wrapper! { @@ -57,11 +54,11 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn get_property_yinvert(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"yinvert\0".as_ptr() as *const _, @@ -74,14 +71,14 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn set_property_yinvert(&self, yinvert: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"yinvert\0".as_ptr() as *const _, - Value::from(&yinvert).to_glib_none().0, + glib::Value::from(&yinvert).to_glib_none().0, ); } } @@ -95,8 +92,8 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn connect_property_yinvert_notify( &self, f: F, diff --git a/gstreamer-gl/src/auto/gl_shader.rs b/gstreamer-gl/src/auto/gl_shader.rs index 721d6f833..a580e0d92 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -3,12 +3,12 @@ // DO NOT EDIT use crate::GLContext; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use crate::GLSLProfile; use crate::GLSLStage; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use crate::GLSLVersion; use glib::object::IsA; use glib::object::ObjectType as ObjectType_; @@ -16,7 +16,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; use std::ptr; @@ -338,7 +337,7 @@ impl GLShader { pub fn get_property_linked(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"linked\0".as_ptr() as *const _, @@ -351,8 +350,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn string_fragment_external_oes_get_default>( context: &P, version: GLSLVersion, @@ -368,8 +367,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn string_fragment_get_default>( context: &P, version: GLSLVersion, @@ -385,8 +384,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn string_get_highest_precision>( context: &P, version: GLSLVersion, diff --git a/gstreamer-gl/src/auto/gl_view_convert.rs b/gstreamer-gl/src/auto/gl_view_convert.rs index 7d83b0ccd..de12dd8cd 100644 --- a/gstreamer-gl/src/auto/gl_view_convert.rs +++ b/gstreamer-gl/src/auto/gl_view_convert.rs @@ -10,7 +10,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -87,7 +86,7 @@ impl GLViewConvert { pub fn get_property_downmix_mode(&self) -> GLStereoDownmix { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"downmix-mode\0".as_ptr() as *const _, @@ -105,15 +104,16 @@ impl GLViewConvert { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"downmix-mode\0".as_ptr() as *const _, - Value::from(&downmix_mode).to_glib_none().0, + glib::Value::from(&downmix_mode).to_glib_none().0, ); } } pub fn get_property_input_flags_override(&self) -> gst_video::VideoMultiviewFlags { unsafe { - let mut value = - Value::from_type(::static_type()); + let mut value = glib::Value::from_type( + ::static_type(), + ); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"input-flags-override\0".as_ptr() as *const _, @@ -134,15 +134,16 @@ impl GLViewConvert { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"input-flags-override\0".as_ptr() as *const _, - Value::from(&input_flags_override).to_glib_none().0, + glib::Value::from(&input_flags_override).to_glib_none().0, ); } } pub fn get_property_input_mode_override(&self) -> gst_video::VideoMultiviewMode { unsafe { - let mut value = - Value::from_type(::static_type()); + let mut value = glib::Value::from_type( + ::static_type(), + ); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"input-mode-override\0".as_ptr() as *const _, @@ -163,15 +164,16 @@ impl GLViewConvert { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"input-mode-override\0".as_ptr() as *const _, - Value::from(&input_mode_override).to_glib_none().0, + glib::Value::from(&input_mode_override).to_glib_none().0, ); } } pub fn get_property_output_flags_override(&self) -> gst_video::VideoMultiviewFlags { unsafe { - let mut value = - Value::from_type(::static_type()); + let mut value = glib::Value::from_type( + ::static_type(), + ); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"output-flags-override\0".as_ptr() as *const _, @@ -192,15 +194,16 @@ impl GLViewConvert { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"output-flags-override\0".as_ptr() as *const _, - Value::from(&output_flags_override).to_glib_none().0, + glib::Value::from(&output_flags_override).to_glib_none().0, ); } } pub fn get_property_output_mode_override(&self) -> gst_video::VideoMultiviewMode { unsafe { - let mut value = - Value::from_type(::static_type()); + let mut value = glib::Value::from_type( + ::static_type(), + ); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"output-mode-override\0".as_ptr() as *const _, @@ -221,7 +224,7 @@ impl GLViewConvert { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"output-mode-override\0".as_ptr() as *const _, - Value::from(&output_mode_override).to_glib_none().0, + glib::Value::from(&output_mode_override).to_glib_none().0, ); } } diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 857293069..5058dc7fb 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -34,8 +34,8 @@ unsafe impl Sync for GLWindow {} pub const NONE_GL_WINDOW: Option<&GLWindow> = None; pub trait GLWindowExt: 'static { - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn controls_viewport(&self) -> bool; fn draw(&self); @@ -46,8 +46,8 @@ pub trait GLWindowExt: 'static { fn handle_events(&self, handle_events: bool); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_output_surface(&self) -> bool; fn queue_resize(&self); @@ -62,8 +62,8 @@ pub trait GLWindowExt: 'static { fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64); fn set_preferred_size(&self, width: i32, height: i32); @@ -88,8 +88,8 @@ pub trait GLWindowExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_scroll_event( &self, f: F, @@ -97,8 +97,8 @@ pub trait GLWindowExt: 'static { } impl> GLWindowExt for O { - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn controls_viewport(&self) -> bool { unsafe { from_glib(ffi::gst_gl_window_controls_viewport( @@ -145,8 +145,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_output_surface(&self) -> bool { unsafe { from_glib(ffi::gst_gl_window_has_output_surface( @@ -201,8 +201,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) { unsafe { ffi::gst_gl_window_send_scroll_event( @@ -322,8 +322,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_scroll_event( &self, f: F, diff --git a/gstreamer-gl/src/auto/mod.rs b/gstreamer-gl/src/auto/mod.rs index 3821a0e1f..e878369ea 100644 --- a/gstreamer-gl/src/auto/mod.rs +++ b/gstreamer-gl/src/auto/mod.rs @@ -2,14 +2,14 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] mod gl_base_filter; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::gl_base_filter::GLBaseFilterExt; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::gl_base_filter::{GLBaseFilter, NONE_GL_BASE_FILTER}; mod gl_color_convert; @@ -23,25 +23,25 @@ mod gl_display; pub use self::gl_display::GLDisplayExt; pub use self::gl_display::{GLDisplay, NONE_GL_DISPLAY}; -#[cfg(any(feature = "egl", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] mod gl_display_egl; -#[cfg(any(feature = "egl", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub use self::gl_display_egl::GLDisplayEGL; -#[cfg(any(feature = "wayland", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] mod gl_display_wayland; -#[cfg(any(feature = "wayland", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub use self::gl_display_wayland::GLDisplayWayland; -#[cfg(any(feature = "x11", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] mod gl_display_x11; -#[cfg(any(feature = "x11", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub use self::gl_display_x11::GLDisplayX11; mod gl_framebuffer; @@ -86,8 +86,8 @@ pub use self::flags::GLAPI; #[doc(hidden)] pub mod traits { - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use super::GLBaseFilterExt; pub use super::GLContextExt; pub use super::GLDisplayExt; diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-gl/sys/Cargo.toml b/gstreamer-gl/sys/Cargo.toml index 111b1a8cc..6d91e44e0 100644 --- a/gstreamer-gl/sys/Cargo.toml +++ b/gstreamer-gl/sys/Cargo.toml @@ -32,6 +32,7 @@ x11 = [] wayland = [] v1_16 = [] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_gl_sys" @@ -51,7 +52,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_gl_1_0] name = "gstreamer-gl-1.0" version = "1.14" diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index a9e4d22a1..9141aa493 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -599,8 +599,8 @@ impl ::std::fmt::Debug for GstGLDisplayClass { } } -#[cfg(any(feature = "egl", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayEGLClass { @@ -608,8 +608,8 @@ pub struct GstGLDisplayEGLClass { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "egl", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] impl ::std::fmt::Debug for GstGLDisplayEGLClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayEGLClass @ {:?}", self as *const _)) @@ -624,8 +624,8 @@ pub struct _GstGLDisplayPrivate(c_void); pub type GstGLDisplayPrivate = *mut _GstGLDisplayPrivate; -#[cfg(any(feature = "wayland", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayWaylandClass { @@ -633,8 +633,8 @@ pub struct GstGLDisplayWaylandClass { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "wayland", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] impl ::std::fmt::Debug for GstGLDisplayWaylandClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( @@ -647,8 +647,8 @@ impl ::std::fmt::Debug for GstGLDisplayWaylandClass { } } -#[cfg(any(feature = "x11", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayX11Class { @@ -656,8 +656,8 @@ pub struct GstGLDisplayX11Class { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "x11", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] impl ::std::fmt::Debug for GstGLDisplayX11Class { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayX11Class @ {:?}", self as *const _)) @@ -1294,8 +1294,8 @@ impl ::std::fmt::Debug for GstGLDisplay { } } -#[cfg(any(feature = "egl", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayEGL { @@ -1305,8 +1305,8 @@ pub struct GstGLDisplayEGL { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "egl", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] impl ::std::fmt::Debug for GstGLDisplayEGL { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayEGL @ {:?}", self as *const _)) @@ -1315,8 +1315,8 @@ impl ::std::fmt::Debug for GstGLDisplayEGL { } } -#[cfg(any(feature = "wayland", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayWayland { @@ -1330,8 +1330,8 @@ pub struct GstGLDisplayWayland { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "wayland", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] impl ::std::fmt::Debug for GstGLDisplayWayland { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayWayland @ {:?}", self as *const _)) @@ -1345,8 +1345,8 @@ impl ::std::fmt::Debug for GstGLDisplayWayland { } } -#[cfg(any(feature = "x11", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayX11 { @@ -1358,8 +1358,8 @@ pub struct GstGLDisplayX11 { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "x11", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] impl ::std::fmt::Debug for GstGLDisplayX11 { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayX11 @ {:?}", self as *const _)) @@ -1642,11 +1642,11 @@ extern "C" { vinfo: *mut gst_video::GstVideoInfo, plane: c_uint, ) -> GstGLFormat; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_format_is_supported(context: *mut GstGLContext, format: GstGLFormat) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_format_type_from_sized_gl_format( format: GstGLFormat, unsized_format: *mut GstGLFormat, @@ -2044,11 +2044,11 @@ extern "C" { // GstGLBaseFilter //========================================================================= pub fn gst_gl_base_filter_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_base_filter_find_gl_context(filter: *mut GstGLBaseFilter) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext; //========================================================================= @@ -2059,8 +2059,8 @@ extern "C" { //========================================================================= // GstGLBaseSrc //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_src_get_type() -> GType; //========================================================================= @@ -2194,15 +2194,15 @@ extern "C" { version: GstGLSLVersion, profile: GstGLSLProfile, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_context_supports_precision( context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_context_supports_precision_highp( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2245,15 +2245,15 @@ extern "C" { ) -> *mut GstGLContext; pub fn gst_gl_display_get_handle(display: *mut GstGLDisplay) -> uintptr_t; pub fn gst_gl_display_get_handle_type(display: *mut GstGLDisplay) -> GstGLDisplayType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_display_remove_context(display: *mut GstGLDisplay, context: *mut GstGLContext); pub fn gst_gl_display_remove_window( display: *mut GstGLDisplay, window: *mut GstGLWindow, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_display_retrieve_window( display: *mut GstGLDisplay, data: gpointer, @@ -2263,20 +2263,20 @@ extern "C" { //========================================================================= // GstGLDisplayEGL //========================================================================= - #[cfg(any(feature = "egl", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_get_type() -> GType; - #[cfg(any(feature = "egl", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_new() -> *mut GstGLDisplayEGL; - #[cfg(any(feature = "egl", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_new_with_egl_display(display: gpointer) -> *mut GstGLDisplayEGL; - #[cfg(any(feature = "egl", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_from_gl_display(display: *mut GstGLDisplay) -> *mut GstGLDisplayEGL; - #[cfg(any(feature = "egl", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_get_from_native( type_: GstGLDisplayType, display: uintptr_t, @@ -2285,27 +2285,27 @@ extern "C" { //========================================================================= // GstGLDisplayWayland //========================================================================= - #[cfg(any(feature = "wayland", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub fn gst_gl_display_wayland_get_type() -> GType; - #[cfg(any(feature = "wayland", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub fn gst_gl_display_wayland_new(name: *const c_char) -> *mut GstGLDisplayWayland; - #[cfg(any(feature = "wayland", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub fn gst_gl_display_wayland_new_with_display(display: gpointer) -> *mut GstGLDisplayWayland; //========================================================================= // GstGLDisplayX11 //========================================================================= - #[cfg(any(feature = "x11", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] + #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub fn gst_gl_display_x11_get_type() -> GType; - #[cfg(any(feature = "x11", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] + #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub fn gst_gl_display_x11_new(name: *const c_char) -> *mut GstGLDisplayX11; - #[cfg(any(feature = "x11", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] + #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub fn gst_gl_display_x11_new_with_display(display: gpointer) -> *mut GstGLDisplayX11; //========================================================================= @@ -2451,22 +2451,22 @@ extern "C" { error: *mut *mut glib::GError, ... ) -> *mut GstGLShader; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_fragment_external_oes_get_default( context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile, ) -> *mut c_char; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_fragment_get_default( context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile, ) -> *mut c_char; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_get_highest_precision( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2749,8 +2749,8 @@ extern "C" { //========================================================================= pub fn gst_gl_window_get_type() -> GType; pub fn gst_gl_window_new(display: *mut GstGLDisplay) -> *mut GstGLWindow; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_window_controls_viewport(window: *mut GstGLWindow) -> gboolean; pub fn gst_gl_window_draw(window: *mut GstGLWindow); pub fn gst_gl_window_get_context(window: *mut GstGLWindow) -> *mut GstGLContext; @@ -2762,8 +2762,8 @@ extern "C" { ); pub fn gst_gl_window_get_window_handle(window: *mut GstGLWindow) -> uintptr_t; pub fn gst_gl_window_handle_events(window: *mut GstGLWindow, handle_events: gboolean); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_window_has_output_surface(window: *mut GstGLWindow) -> gboolean; pub fn gst_gl_window_queue_resize(window: *mut GstGLWindow); pub fn gst_gl_window_quit(window: *mut GstGLWindow); @@ -2792,8 +2792,8 @@ extern "C" { posx: c_double, posy: c_double, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_window_send_scroll_event( window: *mut GstGLWindow, posx: c_double, diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index 115d8f39a..b2fdfb3f5 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_gl_sys::*; @@ -424,8 +424,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "egl", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] ( "GstGLDisplayEGL", Layout { @@ -433,8 +433,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "egl", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] ( "GstGLDisplayEGLClass", Layout { @@ -449,8 +449,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "wayland", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] ( "GstGLDisplayWayland", Layout { @@ -458,8 +458,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "wayland", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] ( "GstGLDisplayWaylandClass", Layout { @@ -467,8 +467,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "x11", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] + #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] ( "GstGLDisplayX11", Layout { @@ -476,8 +476,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "x11", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] + #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] ( "GstGLDisplayX11Class", Layout { diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-gl/sys/tests/constant.c +++ b/gstreamer-gl/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/Cargo.toml b/gstreamer-mpegts/sys/Cargo.toml index aee569d4d..d239cda25 100644 --- a/gstreamer-mpegts/sys/Cargo.toml +++ b/gstreamer-mpegts/sys/Cargo.toml @@ -27,6 +27,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_mpegts_sys" @@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_mpegts_1_0] name = "gstreamer-mpegts-1.0" version = "1.12" diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index aa5a1193e..d3cad6d89 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gstreamer_sys as gst; @@ -1899,11 +1899,11 @@ extern "C" { //========================================================================= // GstMpegtsAtscRRT //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT; //========================================================================= @@ -1915,11 +1915,11 @@ extern "C" { //========================================================================= // GstMpegtsAtscRRTDimensionValue //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_value_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue; //========================================================================= @@ -2369,8 +2369,8 @@ extern "C" { pub fn gst_mpegts_section_get_atsc_mgt( section: *mut GstMpegtsSection, ) -> *const GstMpegtsAtscMGT; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_get_atsc_rrt( section: *mut GstMpegtsSection, ) -> *const GstMpegtsAtscRRT; @@ -2402,11 +2402,11 @@ extern "C" { section: *mut GstMpegtsSection, element: *mut gst::GstElement, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_from_atsc_mgt(mgt: *mut GstMpegtsAtscMGT) -> *mut GstMpegtsSection; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_from_atsc_rrt(rrt: *mut GstMpegtsAtscRRT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_atsc_stt(stt: *mut GstMpegtsAtscSTT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_nit(nit: *mut GstMpegtsNIT) -> *mut GstMpegtsSection; diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index 1862a0aa3..07427360f 100644 --- a/gstreamer-mpegts/sys/tests/abi.rs +++ b/gstreamer-mpegts/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_mpegts_sys::*; diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-mpegts/sys/tests/constant.c +++ b/gstreamer-mpegts/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-mpegts/sys/tests/layout.c +++ b/gstreamer-mpegts/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index ab95004ee..62c2ff0b2 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -23,7 +22,7 @@ glib::glib_wrapper! { impl NetClientClock { pub fn get_property_address(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"address\0".as_ptr() as *const _, @@ -40,14 +39,14 @@ impl NetClientClock { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"address\0".as_ptr() as *const _, - Value::from(address).to_glib_none().0, + glib::Value::from(address).to_glib_none().0, ); } } pub fn get_property_base_time(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"base-time\0".as_ptr() as *const _, @@ -62,7 +61,7 @@ impl NetClientClock { pub fn get_property_bus(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"bus\0".as_ptr() as *const _, @@ -77,14 +76,14 @@ impl NetClientClock { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"bus\0".as_ptr() as *const _, - Value::from(bus).to_glib_none().0, + glib::Value::from(bus).to_glib_none().0, ); } } pub fn get_property_internal_clock(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"internal-clock\0".as_ptr() as *const _, @@ -98,7 +97,7 @@ impl NetClientClock { pub fn get_property_minimum_update_interval(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"minimum-update-interval\0".as_ptr() as *const _, @@ -116,14 +115,14 @@ impl NetClientClock { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"minimum-update-interval\0".as_ptr() as *const _, - Value::from(&minimum_update_interval).to_glib_none().0, + glib::Value::from(&minimum_update_interval).to_glib_none().0, ); } } pub fn get_property_port(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"port\0".as_ptr() as *const _, @@ -141,14 +140,14 @@ impl NetClientClock { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"port\0".as_ptr() as *const _, - Value::from(&port).to_glib_none().0, + glib::Value::from(&port).to_glib_none().0, ); } } pub fn get_property_qos_dscp(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"qos-dscp\0".as_ptr() as *const _, @@ -166,14 +165,14 @@ impl NetClientClock { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"qos-dscp\0".as_ptr() as *const _, - Value::from(&qos_dscp).to_glib_none().0, + glib::Value::from(&qos_dscp).to_glib_none().0, ); } } pub fn get_property_round_trip_limit(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"round-trip-limit\0".as_ptr() as *const _, @@ -191,7 +190,7 @@ impl NetClientClock { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"round-trip-limit\0".as_ptr() as *const _, - Value::from(&round_trip_limit).to_glib_none().0, + glib::Value::from(&round_trip_limit).to_glib_none().0, ); } } diff --git a/gstreamer-net/src/auto/net_time_provider.rs b/gstreamer-net/src/auto/net_time_provider.rs index f6c641185..6d62fbf80 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -7,7 +7,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -22,7 +21,7 @@ glib::glib_wrapper! { impl NetTimeProvider { pub fn get_property_active(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"active\0".as_ptr() as *const _, @@ -40,14 +39,14 @@ impl NetTimeProvider { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"active\0".as_ptr() as *const _, - Value::from(&active).to_glib_none().0, + glib::Value::from(&active).to_glib_none().0, ); } } pub fn get_property_address(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"address\0".as_ptr() as *const _, @@ -61,7 +60,7 @@ impl NetTimeProvider { pub fn get_property_clock(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"clock\0".as_ptr() as *const _, @@ -75,7 +74,7 @@ impl NetTimeProvider { pub fn get_property_port(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"port\0".as_ptr() as *const _, @@ -90,7 +89,7 @@ impl NetTimeProvider { pub fn get_property_qos_dscp(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"qos-dscp\0".as_ptr() as *const _, @@ -108,7 +107,7 @@ impl NetTimeProvider { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"qos-dscp\0".as_ptr() as *const _, - Value::from(&qos_dscp).to_glib_none().0, + glib::Value::from(&qos_dscp).to_glib_none().0, ); } } diff --git a/gstreamer-net/src/auto/ptp_clock.rs b/gstreamer-net/src/auto/ptp_clock.rs index fa548d813..c4a6e8bf7 100644 --- a/gstreamer-net/src/auto/ptp_clock.rs +++ b/gstreamer-net/src/auto/ptp_clock.rs @@ -7,7 +7,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -22,7 +21,7 @@ glib::glib_wrapper! { impl PtpClock { pub fn get_property_domain(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"domain\0".as_ptr() as *const _, @@ -37,7 +36,7 @@ impl PtpClock { pub fn get_property_grandmaster_clock_id(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"grandmaster-clock-id\0".as_ptr() as *const _, @@ -52,7 +51,7 @@ impl PtpClock { pub fn get_property_internal_clock(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"internal-clock\0".as_ptr() as *const _, @@ -66,7 +65,7 @@ impl PtpClock { pub fn get_property_master_clock_id(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"master-clock-id\0".as_ptr() as *const _, diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-net/sys/Cargo.toml b/gstreamer-net/sys/Cargo.toml index c4b16c487..69b4556cd 100644 --- a/gstreamer-net/sys/Cargo.toml +++ b/gstreamer-net/sys/Cargo.toml @@ -27,6 +27,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_net_sys" @@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_net_1_0] name = "gstreamer-net-1.0" version = "1.8" diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index c4d2ec419..b491cb50d 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -317,8 +317,8 @@ extern "C" { pub fn gst_buffer_get_net_address_meta(buffer: *mut gst::GstBuffer) -> *mut GstNetAddressMeta; pub fn gst_net_address_meta_api_get_type() -> GType; pub fn gst_net_control_message_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_net_utils_set_socket_tos(socket: *mut gio::GSocket, qos_dscp: c_int) -> gboolean; pub fn gst_ptp_deinit(); pub fn gst_ptp_init(clock_id: u64, interfaces: *mut *mut c_char) -> gboolean; diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index 5840f9582..8f5b06aff 100644 --- a/gstreamer-net/sys/tests/abi.rs +++ b/gstreamer-net/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_net_sys::*; diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-net/sys/tests/constant.c +++ b/gstreamer-net/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-net/sys/tests/layout.c +++ b/gstreamer-net/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 6406afbe2..a58980a8e 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -7,12 +7,9 @@ use glib::object::ObjectType as ObjectType_; use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::StaticType; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; use std::ptr; @@ -76,11 +73,11 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn get_property_use_cache(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"use-cache\0".as_ptr() as *const _, @@ -93,14 +90,14 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn set_property_use_cache(&self, use_cache: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"use-cache\0".as_ptr() as *const _, - Value::from(&use_cache).to_glib_none().0, + glib::Value::from(&use_cache).to_glib_none().0, ); } } @@ -216,8 +213,8 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn connect_property_use_cache_notify( &self, f: F, diff --git a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs index 0f83863f7..871e77e7e 100644 --- a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs @@ -18,8 +18,8 @@ impl DiscovererAudioInfo { unsafe { ffi::gst_discoverer_audio_info_get_bitrate(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_channel_mask(&self) -> u64 { unsafe { ffi::gst_discoverer_audio_info_get_channel_mask(self.to_glib_none().0) } } diff --git a/gstreamer-pbutils/src/auto/discoverer_info.rs b/gstreamer-pbutils/src/auto/discoverer_info.rs index fc85c5382..b532f3744 100644 --- a/gstreamer-pbutils/src/auto/discoverer_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_info.rs @@ -40,8 +40,8 @@ impl DiscovererInfo { unsafe { from_glib(ffi::gst_discoverer_info_get_duration(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_live(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_info_get_live(self.to_glib_none().0)) } } diff --git a/gstreamer-pbutils/src/auto/encoding_profile.rs b/gstreamer-pbutils/src/auto/encoding_profile.rs index ee5b73299..27968f3fd 100644 --- a/gstreamer-pbutils/src/auto/encoding_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_profile.rs @@ -49,8 +49,8 @@ unsafe impl Sync for EncodingProfile {} pub const NONE_ENCODING_PROFILE: Option<&EncodingProfile> = None; pub trait EncodingProfileExt: 'static { - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn copy(&self) -> EncodingProfile; fn get_allow_dynamic_output(&self) -> bool; @@ -71,8 +71,8 @@ pub trait EncodingProfileExt: 'static { fn get_preset_name(&self) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_segment(&self) -> bool; fn get_type_nick(&self) -> Option; @@ -83,8 +83,8 @@ pub trait EncodingProfileExt: 'static { } impl> EncodingProfileExt for O { - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn copy(&self) -> EncodingProfile { unsafe { from_glib_full(ffi::gst_encoding_profile_copy( @@ -161,8 +161,8 @@ impl> EncodingProfileExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_segment(&self) -> bool { unsafe { from_glib(ffi::gst_encoding_profile_get_single_segment( diff --git a/gstreamer-pbutils/src/auto/encoding_target.rs b/gstreamer-pbutils/src/auto/encoding_target.rs index 0490dba87..1e198c9ad 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -48,8 +48,8 @@ impl EncodingTarget { unsafe { from_glib_none(ffi::gst_encoding_target_get_name(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_path(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_target_get_path(self.to_glib_none().0)) } } diff --git a/gstreamer-pbutils/src/auto/enums.rs b/gstreamer-pbutils/src/auto/enums.rs index f73c9703e..f433968ab 100644 --- a/gstreamer-pbutils/src/auto/enums.rs +++ b/gstreamer-pbutils/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -63,19 +62,19 @@ impl StaticType for DiscovererResult { } impl<'a> FromValueOptional<'a> for DiscovererResult { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for DiscovererResult { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for DiscovererResult { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-pbutils/src/auto/flags.rs b/gstreamer-pbutils/src/auto/flags.rs index d975104a6..c304b763e 100644 --- a/gstreamer-pbutils/src/auto/flags.rs +++ b/gstreamer-pbutils/src/auto/flags.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -43,19 +42,19 @@ impl StaticType for DiscovererSerializeFlags { } impl<'a> FromValueOptional<'a> for DiscovererSerializeFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for DiscovererSerializeFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for DiscovererSerializeFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-pbutils/sys/Cargo.toml b/gstreamer-pbutils/sys/Cargo.toml index e19c4be83..f6e91fa11 100644 --- a/gstreamer-pbutils/sys/Cargo.toml +++ b/gstreamer-pbutils/sys/Cargo.toml @@ -34,6 +34,7 @@ v1_14 = ["v1_12_1"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] v1_12_1 = ["v1_12"] +dox = [] [lib] name = "gstreamer_pbutils_sys" @@ -53,7 +54,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_pbutils_1_0] name = "gstreamer-pbutils-1.0" version = "1.8" diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 598bd6870..7853c0397 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -379,8 +379,8 @@ extern "C" { //========================================================================= pub fn gst_install_plugins_context_get_type() -> GType; pub fn gst_install_plugins_context_new() -> *mut GstInstallPluginsContext; - #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))] + #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_install_plugins_context_copy( ctx: *mut GstInstallPluginsContext, ) -> *mut GstInstallPluginsContext; @@ -429,8 +429,8 @@ extern "C" { //========================================================================= pub fn gst_discoverer_audio_info_get_type() -> GType; pub fn gst_discoverer_audio_info_get_bitrate(info: *const GstDiscovererAudioInfo) -> c_uint; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_discoverer_audio_info_get_channel_mask(info: *const GstDiscovererAudioInfo) -> u64; pub fn gst_discoverer_audio_info_get_channels(info: *const GstDiscovererAudioInfo) -> c_uint; pub fn gst_discoverer_audio_info_get_depth(info: *const GstDiscovererAudioInfo) -> c_uint; @@ -462,8 +462,8 @@ extern "C" { info: *mut GstDiscovererInfo, ) -> *mut glib::GList; pub fn gst_discoverer_info_get_duration(info: *const GstDiscovererInfo) -> gst::GstClockTime; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_discoverer_info_get_live(info: *const GstDiscovererInfo) -> gboolean; pub fn gst_discoverer_info_get_misc(info: *const GstDiscovererInfo) -> *const gst::GstStructure; @@ -597,8 +597,8 @@ extern "C" { pub fn gst_encoding_profile_from_discoverer( info: *mut GstDiscovererInfo, ) -> *mut GstEncodingProfile; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_encoding_profile_copy(self_: *mut GstEncodingProfile) -> *mut GstEncodingProfile; pub fn gst_encoding_profile_get_allow_dynamic_output( profile: *mut GstEncodingProfile, @@ -618,8 +618,8 @@ extern "C" { pub fn gst_encoding_profile_get_restriction( profile: *mut GstEncodingProfile, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_encoding_profile_get_single_segment(profile: *mut GstEncodingProfile) -> gboolean; pub fn gst_encoding_profile_get_type_nick(profile: *mut GstEncodingProfile) -> *const c_char; pub fn gst_encoding_profile_is_enabled(profile: *mut GstEncodingProfile) -> gboolean; @@ -651,8 +651,8 @@ extern "C" { profile: *mut GstEncodingProfile, restriction: *mut gst::GstCaps, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_encoding_profile_set_single_segment( profile: *mut GstEncodingProfile, single_segment: gboolean, @@ -684,8 +684,8 @@ extern "C" { pub fn gst_encoding_target_get_category(target: *mut GstEncodingTarget) -> *const c_char; pub fn gst_encoding_target_get_description(target: *mut GstEncodingTarget) -> *const c_char; pub fn gst_encoding_target_get_name(target: *mut GstEncodingTarget) -> *const c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_encoding_target_get_path(target: *mut GstEncodingTarget) -> *const c_char; pub fn gst_encoding_target_get_profile( target: *mut GstEncodingTarget, @@ -730,14 +730,14 @@ extern "C" { audio_config: *const u8, len: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_codec_utils_aac_get_channels(audio_config: *const u8, len: c_uint) -> c_uint; pub fn gst_codec_utils_aac_get_index_from_sample_rate(rate: c_uint) -> c_int; pub fn gst_codec_utils_aac_get_level(audio_config: *const u8, len: c_uint) -> *const c_char; pub fn gst_codec_utils_aac_get_profile(audio_config: *const u8, len: c_uint) -> *const c_char; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_codec_utils_aac_get_sample_rate(audio_config: *const u8, len: c_uint) -> c_uint; pub fn gst_codec_utils_aac_get_sample_rate_from_index(sr_idx: c_uint) -> c_uint; pub fn gst_codec_utils_h264_caps_set_level_and_profile( diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index aed06793c..19d736dc6 100644 --- a/gstreamer-pbutils/sys/tests/abi.rs +++ b/gstreamer-pbutils/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_pbutils_sys::*; diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-pbutils/sys/tests/constant.c +++ b/gstreamer-pbutils/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-pbutils/sys/tests/layout.c +++ b/gstreamer-pbutils/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index d0063aa0c..e4a6a2d0c 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::Quark; use glib::StaticType; use glib::Type; @@ -59,19 +58,19 @@ impl StaticType for PlayerColorBalanceType { } impl<'a> FromValueOptional<'a> for PlayerColorBalanceType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PlayerColorBalanceType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PlayerColorBalanceType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -134,19 +133,19 @@ impl StaticType for PlayerError { } impl<'a> FromValueOptional<'a> for PlayerError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PlayerError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PlayerError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -241,19 +240,19 @@ impl StaticType for PlayerState { } impl<'a> FromValueOptional<'a> for PlayerState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PlayerState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PlayerState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index a50a0499b..8b48fbd26 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -15,7 +15,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -104,8 +103,8 @@ impl Player { unsafe { from_glib_full(ffi::gst_player_get_subtitle_uri(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn get_subtitle_video_offset(&self) -> i64 { unsafe { ffi::gst_player_get_subtitle_video_offset(self.to_glib_none().0) } } @@ -226,8 +225,8 @@ impl Player { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn set_subtitle_video_offset(&self, offset: i64) { unsafe { ffi::gst_player_set_subtitle_video_offset(self.to_glib_none().0, offset); @@ -284,7 +283,7 @@ impl Player { pub fn get_property_suburi(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"suburi\0".as_ptr() as *const _, @@ -301,15 +300,16 @@ impl Player { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"suburi\0".as_ptr() as *const _, - Value::from(suburi).to_glib_none().0, + glib::Value::from(suburi).to_glib_none().0, ); } } pub fn get_property_video_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { unsafe { - let mut value = - Value::from_type(::static_type()); + let mut value = glib::Value::from_type( + ::static_type(), + ); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"video-multiview-flags\0".as_ptr() as *const _, @@ -330,14 +330,14 @@ impl Player { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"video-multiview-flags\0".as_ptr() as *const _, - Value::from(&video_multiview_flags).to_glib_none().0, + glib::Value::from(&video_multiview_flags).to_glib_none().0, ); } } pub fn get_property_video_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { unsafe { - let mut value = Value::from_type( + let mut value = glib::Value::from_type( ::static_type(), ); glib::gobject_ffi::g_object_get_property( @@ -360,7 +360,7 @@ impl Player { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"video-multiview-mode\0".as_ptr() as *const _, - Value::from(&video_multiview_mode).to_glib_none().0, + glib::Value::from(&video_multiview_mode).to_glib_none().0, ); } } @@ -904,8 +904,8 @@ impl Player { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn connect_property_subtitle_video_offset_notify( &self, f: F, diff --git a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs index 8b469e12d..f22501830 100644 --- a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs @@ -6,7 +6,6 @@ use crate::PlayerSignalDispatcher; use glib::object::ObjectType as ObjectType_; use glib::translate::*; use glib::StaticType; -use glib::Value; glib::glib_wrapper! { pub struct PlayerGMainContextSignalDispatcher(Object) @implements PlayerSignalDispatcher; @@ -19,7 +18,8 @@ glib::glib_wrapper! { impl PlayerGMainContextSignalDispatcher { pub fn get_property_application_context(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"application-context\0".as_ptr() as *const _, diff --git a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs index 8b71b494c..0b4304255 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -9,7 +9,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem; use std::mem::transmute; @@ -72,7 +71,7 @@ impl PlayerVideoOverlayVideoRenderer { pub fn get_property_video_sink(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"video-sink\0".as_ptr() as *const _, @@ -89,7 +88,7 @@ impl PlayerVideoOverlayVideoRenderer { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"video-sink\0".as_ptr() as *const _, - Value::from(video_sink).to_glib_none().0, + glib::Value::from(video_sink).to_glib_none().0, ); } } diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-player/sys/Cargo.toml b/gstreamer-player/sys/Cargo.toml index 09d584d81..70891983b 100644 --- a/gstreamer-player/sys/Cargo.toml +++ b/gstreamer-player/sys/Cargo.toml @@ -26,6 +26,7 @@ tempfile = "3" v1_14 = [] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_player_sys" @@ -45,7 +46,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_player_1_0] name = "gstreamer-player-1.0" version = "1.12" diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index 7f624ff39..7ce48c1b0 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -344,8 +344,8 @@ extern "C" { pub fn gst_player_get_position(player: *mut GstPlayer) -> gst::GstClockTime; pub fn gst_player_get_rate(player: *mut GstPlayer) -> c_double; pub fn gst_player_get_subtitle_uri(player: *mut GstPlayer) -> *mut c_char; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_player_get_subtitle_video_offset(player: *mut GstPlayer) -> i64; pub fn gst_player_get_uri(player: *mut GstPlayer) -> *mut c_char; pub fn gst_player_get_video_snapshot( @@ -383,8 +383,8 @@ extern "C" { pub fn gst_player_set_subtitle_track(player: *mut GstPlayer, stream_index: c_int) -> gboolean; pub fn gst_player_set_subtitle_track_enabled(player: *mut GstPlayer, enabled: gboolean); pub fn gst_player_set_subtitle_uri(player: *mut GstPlayer, uri: *const c_char); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_player_set_subtitle_video_offset(player: *mut GstPlayer, offset: i64); pub fn gst_player_set_uri(player: *mut GstPlayer, uri: *const c_char); pub fn gst_player_set_video_track(player: *mut GstPlayer, stream_index: c_int) -> gboolean; diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index 8937f514f..ee22addae 100644 --- a/gstreamer-player/sys/tests/abi.rs +++ b/gstreamer-player/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_player_sys::*; diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-player/sys/tests/constant.c +++ b/gstreamer-player/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-player/sys/tests/layout.c +++ b/gstreamer-player/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index 5fd7ed628..a33889575 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -72,19 +71,19 @@ impl StaticType for RTCPFBType { } impl<'a> FromValueOptional<'a> for RTCPFBType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTCPFBType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTCPFBType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -154,19 +153,19 @@ impl StaticType for RTCPSDESType { } impl<'a> FromValueOptional<'a> for RTCPSDESType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTCPSDESType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTCPSDESType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -233,25 +232,25 @@ impl StaticType for RTCPType { } impl<'a> FromValueOptional<'a> for RTCPType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTCPType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTCPType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum RTCPXRType { @@ -267,8 +266,8 @@ pub enum RTCPXRType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for RTCPXRType { type GlibType = ffi::GstRTCPXRType; @@ -288,8 +287,8 @@ impl ToGlib for RTCPXRType { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for RTCPXRType { fn from_glib(value: ffi::GstRTCPXRType) -> Self { @@ -308,34 +307,34 @@ impl FromGlib for RTCPXRType { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for RTCPXRType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_rtcpxr_type_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for RTCPXRType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for RTCPXRType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for RTCPXRType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -453,19 +452,19 @@ impl StaticType for RTPPayload { } impl<'a> FromValueOptional<'a> for RTPPayload { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTPPayload { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTPPayload { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -520,19 +519,19 @@ impl StaticType for RTPProfile { } impl<'a> FromValueOptional<'a> for RTPProfile { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTPProfile { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTPProfile { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-rtp/src/auto/flags.rs b/gstreamer-rtp/src/auto/flags.rs index fe80b03f9..14a13e9cf 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -7,12 +7,11 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] bitflags! { pub struct RTPBufferFlags: u32 { const RETRANSMISSION = 1048576; @@ -20,8 +19,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for RTPBufferFlags { type GlibType = ffi::GstRTPBufferFlags; @@ -31,8 +30,8 @@ impl ToGlib for RTPBufferFlags { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for RTPBufferFlags { fn from_glib(value: ffi::GstRTPBufferFlags) -> RTPBufferFlags { @@ -41,34 +40,34 @@ impl FromGlib for RTPBufferFlags { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl StaticType for RTPBufferFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_rtp_buffer_flags_get_type()) } } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValueOptional<'a> for RTPBufferFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValue<'a> for RTPBufferFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl SetValue for RTPBufferFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -103,19 +102,19 @@ impl StaticType for RTPBufferMapFlags { } impl<'a> FromValueOptional<'a> for RTPBufferMapFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTPBufferMapFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for RTPBufferMapFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-rtp/src/auto/functions.rs b/gstreamer-rtp/src/auto/functions.rs index 0c7bd981e..fb4a7ba21 100644 --- a/gstreamer-rtp/src/auto/functions.rs +++ b/gstreamer-rtp/src/auto/functions.rs @@ -5,14 +5,14 @@ use crate::RTCPSDESType; use glib::translate::*; -//#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +//#[cfg(any(feature = "v1_16", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn buffer_add_rtp_source_meta(buffer: &gst::Buffer, ssrc: u32, csrc: u32, csrc_count: u32) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_buffer_add_rtp_source_meta() } //} -//#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +//#[cfg(any(feature = "v1_16", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn buffer_get_rtp_source_meta(buffer: &gst::Buffer) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_buffer_get_rtp_source_meta() } //} diff --git a/gstreamer-rtp/src/auto/mod.rs b/gstreamer-rtp/src/auto/mod.rs index 6773f84a3..d9420453d 100644 --- a/gstreamer-rtp/src/auto/mod.rs +++ b/gstreamer-rtp/src/auto/mod.rs @@ -6,15 +6,15 @@ mod enums; pub use self::enums::RTCPFBType; pub use self::enums::RTCPSDESType; pub use self::enums::RTCPType; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::RTCPXRType; pub use self::enums::RTPPayload; pub use self::enums::RTPProfile; mod flags; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::flags::RTPBufferFlags; pub use self::flags::RTPBufferMapFlags; diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-rtp/sys/Cargo.toml b/gstreamer-rtp/sys/Cargo.toml index bec4346d6..b9a73f7bb 100644 --- a/gstreamer-rtp/sys/Cargo.toml +++ b/gstreamer-rtp/sys/Cargo.toml @@ -29,6 +29,7 @@ v1_6_1 = ["v1_6"] v1_10 = ["v1_8"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_rtp_sys" @@ -48,7 +49,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_rtp_1_0] name = "gstreamer-rtp-1.0" version = "1.8" diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index 349b5ca83..54370a17b 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gstreamer_base_sys as gst_base; @@ -503,8 +503,8 @@ extern "C" { //========================================================================= // GstRTCPXRType //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcpxr_type_get_type() -> GType; //========================================================================= @@ -520,8 +520,8 @@ extern "C" { //========================================================================= // GstRTPBufferFlags //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtp_buffer_flags_get_type() -> GType; //========================================================================= @@ -559,8 +559,8 @@ extern "C" { //========================================================================= // GstRTCPPacket //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_add_profile_specific_ext( packet: *mut GstRTCPPacket, data: *const u8, @@ -576,35 +576,35 @@ extern "C" { lsr: u32, dlsr: u32, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_data(packet: *mut GstRTCPPacket) -> *mut u8; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_data_length(packet: *mut GstRTCPPacket) -> u16; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_name(packet: *mut GstRTCPPacket) -> *const c_char; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_ssrc(packet: *mut GstRTCPPacket) -> u32; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_subtype(packet: *mut GstRTCPPacket) -> u8; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_data_length( packet: *mut GstRTCPPacket, wordlen: u16, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_name(packet: *mut GstRTCPPacket, name: *const c_char); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_ssrc(packet: *mut GstRTCPPacket, ssrc: u32); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_subtype(packet: *mut GstRTCPPacket, subtype: u8); pub fn gst_rtcp_packet_bye_add_ssrc(packet: *mut GstRTCPPacket, ssrc: u32) -> gboolean; pub fn gst_rtcp_packet_bye_add_ssrcs( @@ -620,8 +620,8 @@ extern "C" { packet: *mut GstRTCPPacket, reason: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_copy_profile_specific_ext( packet: *mut GstRTCPPacket, data: *mut *mut u8, @@ -639,15 +639,15 @@ extern "C" { pub fn gst_rtcp_packet_get_count(packet: *mut GstRTCPPacket) -> u8; pub fn gst_rtcp_packet_get_length(packet: *mut GstRTCPPacket) -> u16; pub fn gst_rtcp_packet_get_padding(packet: *mut GstRTCPPacket) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_get_profile_specific_ext( packet: *mut GstRTCPPacket, data: *mut *mut u8, len: *mut c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_get_profile_specific_ext_length(packet: *mut GstRTCPPacket) -> u16; pub fn gst_rtcp_packet_get_rb( packet: *mut GstRTCPPacket, @@ -718,17 +718,17 @@ extern "C" { packet_count: u32, octet_count: u32, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_first_rb(packet: *mut GstRTCPPacket) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_block_length(packet: *mut GstRTCPPacket) -> u16; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_block_type(packet: *mut GstRTCPPacket) -> GstRTCPXRType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_dlrr_block( packet: *mut GstRTCPPacket, nth: c_uint, @@ -736,15 +736,15 @@ extern "C" { last_rr: *mut u32, delay: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_prt_by_seq( packet: *mut GstRTCPPacket, seq: u16, receipt_time: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_prt_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -752,8 +752,8 @@ extern "C" { begin_seq: *mut u16, end_seq: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rle_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -762,29 +762,29 @@ extern "C" { end_seq: *mut u16, chunk_count: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rle_nth_chunk( packet: *mut GstRTCPPacket, nth: c_uint, chunk: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rrt(packet: *mut GstRTCPPacket, timestamp: *mut u64) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_ssrc(packet: *mut GstRTCPPacket) -> u32; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, begin_seq: *mut u16, end_seq: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_jitter( packet: *mut GstRTCPPacket, min_jitter: *mut u32, @@ -792,15 +792,15 @@ extern "C" { mean_jitter: *mut u32, dev_jitter: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_pkt( packet: *mut GstRTCPPacket, lost_packets: *mut u32, dup_packets: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_ttl( packet: *mut GstRTCPPacket, is_ipv4: *mut gboolean, @@ -809,8 +809,8 @@ extern "C" { mean_ttl: *mut u8, dev_ttl: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_burst_metrics( packet: *mut GstRTCPPacket, burst_density: *mut u8, @@ -818,43 +818,43 @@ extern "C" { burst_duration: *mut u16, gap_duration: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_configuration_params( packet: *mut GstRTCPPacket, gmin: *mut u8, rx_config: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_delay_metrics( packet: *mut GstRTCPPacket, roundtrip_delay: *mut u16, end_system_delay: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_jitter_buffer_params( packet: *mut GstRTCPPacket, jb_nominal: *mut u16, jb_maximum: *mut u16, jb_abs_max: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_metrics_ssrc( packet: *mut GstRTCPPacket, ssrc: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_packet_metrics( packet: *mut GstRTCPPacket, loss_rate: *mut u8, discard_rate: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_quality_metrics( packet: *mut GstRTCPPacket, r_factor: *mut u8, @@ -862,8 +862,8 @@ extern "C" { mos_lq: *mut u8, mos_cq: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_signal_metrics( packet: *mut GstRTCPPacket, signal_level: *mut u8, @@ -871,8 +871,8 @@ extern "C" { rerl: *mut u8, gmin: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_next_rb(packet: *mut GstRTCPPacket) -> gboolean; //========================================================================= @@ -974,8 +974,8 @@ extern "C" { pub fn gst_rtp_buffer_compare_seqnum(seqnum1: u16, seqnum2: u16) -> c_int; pub fn gst_rtp_buffer_default_clock_rate(payload_type: u8) -> u32; pub fn gst_rtp_buffer_ext_timestamp(exttimestamp: *mut u64, timestamp: u32) -> u64; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtp_buffer_get_extension_onebyte_header_from_bytes( bytes: *mut glib::GBytes, bit_pattern: u16, @@ -1014,21 +1014,21 @@ extern "C" { //========================================================================= // GstRTPSourceMeta //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_append_csrc( meta: *mut GstRTPSourceMeta, csrc: *const u32, csrc_count: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_get_source_count(meta: *const GstRTPSourceMeta) -> c_uint; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_set_ssrc(meta: *mut GstRTPSourceMeta, ssrc: *mut u32) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1073,8 +1073,8 @@ extern "C" { // GstRTPBaseDepayload //========================================================================= pub fn gst_rtp_base_depayload_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_is_source_info_enabled( depayload: *mut GstRTPBaseDepayload, ) -> gboolean; @@ -1086,8 +1086,8 @@ extern "C" { filter: *mut GstRTPBaseDepayload, out_list: *mut gst::GstBufferList, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_set_source_info_enabled( depayload: *mut GstRTPBaseDepayload, enable: gboolean, @@ -1097,16 +1097,16 @@ extern "C" { // GstRTPBasePayload //========================================================================= pub fn gst_rtp_base_payload_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_allocate_output_buffer( payload: *mut GstRTPBasePayload, payload_len: c_uint, pad_len: u8, csrc_count: u8, ) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_get_source_count( payload: *mut GstRTPBasePayload, buffer: *mut gst::GstBuffer, @@ -1116,8 +1116,8 @@ extern "C" { size: c_uint, duration: gst::GstClockTime, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_is_source_info_enabled(payload: *mut GstRTPBasePayload) -> gboolean; pub fn gst_rtp_base_payload_push( @@ -1140,8 +1140,8 @@ extern "C" { fieldname: *const c_char, ... ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_set_source_info_enabled( payload: *mut GstRTPBasePayload, enable: gboolean, @@ -1150,16 +1150,16 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_rtp_source_meta( buffer: *mut gst::GstBuffer, ssrc: *const u32, csrc: *const u32, csrc_count: c_uint, ) -> *mut GstRTPSourceMeta; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_get_rtp_source_meta(buffer: *mut gst::GstBuffer) -> *mut GstRTPSourceMeta; pub fn gst_rtcp_ntp_to_unix(ntptime: u64) -> u64; pub fn gst_rtcp_sdes_name_to_type(name: *const c_char) -> GstRTCPSDESType; @@ -1169,8 +1169,8 @@ extern "C" { pub fn gst_rtp_hdrext_get_ntp_64(data: gpointer, size: c_uint, ntptime: *mut u64) -> gboolean; pub fn gst_rtp_hdrext_set_ntp_56(data: gpointer, size: c_uint, ntptime: u64) -> gboolean; pub fn gst_rtp_hdrext_set_ntp_64(data: gpointer, size: c_uint, ntptime: u64) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_api_get_type() -> GType; } diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index e9e423c5d..31dc18155 100644 --- a/gstreamer-rtp/sys/tests/abi.rs +++ b/gstreamer-rtp/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_rtp_sys::*; diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-rtp/sys/tests/constant.c +++ b/gstreamer-rtp/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-rtp/sys/tests/layout.c +++ b/gstreamer-rtp/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp-server/src/auto/enums.rs b/gstreamer-rtsp-server/src/auto/enums.rs index 6fa838476..a4fa85755 100644 --- a/gstreamer-rtsp-server/src/auto/enums.rs +++ b/gstreamer-rtsp-server/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -182,19 +181,19 @@ impl StaticType for RTSPPublishClockMode { } impl<'a> FromValueOptional<'a> for RTSPPublishClockMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPPublishClockMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPPublishClockMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -243,19 +242,19 @@ impl StaticType for RTSPSuspendMode { } impl<'a> FromValueOptional<'a> for RTSPSuspendMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPSuspendMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPSuspendMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-rtsp-server/src/auto/flags.rs b/gstreamer-rtsp-server/src/auto/flags.rs index 0c63ee571..c44c816f7 100644 --- a/gstreamer-rtsp-server/src/auto/flags.rs +++ b/gstreamer-rtsp-server/src/auto/flags.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -69,19 +68,19 @@ impl StaticType for RTSPTransportMode { } impl<'a> FromValueOptional<'a> for RTSPTransportMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPTransportMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for RTSPTransportMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index d487c10db..e429a6e63 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -60,18 +60,18 @@ pub const NONE_RTSP_AUTH: Option<&RTSPAuth> = None; pub trait RTSPAuthExt: 'static { fn add_basic(&self, basic: &str, token: &RTSPToken); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn add_digest(&self, user: &str, pass: &str, token: &RTSPToken); fn get_default_token(&self) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_realm(&self) -> Option; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod; fn get_tls_authentication_mode(&self) -> gio::TlsAuthenticationMode; @@ -80,22 +80,22 @@ pub trait RTSPAuthExt: 'static { fn get_tls_database(&self) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn parse_htdigest>(&self, path: P, token: &RTSPToken) -> bool; fn remove_basic(&self, basic: &str); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn remove_digest(&self, user: &str); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_realm(&self, realm: &str); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_supported_methods(&self, methods: gst_rtsp::RTSPAuthMethod); fn set_tls_authentication_mode(&self, mode: gio::TlsAuthenticationMode); @@ -126,8 +126,8 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn add_digest(&self, user: &str, pass: &str, token: &RTSPToken) { unsafe { ffi::gst_rtsp_auth_add_digest( @@ -147,14 +147,14 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_realm(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_auth_get_realm(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod { unsafe { from_glib(ffi::gst_rtsp_auth_get_supported_methods( @@ -187,8 +187,8 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn parse_htdigest>(&self, path: P, token: &RTSPToken) -> bool { unsafe { from_glib(ffi::gst_rtsp_auth_parse_htdigest( @@ -205,24 +205,24 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn remove_digest(&self, user: &str) { unsafe { ffi::gst_rtsp_auth_remove_digest(self.as_ref().to_glib_none().0, user.to_glib_none().0); } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_realm(&self, realm: &str) { unsafe { ffi::gst_rtsp_auth_set_realm(self.as_ref().to_glib_none().0, realm.to_glib_none().0); } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_supported_methods(&self, methods: gst_rtsp::RTSPAuthMethod) { unsafe { ffi::gst_rtsp_auth_set_supported_methods( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index b322d4321..e5e09605e 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -8,8 +8,8 @@ use crate::RTSPFilterResult; use crate::RTSPMountPoints; use crate::RTSPSession; use crate::RTSPSessionPool; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::RTSPStreamTransport; use crate::RTSPThreadPool; use glib::object::Cast; @@ -18,7 +18,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -55,16 +54,16 @@ pub trait RTSPClientExt: 'static { //fn get_connection(&self) -> /*Ignored*/Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32; fn get_mount_points(&self) -> Option; fn get_session_pool(&self) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stream_transport(&self, channel: u8) -> Option; fn get_thread_pool(&self) -> Option; @@ -82,16 +81,16 @@ pub trait RTSPClientExt: 'static { //fn set_connection(&self, conn: /*Ignored*/&mut gst_rtsp::RTSPConnection) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32); fn set_mount_points>(&self, mounts: Option<&P>); //fn set_send_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, bool) -> bool, user_data: /*Unimplemented*/Option); - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn set_send_messages_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, u32, bool) -> bool, user_data: /*Unimplemented*/Option); fn set_session_pool>(&self, pool: Option<&P>); @@ -150,8 +149,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_announce_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -159,8 +158,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_describe_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -168,8 +167,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_get_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -177,8 +176,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_options_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -186,8 +185,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_pause_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -195,8 +194,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_play_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -204,8 +203,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_record_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -213,8 +212,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_set_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -222,8 +221,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_setup_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -231,8 +230,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_teardown_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -302,8 +301,8 @@ impl> RTSPClientExt for O { // unsafe { TODO: call ffi:gst_rtsp_client_get_connection() } //} - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_client_get_content_length_limit(self.as_ref().to_glib_none().0) } } @@ -324,8 +323,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stream_transport(&self, channel: u8) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_client_get_stream_transport( @@ -405,8 +404,8 @@ impl> RTSPClientExt for O { // unsafe { TODO: call ffi:gst_rtsp_client_set_connection() } //} - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32) { unsafe { ffi::gst_rtsp_client_set_content_length_limit(self.as_ref().to_glib_none().0, limit); @@ -426,8 +425,8 @@ impl> RTSPClientExt for O { // unsafe { TODO: call ffi:gst_rtsp_client_set_send_func() } //} - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn set_send_messages_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, u32, bool) -> bool, user_data: /*Unimplemented*/Option) { // unsafe { TODO: call ffi:gst_rtsp_client_set_send_messages_func() } //} @@ -452,7 +451,7 @@ impl> RTSPClientExt for O { fn get_property_drop_backlog(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"drop-backlog\0".as_ptr() as *const _, @@ -470,14 +469,14 @@ impl> RTSPClientExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"drop-backlog\0".as_ptr() as *const _, - Value::from(&drop_backlog).to_glib_none().0, + glib::Value::from(&drop_backlog).to_glib_none().0, ); } } fn get_property_post_session_timeout(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"post-session-timeout\0".as_ptr() as *const _, @@ -495,7 +494,7 @@ impl> RTSPClientExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"post-session-timeout\0".as_ptr() as *const _, - Value::from(&post_session_timeout).to_glib_none().0, + glib::Value::from(&post_session_timeout).to_glib_none().0, ); } } @@ -791,8 +790,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_announce_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -830,8 +829,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_describe_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -869,8 +868,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_get_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -908,8 +907,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_options_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -947,8 +946,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_pause_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -986,8 +985,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_play_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1025,8 +1024,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_record_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1064,8 +1063,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_set_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1103,8 +1102,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_setup_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1142,8 +1141,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_teardown_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 308d8c8ed..33ed721be 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -16,10 +16,9 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem; use std::mem::transmute; @@ -46,8 +45,8 @@ pub const NONE_RTSP_MEDIA: Option<&RTSPMedia> = None; pub trait RTSPMediaExt: 'static { fn collect_streams(&self); - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn complete_pipeline(&self, transports: /*Ignored*/&[&gst_rtsp::RTSPTransport]) -> bool; fn create_stream, Q: IsA>( @@ -66,20 +65,20 @@ pub trait RTSPMediaExt: 'static { fn get_clock(&self) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32; fn get_element(&self) -> Option; fn get_latency(&self) -> u32; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_multicast_iface(&self) -> Option; @@ -94,12 +93,12 @@ pub trait RTSPMediaExt: 'static { fn get_range_string(&self, play: bool, unit: gst_rtsp::RTSPRangeUnit) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)>; fn get_retransmission_time(&self) -> gst::ClockTime; @@ -116,18 +115,18 @@ pub trait RTSPMediaExt: 'static { //fn handle_sdp(&self, sdp: /*Ignored*/&mut gst_sdp::SDPMessage) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_completed_sender(&self) -> bool; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_eos_shutdown(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_receive_only(&self) -> bool; fn is_reusable(&self) -> bool; @@ -138,8 +137,8 @@ pub trait RTSPMediaExt: 'static { fn is_time_provider(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn lock(&self); fn n_streams(&self) -> u32; @@ -148,42 +147,42 @@ pub trait RTSPMediaExt: 'static { //fn seek(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange) -> bool; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn seek_full(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags) -> bool; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn seek_trickmode(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags, rate: f64, trickmode_interval: gst::ClockTime) -> bool; - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn seekable(&self) -> /*Ignored*/gst::ClockTimeDiff; fn set_address_pool>(&self, pool: Option<&P>); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_buffer_size(&self, size: u32); fn set_clock>(&self, clock: Option<&P>); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32); fn set_eos_shutdown(&self, eos_shutdown: bool); fn set_latency(&self, latency: u32); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_multicast_iface(&self, multicast_iface: Option<&str>); @@ -198,8 +197,8 @@ pub trait RTSPMediaExt: 'static { fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool); fn set_retransmission_time(&self, time: gst::ClockTime); @@ -220,8 +219,8 @@ pub trait RTSPMediaExt: 'static { fn suspend(&self) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn unlock(&self); fn unprepare(&self) -> Result<(), glib::error::BoolError>; @@ -357,8 +356,8 @@ impl> RTSPMediaExt for O { } } - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn complete_pipeline(&self, transports: /*Ignored*/&[&gst_rtsp::RTSPTransport]) -> bool { // unsafe { TODO: call ffi:gst_rtsp_media_complete_pipeline() } //} @@ -414,8 +413,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_do_retransmission( @@ -424,8 +423,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_get_dscp_qos(self.as_ref().to_glib_none().0) } } @@ -442,8 +441,8 @@ impl> RTSPMediaExt for O { unsafe { ffi::gst_rtsp_media_get_latency(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -494,8 +493,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_rate_control( @@ -504,8 +503,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -574,8 +573,8 @@ impl> RTSPMediaExt for O { // unsafe { TODO: call ffi:gst_rtsp_media_handle_sdp() } //} - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_completed_sender(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_has_completed_sender( @@ -584,8 +583,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_is_bind_mcast_address( @@ -602,8 +601,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_receive_only(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_is_receive_only( @@ -644,8 +643,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn lock(&self) { unsafe { ffi::gst_rtsp_media_lock(self.as_ref().to_glib_none().0); @@ -669,20 +668,20 @@ impl> RTSPMediaExt for O { // unsafe { TODO: call ffi:gst_rtsp_media_seek() } //} - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn seek_full(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags) -> bool { // unsafe { TODO: call ffi:gst_rtsp_media_seek_full() } //} - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn seek_trickmode(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags, rate: f64, trickmode_interval: gst::ClockTime) -> bool { // unsafe { TODO: call ffi:gst_rtsp_media_seek_trickmode() } //} - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn seekable(&self) -> /*Ignored*/gst::ClockTimeDiff { // unsafe { TODO: call ffi:gst_rtsp_media_seekable() } //} @@ -696,8 +695,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_media_set_bind_mcast_address( @@ -722,8 +721,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { ffi::gst_rtsp_media_set_do_retransmission( @@ -733,8 +732,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32) { unsafe { ffi::gst_rtsp_media_set_dscp_qos(self.as_ref().to_glib_none().0, dscp_qos); @@ -756,8 +755,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_set_max_mcast_ttl( @@ -807,8 +806,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { ffi::gst_rtsp_media_set_rate_control(self.as_ref().to_glib_none().0, enabled.to_glib()); @@ -880,8 +879,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn unlock(&self) { unsafe { ffi::gst_rtsp_media_unlock(self.as_ref().to_glib_none().0); @@ -917,7 +916,7 @@ impl> RTSPMediaExt for O { fn get_property_bind_mcast_address(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"bind-mcast-address\0".as_ptr() as *const _, @@ -935,14 +934,14 @@ impl> RTSPMediaExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"bind-mcast-address\0".as_ptr() as *const _, - Value::from(&bind_mcast_address).to_glib_none().0, + glib::Value::from(&bind_mcast_address).to_glib_none().0, ); } } fn get_property_dscp_qos(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"dscp-qos\0".as_ptr() as *const _, @@ -960,14 +959,14 @@ impl> RTSPMediaExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"dscp-qos\0".as_ptr() as *const _, - Value::from(&dscp_qos).to_glib_none().0, + glib::Value::from(&dscp_qos).to_glib_none().0, ); } } fn get_property_eos_shutdown(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"eos-shutdown\0".as_ptr() as *const _, @@ -982,7 +981,7 @@ impl> RTSPMediaExt for O { fn get_property_max_mcast_ttl(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"max-mcast-ttl\0".as_ptr() as *const _, @@ -1000,14 +999,14 @@ impl> RTSPMediaExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"max-mcast-ttl\0".as_ptr() as *const _, - Value::from(&max_mcast_ttl).to_glib_none().0, + glib::Value::from(&max_mcast_ttl).to_glib_none().0, ); } } fn get_property_reusable(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"reusable\0".as_ptr() as *const _, @@ -1022,7 +1021,7 @@ impl> RTSPMediaExt for O { fn get_property_shared(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"shared\0".as_ptr() as *const _, @@ -1037,7 +1036,7 @@ impl> RTSPMediaExt for O { fn get_property_stop_on_disconnect(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"stop-on-disconnect\0".as_ptr() as *const _, @@ -1055,7 +1054,7 @@ impl> RTSPMediaExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"time-provider\0".as_ptr() as *const _, - Value::from(&time_provider).to_glib_none().0, + glib::Value::from(&time_provider).to_glib_none().0, ); } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index 4b639e0d9..fd53a0028 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -13,7 +13,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -56,20 +55,20 @@ pub trait RTSPMediaFactoryExt: 'static { fn get_clock(&self) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32; fn get_latency(&self) -> u32; fn get_launch(&self) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_media_gtype(&self) -> glib::types::Type; @@ -90,8 +89,8 @@ pub trait RTSPMediaFactoryExt: 'static { fn get_transport_mode(&self) -> RTSPTransportMode; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_eos_shutdown(&self) -> bool; @@ -102,20 +101,20 @@ pub trait RTSPMediaFactoryExt: 'static { fn set_address_pool>(&self, pool: Option<&P>); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_buffer_size(&self, size: u32); fn set_clock>(&self, clock: Option<&P>); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32); fn set_eos_shutdown(&self, eos_shutdown: bool); @@ -124,8 +123,8 @@ pub trait RTSPMediaFactoryExt: 'static { fn set_launch(&self, launch: &str); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_media_gtype(&self, media_gtype: glib::types::Type); @@ -294,8 +293,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_do_retransmission( @@ -304,8 +303,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_factory_get_dscp_qos(self.as_ref().to_glib_none().0) } } @@ -322,8 +321,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_factory_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -396,8 +395,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_is_bind_mcast_address( @@ -439,8 +438,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_media_factory_set_bind_mcast_address( @@ -465,8 +464,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { ffi::gst_rtsp_media_factory_set_do_retransmission( @@ -476,8 +475,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32) { unsafe { ffi::gst_rtsp_media_factory_set_dscp_qos(self.as_ref().to_glib_none().0, dscp_qos); @@ -508,8 +507,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_set_max_mcast_ttl( @@ -615,7 +614,7 @@ impl> RTSPMediaFactoryExt for O { fn get_property_bind_mcast_address(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"bind-mcast-address\0".as_ptr() as *const _, @@ -633,14 +632,14 @@ impl> RTSPMediaFactoryExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"bind-mcast-address\0".as_ptr() as *const _, - Value::from(&bind_mcast_address).to_glib_none().0, + glib::Value::from(&bind_mcast_address).to_glib_none().0, ); } } fn get_property_dscp_qos(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"dscp-qos\0".as_ptr() as *const _, @@ -658,14 +657,14 @@ impl> RTSPMediaFactoryExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"dscp-qos\0".as_ptr() as *const _, - Value::from(&dscp_qos).to_glib_none().0, + glib::Value::from(&dscp_qos).to_glib_none().0, ); } } fn get_property_eos_shutdown(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"eos-shutdown\0".as_ptr() as *const _, @@ -680,7 +679,7 @@ impl> RTSPMediaFactoryExt for O { fn get_property_max_mcast_ttl(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"max-mcast-ttl\0".as_ptr() as *const _, @@ -698,14 +697,14 @@ impl> RTSPMediaFactoryExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"max-mcast-ttl\0".as_ptr() as *const _, - Value::from(&max_mcast_ttl).to_glib_none().0, + glib::Value::from(&max_mcast_ttl).to_glib_none().0, ); } } fn get_property_shared(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"shared\0".as_ptr() as *const _, @@ -720,7 +719,7 @@ impl> RTSPMediaFactoryExt for O { fn get_property_stop_on_disconnect(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"stop-on-disconnect\0".as_ptr() as *const _, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs index 36fd92043..9dfedeb22 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -9,7 +9,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -79,7 +78,7 @@ impl> RTSPMediaFactoryURIExt for O { fn get_property_use_gstpay(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"use-gstpay\0".as_ptr() as *const _, @@ -97,7 +96,7 @@ impl> RTSPMediaFactoryURIExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"use-gstpay\0".as_ptr() as *const _, - Value::from(&use_gstpay).to_glib_none().0, + glib::Value::from(&use_gstpay).to_glib_none().0, ); } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index 3af49503f..a41c8445f 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -14,7 +14,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; use std::ptr; @@ -87,8 +86,8 @@ pub trait RTSPServerExt: 'static { fn get_bound_port(&self) -> i32; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32; fn get_mount_points(&self) -> Option; @@ -105,8 +104,8 @@ pub trait RTSPServerExt: 'static { fn set_backlog(&self, backlog: i32); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32); fn set_mount_points>(&self, mounts: Option<&P>); @@ -274,8 +273,8 @@ impl> RTSPServerExt for O { unsafe { ffi::gst_rtsp_server_get_bound_port(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_server_get_content_length_limit(self.as_ref().to_glib_none().0) } } @@ -336,8 +335,8 @@ impl> RTSPServerExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32) { unsafe { ffi::gst_rtsp_server_set_content_length_limit(self.as_ref().to_glib_none().0, limit); @@ -403,7 +402,7 @@ impl> RTSPServerExt for O { fn get_property_content_length_limit(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"content-length-limit\0".as_ptr() as *const _, @@ -421,7 +420,7 @@ impl> RTSPServerExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"content-length-limit\0".as_ptr() as *const _, - Value::from(&content_length_limit).to_glib_none().0, + glib::Value::from(&content_length_limit).to_glib_none().0, ); } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 8f47d668b..2e85d4182 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -11,7 +11,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem; use std::mem::transmute; @@ -247,7 +246,7 @@ impl> RTSPSessionExt for O { fn get_property_extra_timeout(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"extra-timeout\0".as_ptr() as *const _, @@ -265,14 +264,14 @@ impl> RTSPSessionExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"extra-timeout\0".as_ptr() as *const _, - Value::from(&extra_timeout).to_glib_none().0, + glib::Value::from(&extra_timeout).to_glib_none().0, ); } } fn get_property_timeout_always_visible(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"timeout-always-visible\0".as_ptr() as *const _, @@ -290,7 +289,7 @@ impl> RTSPSessionExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"timeout-always-visible\0".as_ptr() as *const _, - Value::from(&timeout_always_visible).to_glib_none().0, + glib::Value::from(&timeout_always_visible).to_glib_none().0, ); } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs index 0b6786706..6e084f8aa 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs @@ -46,8 +46,8 @@ pub trait RTSPSessionMediaExt: 'static { fn get_transport(&self, idx: u32) -> Option; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_transports(&self) -> Vec; fn matches(&self, path: &str) -> Option; @@ -101,8 +101,8 @@ impl> RTSPSessionMediaExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_transports(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_session_media_get_transports( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index 7b33b7c14..6609286e7 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -47,8 +47,8 @@ unsafe impl Sync for RTSPStream {} pub const NONE_RTSP_STREAM: Option<&RTSPStream> = None; pub trait RTSPStreamExt: 'static { - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn add_multicast_client_address( &self, destination: &str, @@ -64,8 +64,8 @@ pub trait RTSPStreamExt: 'static { //fn allocate_udp_sockets(&self, family: gio::SocketFamily, transport: /*Ignored*/&mut gst_rtsp::RTSPTransport, use_client_settings: bool) -> bool; - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool; fn get_address_pool(&self) -> Option; @@ -84,16 +84,16 @@ pub trait RTSPStreamExt: 'static { fn get_joined_bin(&self) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_mtu(&self) -> u32; fn get_multicast_address(&self, family: gio::SocketFamily) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_multicast_client_addresses(&self) -> Option; fn get_multicast_iface(&self) -> Option; @@ -106,20 +106,20 @@ pub trait RTSPStreamExt: 'static { fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)>; fn get_retransmission_pt(&self) -> u32; fn get_retransmission_time(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_rtcp_multicast_socket(&self, family: gio::SocketFamily) -> Option; fn get_rtcp_socket(&self, family: gio::SocketFamily) -> Option; @@ -144,38 +144,38 @@ pub trait RTSPStreamExt: 'static { fn get_ulpfec_enabled(&self) -> bool; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_percentage(&self) -> u32; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_pt(&self) -> u32; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn handle_keymgmt(&self, keymgmt: &str) -> bool; fn has_control(&self, control: Option<&str>) -> bool; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_blocking(&self) -> bool; fn is_client_side(&self) -> bool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_complete(&self) -> bool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_receiver(&self) -> bool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_sender(&self) -> bool; //fn is_transport_supported(&self, transport: /*Ignored*/&mut gst_rtsp::RTSPTransport) -> bool; @@ -198,22 +198,22 @@ pub trait RTSPStreamExt: 'static { trans: &P, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_aux_receiver(&self, sessid: u32) -> Option; fn request_aux_sender(&self, sessid: u32) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_decoder>( &self, rtpbin: &P, sessid: u32, ) -> Option; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_encoder(&self, sessid: u32) -> Option; fn reserve_address( @@ -224,14 +224,14 @@ pub trait RTSPStreamExt: 'static { ttl: u32, ) -> Option; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn seekable(&self) -> bool; fn set_address_pool>(&self, pool: Option<&P>); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_blocked(&self, blocked: bool) -> Result<(), glib::error::BoolError>; @@ -244,8 +244,8 @@ pub trait RTSPStreamExt: 'static { fn set_dscp_qos(&self, dscp_qos: i32); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_mtu(&self, mtu: u32); @@ -260,8 +260,8 @@ pub trait RTSPStreamExt: 'static { fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool); fn set_retransmission_pt(&self, rtx_pt: u32); @@ -270,12 +270,12 @@ pub trait RTSPStreamExt: 'static { fn set_seqnum_offset(&self, seqnum: u16); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_percentage(&self, percentage: u32); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_pt(&self, pt: u32); fn transport_filter( @@ -291,8 +291,8 @@ pub trait RTSPStreamExt: 'static { crypto: Option<&gst::Caps>, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn verify_mcast_ttl(&self, ttl: u32) -> bool; fn connect_new_rtcp_encoder( @@ -327,8 +327,8 @@ pub trait RTSPStreamExt: 'static { } impl> RTSPStreamExt for O { - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn add_multicast_client_address( &self, destination: &str, @@ -366,8 +366,8 @@ impl> RTSPStreamExt for O { // unsafe { TODO: call ffi:gst_rtsp_stream_allocate_udp_sockets() } //} - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool { // unsafe { TODO: call ffi:gst_rtsp_stream_complete_stream() } //} @@ -420,8 +420,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -439,8 +439,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_multicast_client_addresses(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_multicast_client_addresses( @@ -485,8 +485,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_get_rate_control( @@ -495,8 +495,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -528,8 +528,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_rtcp_multicast_socket(&self, family: gio::SocketFamily) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_rtcp_multicast_socket( @@ -644,20 +644,20 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_percentage(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_ulpfec_percentage(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_pt(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_ulpfec_pt(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn handle_keymgmt(&self, keymgmt: &str) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_handle_keymgmt( @@ -676,8 +676,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_bind_mcast_address( @@ -702,8 +702,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_complete(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_complete( @@ -712,8 +712,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_receiver(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_receiver( @@ -722,8 +722,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_sender(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_sender( @@ -787,8 +787,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_aux_receiver(&self, sessid: u32) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_request_aux_receiver( @@ -807,8 +807,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_decoder>( &self, rtpbin: &P, @@ -823,8 +823,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_encoder(&self, sessid: u32) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_request_ulpfec_encoder( @@ -852,8 +852,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn seekable(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_seekable( @@ -871,8 +871,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_stream_set_bind_mcast_address( @@ -921,8 +921,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_set_max_mcast_ttl( @@ -978,8 +978,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { ffi::gst_rtsp_stream_set_rate_control( @@ -1010,16 +1010,16 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_percentage(&self, percentage: u32) { unsafe { ffi::gst_rtsp_stream_set_ulpfec_percentage(self.as_ref().to_glib_none().0, percentage); } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_pt(&self, pt: u32) { unsafe { ffi::gst_rtsp_stream_set_ulpfec_pt(self.as_ref().to_glib_none().0, pt); @@ -1096,8 +1096,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn verify_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_verify_mcast_ttl( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs index 74b57d0a3..05daae8d4 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -36,20 +36,20 @@ pub trait RTSPStreamTransportExt: 'static { fn keep_alive(&self); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn message_sent(&self); fn send_rtcp(&self, buffer: &gst::Buffer) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn send_rtcp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; fn send_rtp(&self, buffer: &gst::Buffer) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn send_rtp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; fn set_active(&self, active: bool) -> Result<(), glib::error::BoolError>; @@ -58,14 +58,14 @@ pub trait RTSPStreamTransportExt: 'static { fn set_keepalive(&self, keep_alive: P); - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn set_list_callbacks(&self, send_rtp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, send_rtcp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, user_data: /*Unimplemented*/Option); fn set_message_sent(&self, message_sent: P); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_message_sent_full(&self, message_sent: P); fn set_timed_out(&self, timedout: bool); @@ -119,8 +119,8 @@ impl> RTSPStreamTransportExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn message_sent(&self) { unsafe { ffi::gst_rtsp_stream_transport_message_sent(self.as_ref().to_glib_none().0); @@ -139,8 +139,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn send_rtcp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool { // unsafe { TODO: call ffi:gst_rtsp_stream_transport_send_rtcp_list() } //} @@ -157,8 +157,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn send_rtp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool { // unsafe { TODO: call ffi:gst_rtsp_stream_transport_send_rtp_list() } //} @@ -201,8 +201,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn set_list_callbacks(&self, send_rtp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, send_rtcp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, user_data: /*Unimplemented*/Option) { // unsafe { TODO: call ffi:gst_rtsp_stream_transport_set_list_callbacks() } //} @@ -229,8 +229,8 @@ impl> RTSPStreamTransportExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_message_sent_full(&self, message_sent: P) { let message_sent_data: Box_

= Box_::new(message_sent); unsafe extern "C" fn message_sent_func( diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-rtsp-server/sys/Cargo.toml b/gstreamer-rtsp-server/sys/Cargo.toml index 50c89dcef..9e061d820 100644 --- a/gstreamer-rtsp-server/sys/Cargo.toml +++ b/gstreamer-rtsp-server/sys/Cargo.toml @@ -39,6 +39,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_rtsp_server_sys" @@ -58,7 +59,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_rtsp_server_1_0] name = "gstreamer-rtsp-server-1.0" version = "1.8" diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index 98c8515f9..384c64a5e 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -1307,8 +1307,8 @@ extern "C" { //========================================================================= pub fn gst_rtsp_permissions_get_type() -> GType; pub fn gst_rtsp_permissions_new() -> *mut GstRTSPPermissions; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_permission_for_role( permissions: *mut GstRTSPPermissions, role: *const c_char, @@ -1321,14 +1321,14 @@ extern "C" { fieldname: *const c_char, ... ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_role_empty( permissions: *mut GstRTSPPermissions, role: *const c_char, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_role_from_structure( permissions: *mut GstRTSPPermissions, structure: *mut gst::GstStructure, @@ -1369,15 +1369,15 @@ extern "C" { ) -> *const c_char; pub fn gst_rtsp_token_get_structure(token: *mut GstRTSPToken) -> *const gst::GstStructure; pub fn gst_rtsp_token_is_allowed(token: *mut GstRTSPToken, field: *const c_char) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_token_set_bool( token: *mut GstRTSPToken, field: *const c_char, bool_value: gboolean, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_token_set_string( token: *mut GstRTSPToken, field: *const c_char, @@ -1427,8 +1427,8 @@ extern "C" { basic: *const c_char, token: *mut GstRTSPToken, ); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_add_digest( auth: *mut GstRTSPAuth, user: *const c_char, @@ -1436,11 +1436,11 @@ extern "C" { token: *mut GstRTSPToken, ); pub fn gst_rtsp_auth_get_default_token(auth: *mut GstRTSPAuth) -> *mut GstRTSPToken; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_get_realm(auth: *mut GstRTSPAuth) -> *mut c_char; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_get_supported_methods( auth: *mut GstRTSPAuth, ) -> gst_rtsp::GstRTSPAuthMethod; @@ -1449,23 +1449,23 @@ extern "C" { ) -> gio::GTlsAuthenticationMode; pub fn gst_rtsp_auth_get_tls_certificate(auth: *mut GstRTSPAuth) -> *mut gio::GTlsCertificate; pub fn gst_rtsp_auth_get_tls_database(auth: *mut GstRTSPAuth) -> *mut gio::GTlsDatabase; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_parse_htdigest( auth: *mut GstRTSPAuth, path: *const c_char, token: *mut GstRTSPToken, ) -> gboolean; pub fn gst_rtsp_auth_remove_basic(auth: *mut GstRTSPAuth, basic: *const c_char); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_remove_digest(auth: *mut GstRTSPAuth, user: *const c_char); pub fn gst_rtsp_auth_set_default_token(auth: *mut GstRTSPAuth, token: *mut GstRTSPToken); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_set_realm(auth: *mut GstRTSPAuth, realm: *const c_char); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_set_supported_methods( auth: *mut GstRTSPAuth, methods: gst_rtsp::GstRTSPAuthMethod, @@ -1494,13 +1494,13 @@ extern "C" { pub fn gst_rtsp_client_get_connection( client: *mut GstRTSPClient, ) -> *mut gst_rtsp::GstRTSPConnection; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_get_content_length_limit(client: *mut GstRTSPClient) -> c_uint; pub fn gst_rtsp_client_get_mount_points(client: *mut GstRTSPClient) -> *mut GstRTSPMountPoints; pub fn gst_rtsp_client_get_session_pool(client: *mut GstRTSPClient) -> *mut GstRTSPSessionPool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_get_stream_transport( client: *mut GstRTSPClient, channel: u8, @@ -1525,8 +1525,8 @@ extern "C" { client: *mut GstRTSPClient, conn: *mut gst_rtsp::GstRTSPConnection, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_set_content_length_limit(client: *mut GstRTSPClient, limit: c_uint); pub fn gst_rtsp_client_set_mount_points( client: *mut GstRTSPClient, @@ -1538,8 +1538,8 @@ extern "C" { user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_client_set_send_messages_func( client: *mut GstRTSPClient, func: GstRTSPClientSendMessagesFunc, @@ -1561,8 +1561,8 @@ extern "C" { pub fn gst_rtsp_media_get_type() -> GType; pub fn gst_rtsp_media_new(element: *mut gst::GstElement) -> *mut GstRTSPMedia; pub fn gst_rtsp_media_collect_streams(media: *mut GstRTSPMedia); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_complete_pipeline( media: *mut GstRTSPMedia, transports: *mut glib::GPtrArray, @@ -1580,16 +1580,16 @@ extern "C" { pub fn gst_rtsp_media_get_base_time(media: *mut GstRTSPMedia) -> gst::GstClockTime; pub fn gst_rtsp_media_get_buffer_size(media: *mut GstRTSPMedia) -> c_uint; pub fn gst_rtsp_media_get_clock(media: *mut GstRTSPMedia) -> *mut gst::GstClock; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_get_do_retransmission(media: *mut GstRTSPMedia) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_dscp_qos(media: *mut GstRTSPMedia) -> c_int; pub fn gst_rtsp_media_get_element(media: *mut GstRTSPMedia) -> *mut gst::GstElement; pub fn gst_rtsp_media_get_latency(media: *mut GstRTSPMedia) -> c_uint; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_get_max_mcast_ttl(media: *mut GstRTSPMedia) -> c_uint; pub fn gst_rtsp_media_get_multicast_iface(media: *mut GstRTSPMedia) -> *mut c_char; pub fn gst_rtsp_media_get_permissions(media: *mut GstRTSPMedia) -> *mut GstRTSPPermissions; @@ -1603,11 +1603,11 @@ extern "C" { play: gboolean, unit: gst_rtsp::GstRTSPRangeUnit, ) -> *mut c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_rate_control(media: *mut GstRTSPMedia) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_rates( media: *mut GstRTSPMedia, rate: *mut c_double, @@ -1627,22 +1627,22 @@ extern "C" { media: *mut GstRTSPMedia, sdp: *mut gst_sdp::GstSDPMessage, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_has_completed_sender(media: *mut GstRTSPMedia) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_is_bind_mcast_address(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_eos_shutdown(media: *mut GstRTSPMedia) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_is_receive_only(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_reusable(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_shared(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_stop_on_disconnect(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_time_provider(media: *mut GstRTSPMedia) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_lock(media: *mut GstRTSPMedia); pub fn gst_rtsp_media_n_streams(media: *mut GstRTSPMedia) -> c_uint; pub fn gst_rtsp_media_prepare(media: *mut GstRTSPMedia, thread: *mut GstRTSPThread) @@ -1651,15 +1651,15 @@ extern "C" { media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_seek_full( media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, flags: gst::GstSeekFlags, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_seek_trickmode( media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, @@ -1667,31 +1667,31 @@ extern "C" { rate: c_double, trickmode_interval: gst::GstClockTime, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_seekable(media: *mut GstRTSPMedia) -> gst::GstClockTimeDiff; pub fn gst_rtsp_media_set_address_pool(media: *mut GstRTSPMedia, pool: *mut GstRTSPAddressPool); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_set_bind_mcast_address( media: *mut GstRTSPMedia, bind_mcast_addr: gboolean, ); pub fn gst_rtsp_media_set_buffer_size(media: *mut GstRTSPMedia, size: c_uint); pub fn gst_rtsp_media_set_clock(media: *mut GstRTSPMedia, clock: *mut gst::GstClock); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_set_do_retransmission( media: *mut GstRTSPMedia, do_retransmission: gboolean, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_set_dscp_qos(media: *mut GstRTSPMedia, dscp_qos: c_int); pub fn gst_rtsp_media_set_eos_shutdown(media: *mut GstRTSPMedia, eos_shutdown: gboolean); pub fn gst_rtsp_media_set_latency(media: *mut GstRTSPMedia, latency: c_uint); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_set_max_mcast_ttl(media: *mut GstRTSPMedia, ttl: c_uint) -> gboolean; pub fn gst_rtsp_media_set_multicast_iface( media: *mut GstRTSPMedia, @@ -1714,8 +1714,8 @@ extern "C" { media: *mut GstRTSPMedia, mode: GstRTSPPublishClockMode, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_set_rate_control(media: *mut GstRTSPMedia, enabled: gboolean); pub fn gst_rtsp_media_set_retransmission_time( media: *mut GstRTSPMedia, @@ -1741,8 +1741,8 @@ extern "C" { ) -> gboolean; pub fn gst_rtsp_media_suspend(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_take_pipeline(media: *mut GstRTSPMedia, pipeline: *mut gst::GstPipeline); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_unlock(media: *mut GstRTSPMedia); pub fn gst_rtsp_media_unprepare(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_unsuspend(media: *mut GstRTSPMedia) -> gboolean; @@ -1759,8 +1759,8 @@ extern "C" { fieldname: *const c_char, ... ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_factory_add_role_from_structure( factory: *mut GstRTSPMediaFactory, structure: *mut gst::GstStructure, @@ -1780,18 +1780,18 @@ extern "C" { pub fn gst_rtsp_media_factory_get_clock( factory: *mut GstRTSPMediaFactory, ) -> *mut gst::GstClock; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_get_do_retransmission( factory: *mut GstRTSPMediaFactory, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_factory_get_dscp_qos(factory: *mut GstRTSPMediaFactory) -> c_int; pub fn gst_rtsp_media_factory_get_latency(factory: *mut GstRTSPMediaFactory) -> c_uint; pub fn gst_rtsp_media_factory_get_launch(factory: *mut GstRTSPMediaFactory) -> *mut c_char; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_get_max_mcast_ttl(factory: *mut GstRTSPMediaFactory) -> c_uint; pub fn gst_rtsp_media_factory_get_media_gtype(factory: *mut GstRTSPMediaFactory) -> GType; pub fn gst_rtsp_media_factory_get_multicast_iface( @@ -1818,8 +1818,8 @@ extern "C" { pub fn gst_rtsp_media_factory_get_transport_mode( factory: *mut GstRTSPMediaFactory, ) -> GstRTSPTransportMode; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_is_bind_mcast_address( factory: *mut GstRTSPMediaFactory, ) -> gboolean; @@ -1832,8 +1832,8 @@ extern "C" { factory: *mut GstRTSPMediaFactory, pool: *mut GstRTSPAddressPool, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_bind_mcast_address( factory: *mut GstRTSPMediaFactory, bind_mcast_addr: gboolean, @@ -1843,14 +1843,14 @@ extern "C" { factory: *mut GstRTSPMediaFactory, clock: *mut gst::GstClock, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_do_retransmission( factory: *mut GstRTSPMediaFactory, do_retransmission: gboolean, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_factory_set_dscp_qos(factory: *mut GstRTSPMediaFactory, dscp_qos: c_int); pub fn gst_rtsp_media_factory_set_eos_shutdown( factory: *mut GstRTSPMediaFactory, @@ -1861,8 +1861,8 @@ extern "C" { factory: *mut GstRTSPMediaFactory, launch: *const c_char, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_max_mcast_ttl( factory: *mut GstRTSPMediaFactory, ttl: c_uint, @@ -1947,27 +1947,27 @@ extern "C" { //========================================================================= // GstRTSPOnvifClient //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_client_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_client_new() -> *mut GstRTSPClient; //========================================================================= // GstRTSPOnvifMedia //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_collect_backchannel(media: *mut GstRTSPOnvifMedia) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_get_backchannel_bandwidth(media: *mut GstRTSPOnvifMedia) -> c_uint; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_set_backchannel_bandwidth( media: *mut GstRTSPOnvifMedia, bandwidth: c_uint, @@ -1976,52 +1976,52 @@ extern "C" { //========================================================================= // GstRTSPOnvifMediaFactory //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_new() -> *mut GstRTSPMediaFactory; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_requires_backchannel( factory: *mut GstRTSPMediaFactory, ctx: *mut GstRTSPContext, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_get_backchannel_bandwidth( factory: *mut GstRTSPOnvifMediaFactory, ) -> c_uint; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_get_backchannel_launch( factory: *mut GstRTSPOnvifMediaFactory, ) -> *mut c_char; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_has_backchannel_support( factory: *mut GstRTSPOnvifMediaFactory, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_media_factory_has_replay_support( factory: *mut GstRTSPOnvifMediaFactory, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_set_backchannel_bandwidth( factory: *mut GstRTSPOnvifMediaFactory, bandwidth: c_uint, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_set_backchannel_launch( factory: *mut GstRTSPOnvifMediaFactory, launch: *const c_char, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_media_factory_set_replay_support( factory: *mut GstRTSPOnvifMediaFactory, has_replay_support: gboolean, @@ -2030,11 +2030,11 @@ extern "C" { //========================================================================= // GstRTSPOnvifServer //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_server_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_server_new() -> *mut GstRTSPServer; //========================================================================= @@ -2070,8 +2070,8 @@ extern "C" { pub fn gst_rtsp_server_get_auth(server: *mut GstRTSPServer) -> *mut GstRTSPAuth; pub fn gst_rtsp_server_get_backlog(server: *mut GstRTSPServer) -> c_int; pub fn gst_rtsp_server_get_bound_port(server: *mut GstRTSPServer) -> c_int; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_server_get_content_length_limit(server: *mut GstRTSPServer) -> c_uint; pub fn gst_rtsp_server_get_mount_points(server: *mut GstRTSPServer) -> *mut GstRTSPMountPoints; pub fn gst_rtsp_server_get_service(server: *mut GstRTSPServer) -> *mut c_char; @@ -2080,8 +2080,8 @@ extern "C" { pub fn gst_rtsp_server_set_address(server: *mut GstRTSPServer, address: *const c_char); pub fn gst_rtsp_server_set_auth(server: *mut GstRTSPServer, auth: *mut GstRTSPAuth); pub fn gst_rtsp_server_set_backlog(server: *mut GstRTSPServer, backlog: c_int); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_server_set_content_length_limit(server: *mut GstRTSPServer, limit: c_uint); pub fn gst_rtsp_server_set_mount_points( server: *mut GstRTSPServer, @@ -2170,8 +2170,8 @@ extern "C" { media: *mut GstRTSPSessionMedia, idx: c_uint, ) -> *mut GstRTSPStreamTransport; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_session_media_get_transports( media: *mut GstRTSPSessionMedia, ) -> *mut glib::GPtrArray; @@ -2228,8 +2228,8 @@ extern "C" { payloader: *mut gst::GstElement, pad: *mut gst::GstPad, ) -> *mut GstRTSPStream; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_add_multicast_client_address( stream: *mut GstRTSPStream, destination: *const c_char, @@ -2247,8 +2247,8 @@ extern "C" { transport: *mut gst_rtsp::GstRTSPTransport, use_client_settings: gboolean, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_complete_stream( stream: *mut GstRTSPStream, transport: *const gst_rtsp::GstRTSPTransport, @@ -2261,16 +2261,16 @@ extern "C" { pub fn gst_rtsp_stream_get_dscp_qos(stream: *mut GstRTSPStream) -> c_int; pub fn gst_rtsp_stream_get_index(stream: *mut GstRTSPStream) -> c_uint; pub fn gst_rtsp_stream_get_joined_bin(stream: *mut GstRTSPStream) -> *mut gst::GstBin; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_max_mcast_ttl(stream: *mut GstRTSPStream) -> c_uint; pub fn gst_rtsp_stream_get_mtu(stream: *mut GstRTSPStream) -> c_uint; pub fn gst_rtsp_stream_get_multicast_address( stream: *mut GstRTSPStream, family: gio::GSocketFamily, ) -> *mut GstRTSPAddress; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_multicast_client_addresses( stream: *mut GstRTSPStream, ) -> *mut c_char; @@ -2282,11 +2282,11 @@ extern "C" { pub fn gst_rtsp_stream_get_publish_clock_mode( stream: *mut GstRTSPStream, ) -> GstRTSPPublishClockMode; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_get_rate_control(stream: *mut GstRTSPStream) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_get_rates( stream: *mut GstRTSPStream, rate: *mut c_double, @@ -2295,8 +2295,8 @@ extern "C" { pub fn gst_rtsp_stream_get_retransmission_pt(stream: *mut GstRTSPStream) -> c_uint; pub fn gst_rtsp_stream_get_retransmission_time(stream: *mut GstRTSPStream) -> gst::GstClockTime; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_get_rtcp_multicast_socket( stream: *mut GstRTSPStream, family: gio::GSocketFamily, @@ -2331,14 +2331,14 @@ extern "C" { pub fn gst_rtsp_stream_get_srtp_encoder(stream: *mut GstRTSPStream) -> *mut gst::GstElement; pub fn gst_rtsp_stream_get_ssrc(stream: *mut GstRTSPStream, ssrc: *mut c_uint); pub fn gst_rtsp_stream_get_ulpfec_enabled(stream: *mut GstRTSPStream) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_ulpfec_percentage(stream: *mut GstRTSPStream) -> c_uint; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_ulpfec_pt(stream: *mut GstRTSPStream) -> c_uint; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_handle_keymgmt( stream: *mut GstRTSPStream, keymgmt: *const c_char, @@ -2347,19 +2347,19 @@ extern "C" { stream: *mut GstRTSPStream, control: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_is_bind_mcast_address(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_is_blocking(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_is_client_side(stream: *mut GstRTSPStream) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_is_complete(stream: *mut GstRTSPStream) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_is_receiver(stream: *mut GstRTSPStream) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_is_sender(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_is_transport_supported( stream: *mut GstRTSPStream, @@ -2393,8 +2393,8 @@ extern "C" { stream: *mut GstRTSPStream, trans: *mut GstRTSPStreamTransport, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_aux_receiver( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2403,15 +2403,15 @@ extern "C" { stream: *mut GstRTSPStream, sessid: c_uint, ) -> *mut gst::GstElement; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_ulpfec_decoder( stream: *mut GstRTSPStream, rtpbin: *mut gst::GstElement, sessid: c_uint, ) -> *mut gst::GstElement; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_ulpfec_encoder( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2423,15 +2423,15 @@ extern "C" { n_ports: c_uint, ttl: c_uint, ) -> *mut GstRTSPAddress; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_seekable(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_set_address_pool( stream: *mut GstRTSPStream, pool: *mut GstRTSPAddressPool, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_bind_mcast_address( stream: *mut GstRTSPStream, bind_mcast_addr: gboolean, @@ -2441,8 +2441,8 @@ extern "C" { pub fn gst_rtsp_stream_set_client_side(stream: *mut GstRTSPStream, client_side: gboolean); pub fn gst_rtsp_stream_set_control(stream: *mut GstRTSPStream, control: *const c_char); pub fn gst_rtsp_stream_set_dscp_qos(stream: *mut GstRTSPStream, dscp_qos: c_int); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_max_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean; pub fn gst_rtsp_stream_set_mtu(stream: *mut GstRTSPStream, mtu: c_uint); pub fn gst_rtsp_stream_set_multicast_iface( @@ -2466,8 +2466,8 @@ extern "C" { stream: *mut GstRTSPStream, mode: GstRTSPPublishClockMode, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_set_rate_control(stream: *mut GstRTSPStream, enabled: gboolean); pub fn gst_rtsp_stream_set_retransmission_pt(stream: *mut GstRTSPStream, rtx_pt: c_uint); pub fn gst_rtsp_stream_set_retransmission_time( @@ -2475,11 +2475,11 @@ extern "C" { time: gst::GstClockTime, ); pub fn gst_rtsp_stream_set_seqnum_offset(stream: *mut GstRTSPStream, seqnum: u16); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_ulpfec_percentage(stream: *mut GstRTSPStream, percentage: c_uint); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_ulpfec_pt(stream: *mut GstRTSPStream, pt: c_uint); pub fn gst_rtsp_stream_transport_filter( stream: *mut GstRTSPStream, @@ -2492,8 +2492,8 @@ extern "C" { ssrc: c_uint, crypto: *mut gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_verify_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean; //========================================================================= @@ -2519,8 +2519,8 @@ extern "C" { ) -> *const gst_rtsp::GstRTSPUrl; pub fn gst_rtsp_stream_transport_is_timed_out(trans: *mut GstRTSPStreamTransport) -> gboolean; pub fn gst_rtsp_stream_transport_keep_alive(trans: *mut GstRTSPStreamTransport); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_message_sent(trans: *mut GstRTSPStreamTransport); pub fn gst_rtsp_stream_transport_recv_data( trans: *mut GstRTSPStreamTransport, @@ -2531,8 +2531,8 @@ extern "C" { trans: *mut GstRTSPStreamTransport, buffer: *mut gst::GstBuffer, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtcp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2541,8 +2541,8 @@ extern "C" { trans: *mut GstRTSPStreamTransport, buffer: *mut gst::GstBuffer, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2564,8 +2564,8 @@ extern "C" { user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_set_list_callbacks( trans: *mut GstRTSPStreamTransport, send_rtp_list: GstRTSPSendListFunc, @@ -2579,8 +2579,8 @@ extern "C" { user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_transport_set_message_sent_full( trans: *mut GstRTSPStreamTransport, message_sent: GstRTSPMessageSentFuncFull, @@ -2636,8 +2636,8 @@ extern "C" { info: *mut GstSDPInfo, stream: *mut GstRTSPStream, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_sdp_make_media( sdp: *mut gst_sdp::GstSDPMessage, info: *mut GstSDPInfo, diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index be507a2a9..debd0b411 100644 --- a/gstreamer-rtsp-server/sys/tests/abi.rs +++ b/gstreamer-rtsp-server/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_rtsp_server_sys::*; diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-rtsp-server/sys/tests/constant.c +++ b/gstreamer-rtsp-server/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp-server/sys/tests/layout.c b/gstreamer-rtsp-server/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-rtsp-server/sys/tests/layout.c +++ b/gstreamer-rtsp-server/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/src/auto/enums.rs b/gstreamer-rtsp/src/auto/enums.rs index 76b950dc2..30e04e831 100644 --- a/gstreamer-rtsp/src/auto/enums.rs +++ b/gstreamer-rtsp/src/auto/enums.rs @@ -6,7 +6,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -54,19 +53,19 @@ impl StaticType for RTSPAuthMethod { } impl<'a> FromValueOptional<'a> for RTSPAuthMethod { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPAuthMethod { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPAuthMethod { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -115,19 +114,19 @@ impl StaticType for RTSPFamily { } impl<'a> FromValueOptional<'a> for RTSPFamily { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPFamily { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPFamily { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -437,19 +436,19 @@ impl StaticType for RTSPHeaderField { } impl<'a> FromValueOptional<'a> for RTSPHeaderField { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPHeaderField { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPHeaderField { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -507,19 +506,19 @@ impl StaticType for RTSPMsgType { } impl<'a> FromValueOptional<'a> for RTSPMsgType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPMsgType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPMsgType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -574,19 +573,19 @@ impl StaticType for RTSPRangeUnit { } impl<'a> FromValueOptional<'a> for RTSPRangeUnit { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPRangeUnit { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPRangeUnit { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -680,19 +679,19 @@ impl StaticType for RTSPResult { } impl<'a> FromValueOptional<'a> for RTSPResult { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPResult { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPResult { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -750,19 +749,19 @@ impl StaticType for RTSPState { } impl<'a> FromValueOptional<'a> for RTSPState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -948,19 +947,19 @@ impl StaticType for RTSPStatusCode { } impl<'a> FromValueOptional<'a> for RTSPStatusCode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPStatusCode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPStatusCode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1015,19 +1014,19 @@ impl StaticType for RTSPTimeType { } impl<'a> FromValueOptional<'a> for RTSPTimeType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPTimeType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for RTSPTimeType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-rtsp/src/auto/flags.rs b/gstreamer-rtsp/src/auto/flags.rs index 37ebc120c..8630f84a3 100644 --- a/gstreamer-rtsp/src/auto/flags.rs +++ b/gstreamer-rtsp/src/auto/flags.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -42,19 +41,19 @@ impl StaticType for RTSPEvent { } impl<'a> FromValueOptional<'a> for RTSPEvent { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPEvent { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for RTSPEvent { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -93,19 +92,19 @@ impl StaticType for RTSPLowerTrans { } impl<'a> FromValueOptional<'a> for RTSPLowerTrans { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPLowerTrans { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for RTSPLowerTrans { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -152,19 +151,19 @@ impl StaticType for RTSPMethod { } impl<'a> FromValueOptional<'a> for RTSPMethod { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPMethod { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for RTSPMethod { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -202,19 +201,19 @@ impl StaticType for RTSPProfile { } impl<'a> FromValueOptional<'a> for RTSPProfile { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPProfile { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for RTSPProfile { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -250,19 +249,19 @@ impl StaticType for RTSPTransMode { } impl<'a> FromValueOptional<'a> for RTSPTransMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for RTSPTransMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for RTSPTransMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-rtsp/src/auto/mod.rs b/gstreamer-rtsp/src/auto/mod.rs index 8a3576e07..1cd2a46ae 100644 --- a/gstreamer-rtsp/src/auto/mod.rs +++ b/gstreamer-rtsp/src/auto/mod.rs @@ -2,11 +2,11 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] mod rtsp_auth_param; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::rtsp_auth_param::RTSPAuthParam; mod rtsp_url; diff --git a/gstreamer-rtsp/src/auto/rtsp_auth_param.rs b/gstreamer-rtsp/src/auto/rtsp_auth_param.rs index 669756dce..a057b86a4 100644 --- a/gstreamer-rtsp/src/auto/rtsp_auth_param.rs +++ b/gstreamer-rtsp/src/auto/rtsp_auth_param.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use glib::translate::*; glib::glib_wrapper! { diff --git a/gstreamer-rtsp/src/auto/rtsp_url.rs b/gstreamer-rtsp/src/auto/rtsp_url.rs index 15cc26a7d..88d529ec5 100644 --- a/gstreamer-rtsp/src/auto/rtsp_url.rs +++ b/gstreamer-rtsp/src/auto/rtsp_url.rs @@ -30,8 +30,8 @@ impl RTSPUrl { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_request_uri_with_control(&self, control_path: &str) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri_with_control( diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-rtsp/sys/Cargo.toml b/gstreamer-rtsp/sys/Cargo.toml index 66484e13e..61e664629 100644 --- a/gstreamer-rtsp/sys/Cargo.toml +++ b/gstreamer-rtsp/sys/Cargo.toml @@ -34,6 +34,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_rtsp_sys" @@ -53,7 +54,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_rtsp_1_0] name = "gstreamer-rtsp-1.0" version = "1.8" diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 1a54c1bda..8e7f1593e 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -791,21 +791,21 @@ extern "C" { //========================================================================= // GstRTSPAuthCredential //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_credential_get_type() -> GType; //========================================================================= // GstRTSPAuthParam //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_param_get_type() -> GType; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_param_copy(param: *mut GstRTSPAuthParam) -> *mut GstRTSPAuthParam; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_param_free(param: *mut GstRTSPAuthParam); //========================================================================= @@ -817,8 +817,8 @@ extern "C" { conn: *mut GstRTSPConnection, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -828,8 +828,8 @@ extern "C" { timeout: *mut glib::GTimeVal, response: *mut GstRTSPMessage, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_with_response_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -871,8 +871,8 @@ extern "C" { conn: *mut GstRTSPConnection, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_next_timeout_usec(conn: *mut GstRTSPConnection) -> i64; pub fn gst_rtsp_connection_poll( conn: *mut GstRTSPConnection, @@ -880,8 +880,8 @@ extern "C" { revents: *mut GstRTSPEvent, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_poll_usec( conn: *mut GstRTSPConnection, events: GstRTSPEvent, @@ -894,8 +894,8 @@ extern "C" { size: c_uint, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_read_usec( conn: *mut GstRTSPConnection, data: *mut u8, @@ -907,8 +907,8 @@ extern "C" { message: *mut GstRTSPMessage, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_receive_usec( conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, @@ -920,31 +920,31 @@ extern "C" { message: *mut GstRTSPMessage, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_connection_send_messages( conn: *mut GstRTSPConnection, messages: *mut GstRTSPMessage, n_messages: c_uint, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_send_messages_usec( conn: *mut GstRTSPConnection, messages: *mut GstRTSPMessage, n_messages: c_uint, timeout: i64, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_send_usec( conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, timeout: i64, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_connection_set_accept_certificate_func( conn: *mut GstRTSPConnection, func: GstRTSPConnectionAcceptCertificateFunc, @@ -962,8 +962,8 @@ extern "C" { param: *const c_char, value: *const c_char, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_set_content_length_limit( conn: *mut GstRTSPConnection, limit: c_uint, @@ -1002,8 +1002,8 @@ extern "C" { size: c_uint, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_write_usec( conn: *mut GstRTSPConnection, data: *const u8, @@ -1030,8 +1030,8 @@ extern "C" { //========================================================================= // GstRTSPMessage //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_msg_get_type() -> GType; pub fn gst_rtsp_message_add_header( msg: *mut GstRTSPMessage, @@ -1047,8 +1047,8 @@ extern "C" { msg: *const GstRTSPMessage, str: *mut glib::GString, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_message_copy( msg: *const GstRTSPMessage, copy: *mut *mut GstRTSPMessage, @@ -1060,8 +1060,8 @@ extern "C" { data: *mut *mut u8, size: *mut c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_get_body_buffer( msg: *const GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1078,11 +1078,11 @@ extern "C" { value: *mut *mut c_char, index: c_int, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_message_get_type(msg: *mut GstRTSPMessage) -> GstRTSPMsgType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_has_body_buffer(msg: *const GstRTSPMessage) -> gboolean; pub fn gst_rtsp_message_init(msg: *mut GstRTSPMessage) -> GstRTSPResult; pub fn gst_rtsp_message_init_data(msg: *mut GstRTSPMessage, channel: u8) -> GstRTSPResult; @@ -1097,8 +1097,8 @@ extern "C" { reason: *const c_char, request: *const GstRTSPMessage, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_message_parse_auth_credentials( msg: *mut GstRTSPMessage, field: GstRTSPHeaderField, @@ -1132,8 +1132,8 @@ extern "C" { data: *const u8, size: c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_set_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1143,8 +1143,8 @@ extern "C" { data: *mut *mut u8, size: *mut c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_steal_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1154,8 +1154,8 @@ extern "C" { data: *mut u8, size: c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_take_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1225,8 +1225,8 @@ extern "C" { pub fn gst_rtsp_url_free(url: *mut GstRTSPUrl); pub fn gst_rtsp_url_get_port(url: *const GstRTSPUrl, port: *mut u16) -> GstRTSPResult; pub fn gst_rtsp_url_get_request_uri(url: *const GstRTSPUrl) -> *mut c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_url_get_request_uri_with_control( url: *const GstRTSPUrl, control_path: *const c_char, @@ -1252,8 +1252,8 @@ extern "C" { message: *mut GstRTSPMessage, id: *mut c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_watch_send_messages( watch: *mut GstRTSPWatch, messages: *mut GstRTSPMessage, @@ -1271,8 +1271,8 @@ extern "C" { watch: *mut GstRTSPWatch, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_watch_wait_backlog_usec( watch: *mut GstRTSPWatch, timeout: i64, @@ -1342,13 +1342,13 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_credentials_free(credentials: *mut *mut GstRTSPAuthCredential); pub fn gst_rtsp_find_header_field(header: *const c_char) -> GstRTSPHeaderField; pub fn gst_rtsp_find_method(method: *const c_char) -> GstRTSPMethod; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_generate_digest_auth_response( algorithm: *const c_char, method: *const c_char, @@ -1358,8 +1358,8 @@ extern "C" { uri: *const c_char, nonce: *const c_char, ) -> *mut c_char; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_generate_digest_auth_response_from_md5( algorithm: *const c_char, method: *const c_char, diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index cedbb5bb0..c4b27a504 100644 --- a/gstreamer-rtsp/sys/tests/abi.rs +++ b/gstreamer-rtsp/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_rtsp_sys::*; diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-rtsp/sys/tests/constant.c +++ b/gstreamer-rtsp/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-rtsp/sys/tests/layout.c +++ b/gstreamer-rtsp/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-sdp/sys/Cargo.toml b/gstreamer-sdp/sys/Cargo.toml index ff9e63b94..556fae8e5 100644 --- a/gstreamer-sdp/sys/Cargo.toml +++ b/gstreamer-sdp/sys/Cargo.toml @@ -25,6 +25,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_sdp_sys" @@ -44,7 +45,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_sdp_1_0] name = "gstreamer-sdp-1.0" version = "1.8" diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index 8566dd1d9..916901362 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gstreamer_sys as gst; @@ -636,8 +636,8 @@ extern "C" { info: *mut GstMIKEYEncryptInfo, error: *mut *mut glib::GError, ) -> *mut glib::GBytes; - #[cfg(any(feature = "v1_8_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_8_1")))] + #[cfg(any(feature = "v1_8_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_8_1")))] pub fn gst_mikey_message_to_caps( msg: *const GstMIKEYMessage, caps: *mut gst::GstCaps, @@ -849,8 +849,8 @@ extern "C" { idx: c_int, format: *const c_char, ) -> GstSDPResult; - #[cfg(any(feature = "v1_8_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_8_1")))] + #[cfg(any(feature = "v1_8_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_8_1")))] pub fn gst_sdp_media_parse_keymgmt( media: *const GstSDPMedia, mikey: *mut *mut GstMIKEYMessage, @@ -1010,8 +1010,8 @@ extern "C" { zone: *mut GstSDPZone, ) -> GstSDPResult; pub fn gst_sdp_message_medias_len(msg: *const GstSDPMessage) -> c_uint; - #[cfg(any(feature = "v1_8_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_8_1")))] + #[cfg(any(feature = "v1_8_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_8_1")))] pub fn gst_sdp_message_parse_keymgmt( msg: *const GstSDPMessage, mikey: *mut *mut GstMIKEYMessage, @@ -1093,8 +1093,8 @@ extern "C" { pub fn gst_sdp_message_zones_len(msg: *const GstSDPMessage) -> c_uint; pub fn gst_sdp_message_as_uri(scheme: *const c_char, msg: *const GstSDPMessage) -> *mut c_char; pub fn gst_sdp_message_new(msg: *mut *mut GstSDPMessage) -> GstSDPResult; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sdp_message_new_from_text( text: *const c_char, msg: *mut *mut GstSDPMessage, diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index 7cf1a66c1..be753deb2 100644 --- a/gstreamer-sdp/sys/tests/abi.rs +++ b/gstreamer-sdp/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_sdp_sys::*; diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-sdp/sys/tests/constant.c +++ b/gstreamer-sdp/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-sdp/sys/tests/layout.c +++ b/gstreamer-sdp/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/Cargo.toml b/gstreamer-tag/sys/Cargo.toml index 067f2919d..4561c54d4 100644 --- a/gstreamer-tag/sys/Cargo.toml +++ b/gstreamer-tag/sys/Cargo.toml @@ -27,6 +27,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_tag_sys" @@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_tag_1_0] name = "gstreamer-tag-1.0" version = "1.8" diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 2c72befde..b889997dd 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index 3487297e8..9f6be562d 100644 --- a/gstreamer-tag/sys/tests/abi.rs +++ b/gstreamer-tag/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_tag_sys::*; diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-tag/sys/tests/constant.c +++ b/gstreamer-tag/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-tag/sys/tests/layout.c +++ b/gstreamer-tag/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index 26719d09f..5b194fcc2 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -6,12 +6,11 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoAFDSpec { @@ -22,8 +21,8 @@ pub enum VideoAFDSpec { __Unknown(i32), } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for VideoAFDSpec { type GlibType = ffi::GstVideoAFDSpec; @@ -38,8 +37,8 @@ impl ToGlib for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDSpec { fn from_glib(value: ffi::GstVideoAFDSpec) -> Self { @@ -53,40 +52,40 @@ impl FromGlib for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDSpec { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_afd_spec_get_type()) } } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoAFDSpec { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoAFDSpec { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for VideoAFDSpec { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoAFDValue { @@ -105,8 +104,8 @@ pub enum VideoAFDValue { __Unknown(i32), } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for VideoAFDValue { type GlibType = ffi::GstVideoAFDValue; @@ -129,8 +128,8 @@ impl ToGlib for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDValue { fn from_glib(value: ffi::GstVideoAFDValue) -> Self { @@ -152,34 +151,34 @@ impl FromGlib for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDValue { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_afd_value_get_type()) } } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoAFDValue { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoAFDValue { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for VideoAFDValue { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -228,25 +227,25 @@ impl StaticType for VideoAlphaMode { } impl<'a> FromValueOptional<'a> for VideoAlphaMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoAlphaMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoAlphaMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoCaptionType { @@ -259,8 +258,8 @@ pub enum VideoCaptionType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for VideoCaptionType { type GlibType = ffi::GstVideoCaptionType; @@ -277,8 +276,8 @@ impl ToGlib for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for VideoCaptionType { fn from_glib(value: ffi::GstVideoCaptionType) -> Self { @@ -294,34 +293,34 @@ impl FromGlib for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for VideoCaptionType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_caption_type_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for VideoCaptionType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for VideoCaptionType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for VideoCaptionType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -373,19 +372,19 @@ impl StaticType for VideoChromaMode { } impl<'a> FromValueOptional<'a> for VideoChromaMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoChromaMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoChromaMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -446,19 +445,19 @@ impl StaticType for VideoColorMatrix { } impl<'a> FromValueOptional<'a> for VideoColorMatrix { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoColorMatrix { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoColorMatrix { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -475,17 +474,17 @@ pub enum VideoColorPrimaries { Film, Bt2020, Adobergb, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Smptest428, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Smpterp431, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Smpteeg432, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Ebu3213, #[doc(hidden)] __Unknown(i32), @@ -506,13 +505,13 @@ impl ToGlib for VideoColorPrimaries { VideoColorPrimaries::Film => ffi::GST_VIDEO_COLOR_PRIMARIES_FILM, VideoColorPrimaries::Bt2020 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020, VideoColorPrimaries::Adobergb => ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoColorPrimaries::Smptest428 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEST428, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoColorPrimaries::Smpterp431 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTERP431, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoColorPrimaries::Smpteeg432 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoColorPrimaries::Ebu3213 => ffi::GST_VIDEO_COLOR_PRIMARIES_EBU3213, VideoColorPrimaries::__Unknown(value) => value, } @@ -533,13 +532,13 @@ impl FromGlib for VideoColorPrimaries { 6 => VideoColorPrimaries::Film, 7 => VideoColorPrimaries::Bt2020, 8 => VideoColorPrimaries::Adobergb, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 9 => VideoColorPrimaries::Smptest428, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 10 => VideoColorPrimaries::Smpterp431, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 11 => VideoColorPrimaries::Smpteeg432, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 12 => VideoColorPrimaries::Ebu3213, value => VideoColorPrimaries::__Unknown(value), } @@ -553,19 +552,19 @@ impl StaticType for VideoColorPrimaries { } impl<'a> FromValueOptional<'a> for VideoColorPrimaries { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoColorPrimaries { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoColorPrimaries { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -620,25 +619,25 @@ impl StaticType for VideoDitherMethod { } impl<'a> FromValueOptional<'a> for VideoDitherMethod { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoDitherMethod { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoDitherMethod { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoFieldOrder { @@ -649,8 +648,8 @@ pub enum VideoFieldOrder { __Unknown(i32), } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl ToGlib for VideoFieldOrder { type GlibType = ffi::GstVideoFieldOrder; @@ -665,8 +664,8 @@ impl ToGlib for VideoFieldOrder { } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for VideoFieldOrder { fn from_glib(value: ffi::GstVideoFieldOrder) -> Self { @@ -680,34 +679,34 @@ impl FromGlib for VideoFieldOrder { } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl StaticType for VideoFieldOrder { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_field_order_get_type()) } } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValueOptional<'a> for VideoFieldOrder { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValue<'a> for VideoFieldOrder { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl SetValue for VideoFieldOrder { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -776,119 +775,119 @@ pub enum VideoFormat { A44410be, A44410le, Nv61, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] P01010be, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] P01010le, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] Iyu2, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Vyuy, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra10be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra10le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbr12be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbr12le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra12be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra12le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42012be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42012le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42212be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42212le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Y44412be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Y44412le, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] Gray10Le32, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] Nv1210le32, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] Nv1610le32, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Nv1210le40, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Y210, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Y410, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Vuya, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Bgr10a2Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Rgb10a2Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y44416be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y44416le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P016Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P016Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P012Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P012Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y212Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y212Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y412Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y412Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Nv124l4, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Nv1232l32, #[doc(hidden)] __Unknown(i32), @@ -961,81 +960,81 @@ impl ToGlib for VideoFormat { VideoFormat::A44410be => ffi::GST_VIDEO_FORMAT_A444_10BE, VideoFormat::A44410le => ffi::GST_VIDEO_FORMAT_A444_10LE, VideoFormat::Nv61 => ffi::GST_VIDEO_FORMAT_NV61, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] VideoFormat::P01010be => ffi::GST_VIDEO_FORMAT_P010_10BE, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] VideoFormat::P01010le => ffi::GST_VIDEO_FORMAT_P010_10LE, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] VideoFormat::Iyu2 => ffi::GST_VIDEO_FORMAT_IYU2, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Vyuy => ffi::GST_VIDEO_FORMAT_VYUY, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Gbra => ffi::GST_VIDEO_FORMAT_GBRA, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Gbra10be => ffi::GST_VIDEO_FORMAT_GBRA_10BE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Gbra10le => ffi::GST_VIDEO_FORMAT_GBRA_10LE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Gbr12be => ffi::GST_VIDEO_FORMAT_GBR_12BE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Gbr12le => ffi::GST_VIDEO_FORMAT_GBR_12LE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Gbra12be => ffi::GST_VIDEO_FORMAT_GBRA_12BE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Gbra12le => ffi::GST_VIDEO_FORMAT_GBRA_12LE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::I42012be => ffi::GST_VIDEO_FORMAT_I420_12BE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::I42012le => ffi::GST_VIDEO_FORMAT_I420_12LE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::I42212be => ffi::GST_VIDEO_FORMAT_I422_12BE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::I42212le => ffi::GST_VIDEO_FORMAT_I422_12LE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Y44412be => ffi::GST_VIDEO_FORMAT_Y444_12BE, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] VideoFormat::Y44412le => ffi::GST_VIDEO_FORMAT_Y444_12LE, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_14", feature = "dox"))] VideoFormat::Gray10Le32 => ffi::GST_VIDEO_FORMAT_GRAY10_LE32, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_14", feature = "dox"))] VideoFormat::Nv1210le32 => ffi::GST_VIDEO_FORMAT_NV12_10LE32, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_14", feature = "dox"))] VideoFormat::Nv1610le32 => ffi::GST_VIDEO_FORMAT_NV16_10LE32, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoFormat::Nv1210le40 => ffi::GST_VIDEO_FORMAT_NV12_10LE40, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoFormat::Y210 => ffi::GST_VIDEO_FORMAT_Y210, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoFormat::Y410 => ffi::GST_VIDEO_FORMAT_Y410, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoFormat::Vuya => ffi::GST_VIDEO_FORMAT_VUYA, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoFormat::Bgr10a2Le => ffi::GST_VIDEO_FORMAT_BGR10A2_LE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Rgb10a2Le => ffi::GST_VIDEO_FORMAT_RGB10A2_LE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Y44416be => ffi::GST_VIDEO_FORMAT_Y444_16BE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Y44416le => ffi::GST_VIDEO_FORMAT_Y444_16LE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::P016Be => ffi::GST_VIDEO_FORMAT_P016_BE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::P016Le => ffi::GST_VIDEO_FORMAT_P016_LE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::P012Be => ffi::GST_VIDEO_FORMAT_P012_BE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::P012Le => ffi::GST_VIDEO_FORMAT_P012_LE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Y212Be => ffi::GST_VIDEO_FORMAT_Y212_BE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Y212Le => ffi::GST_VIDEO_FORMAT_Y212_LE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Y412Be => ffi::GST_VIDEO_FORMAT_Y412_BE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Y412Le => ffi::GST_VIDEO_FORMAT_Y412_LE, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Nv124l4 => ffi::GST_VIDEO_FORMAT_NV12_4L4, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoFormat::Nv1232l32 => ffi::GST_VIDEO_FORMAT_NV12_32L32, VideoFormat::__Unknown(value) => value, } @@ -1108,81 +1107,81 @@ impl FromGlib for VideoFormat { 58 => VideoFormat::A44410be, 59 => VideoFormat::A44410le, 60 => VideoFormat::Nv61, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] 61 => VideoFormat::P01010be, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] 62 => VideoFormat::P01010le, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] 63 => VideoFormat::Iyu2, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 64 => VideoFormat::Vyuy, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 65 => VideoFormat::Gbra, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 66 => VideoFormat::Gbra10be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 67 => VideoFormat::Gbra10le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 68 => VideoFormat::Gbr12be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 69 => VideoFormat::Gbr12le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 70 => VideoFormat::Gbra12be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 71 => VideoFormat::Gbra12le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 72 => VideoFormat::I42012be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 73 => VideoFormat::I42012le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 74 => VideoFormat::I42212be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 75 => VideoFormat::I42212le, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 76 => VideoFormat::Y44412be, - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_12", feature = "dox"))] 77 => VideoFormat::Y44412le, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_14", feature = "dox"))] 78 => VideoFormat::Gray10Le32, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_14", feature = "dox"))] 79 => VideoFormat::Nv1210le32, - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_14", feature = "dox"))] 80 => VideoFormat::Nv1610le32, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 81 => VideoFormat::Nv1210le40, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 82 => VideoFormat::Y210, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 83 => VideoFormat::Y410, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 84 => VideoFormat::Vuya, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 85 => VideoFormat::Bgr10a2Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 86 => VideoFormat::Rgb10a2Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 87 => VideoFormat::Y44416be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 88 => VideoFormat::Y44416le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 89 => VideoFormat::P016Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 90 => VideoFormat::P016Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 91 => VideoFormat::P012Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 92 => VideoFormat::P012Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 93 => VideoFormat::Y212Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 94 => VideoFormat::Y212Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 95 => VideoFormat::Y412Be, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 96 => VideoFormat::Y412Le, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 97 => VideoFormat::Nv124l4, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 98 => VideoFormat::Nv1232l32, value => VideoFormat::__Unknown(value), } @@ -1196,19 +1195,19 @@ impl StaticType for VideoFormat { } impl<'a> FromValueOptional<'a> for VideoFormat { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoFormat { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoFormat { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1254,19 +1253,19 @@ impl StaticType for VideoGammaMode { } impl<'a> FromValueOptional<'a> for VideoGammaMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoGammaMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoGammaMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1278,8 +1277,8 @@ pub enum VideoInterlaceMode { Interleaved, Mixed, Fields, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Alternate, #[doc(hidden)] __Unknown(i32), @@ -1295,7 +1294,7 @@ impl ToGlib for VideoInterlaceMode { VideoInterlaceMode::Interleaved => ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED, VideoInterlaceMode::Mixed => ffi::GST_VIDEO_INTERLACE_MODE_MIXED, VideoInterlaceMode::Fields => ffi::GST_VIDEO_INTERLACE_MODE_FIELDS, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] VideoInterlaceMode::Alternate => ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE, VideoInterlaceMode::__Unknown(value) => value, } @@ -1311,7 +1310,7 @@ impl FromGlib for VideoInterlaceMode { 1 => VideoInterlaceMode::Interleaved, 2 => VideoInterlaceMode::Mixed, 3 => VideoInterlaceMode::Fields, - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_16", feature = "dox"))] 4 => VideoInterlaceMode::Alternate, value => VideoInterlaceMode::__Unknown(value), } @@ -1325,19 +1324,19 @@ impl StaticType for VideoInterlaceMode { } impl<'a> FromValueOptional<'a> for VideoInterlaceMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoInterlaceMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoInterlaceMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1389,19 +1388,19 @@ impl StaticType for VideoMatrixMode { } impl<'a> FromValueOptional<'a> for VideoMatrixMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoMatrixMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoMatrixMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1483,19 +1482,19 @@ impl StaticType for VideoMultiviewFramePacking { } impl<'a> FromValueOptional<'a> for VideoMultiviewFramePacking { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoMultiviewFramePacking { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoMultiviewFramePacking { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1580,19 +1579,19 @@ impl StaticType for VideoMultiviewMode { } impl<'a> FromValueOptional<'a> for VideoMultiviewMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoMultiviewMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoMultiviewMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1641,19 +1640,19 @@ impl StaticType for VideoPrimariesMode { } impl<'a> FromValueOptional<'a> for VideoPrimariesMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoPrimariesMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoPrimariesMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1708,19 +1707,19 @@ impl StaticType for VideoResamplerMethod { } impl<'a> FromValueOptional<'a> for VideoResamplerMethod { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoResamplerMethod { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoResamplerMethod { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1730,8 +1729,8 @@ impl SetValue for VideoResamplerMethod { pub enum VideoTileMode { Unknown, Zflipz2x2, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Linear, #[doc(hidden)] __Unknown(i32), @@ -1745,7 +1744,7 @@ impl ToGlib for VideoTileMode { match *self { VideoTileMode::Unknown => ffi::GST_VIDEO_TILE_MODE_UNKNOWN, VideoTileMode::Zflipz2x2 => ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoTileMode::Linear => ffi::GST_VIDEO_TILE_MODE_LINEAR, VideoTileMode::__Unknown(value) => value, } @@ -1759,7 +1758,7 @@ impl FromGlib for VideoTileMode { match value { 0 => VideoTileMode::Unknown, 65536 => VideoTileMode::Zflipz2x2, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 131072 => VideoTileMode::Linear, value => VideoTileMode::__Unknown(value), } @@ -1773,19 +1772,19 @@ impl StaticType for VideoTileMode { } impl<'a> FromValueOptional<'a> for VideoTileMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoTileMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoTileMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1806,17 +1805,17 @@ pub enum VideoTransferFunction { Log316, Bt202012, Adobergb, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Bt202010, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Smpte2084, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] AribStdB67, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Bt601, #[doc(hidden)] __Unknown(i32), @@ -1841,13 +1840,13 @@ impl ToGlib for VideoTransferFunction { VideoTransferFunction::Log316 => ffi::GST_VIDEO_TRANSFER_LOG316, VideoTransferFunction::Bt202012 => ffi::GST_VIDEO_TRANSFER_BT2020_12, VideoTransferFunction::Adobergb => ffi::GST_VIDEO_TRANSFER_ADOBERGB, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoTransferFunction::Bt202010 => ffi::GST_VIDEO_TRANSFER_BT2020_10, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoTransferFunction::Smpte2084 => ffi::GST_VIDEO_TRANSFER_SMPTE2084, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoTransferFunction::AribStdB67 => ffi::GST_VIDEO_TRANSFER_ARIB_STD_B67, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] VideoTransferFunction::Bt601 => ffi::GST_VIDEO_TRANSFER_BT601, VideoTransferFunction::__Unknown(value) => value, } @@ -1872,13 +1871,13 @@ impl FromGlib for VideoTransferFunction { 10 => VideoTransferFunction::Log316, 11 => VideoTransferFunction::Bt202012, 12 => VideoTransferFunction::Adobergb, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 13 => VideoTransferFunction::Bt202010, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 14 => VideoTransferFunction::Smpte2084, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 15 => VideoTransferFunction::AribStdB67, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 16 => VideoTransferFunction::Bt601, value => VideoTransferFunction::__Unknown(value), } @@ -1892,19 +1891,19 @@ impl StaticType for VideoTransferFunction { } impl<'a> FromValueOptional<'a> for VideoTransferFunction { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoTransferFunction { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for VideoTransferFunction { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 73b867081..0f9825ff2 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; @@ -19,14 +18,14 @@ bitflags! { const ONEFIELD = 8388608; const MULTIPLE_VIEW = 16777216; const FIRST_IN_BUNDLE = 33554432; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] const TOP_FIELD = 10485760; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] const BOTTOM_FIELD = 8388608; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const MARKER = 512; } } @@ -55,19 +54,19 @@ impl StaticType for VideoBufferFlags { } impl<'a> FromValueOptional<'a> for VideoBufferFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoBufferFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for VideoBufferFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -109,19 +108,19 @@ impl StaticType for VideoChromaSite { } impl<'a> FromValueOptional<'a> for VideoChromaSite { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoChromaSite { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for VideoChromaSite { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -183,19 +182,19 @@ impl StaticType for VideoFlags { } impl<'a> FromValueOptional<'a> for VideoFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for VideoFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -238,19 +237,19 @@ impl StaticType for VideoFormatFlags { } impl<'a> FromValueOptional<'a> for VideoFormatFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoFormatFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for VideoFormatFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -292,19 +291,19 @@ impl StaticType for VideoFrameFlags { } impl<'a> FromValueOptional<'a> for VideoFrameFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoFrameFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for VideoFrameFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -345,19 +344,19 @@ impl StaticType for VideoMultiviewFlags { } impl<'a> FromValueOptional<'a> for VideoMultiviewFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoMultiviewFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for VideoMultiviewFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -386,34 +385,34 @@ impl FromGlib for VideoOverlayFormatFlags { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for VideoOverlayFormatFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_overlay_format_flags_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for VideoOverlayFormatFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for VideoOverlayFormatFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for VideoOverlayFormatFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -449,25 +448,25 @@ impl StaticType for VideoPackFlags { } impl<'a> FromValueOptional<'a> for VideoPackFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for VideoPackFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for VideoPackFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] bitflags! { pub struct VideoTimeCodeFlags: u32 { const DROP_FRAME = 1; @@ -475,8 +474,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for VideoTimeCodeFlags { type GlibType = ffi::GstVideoTimeCodeFlags; @@ -486,8 +485,8 @@ impl ToGlib for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for VideoTimeCodeFlags { fn from_glib(value: ffi::GstVideoTimeCodeFlags) -> VideoTimeCodeFlags { @@ -496,34 +495,34 @@ impl FromGlib for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for VideoTimeCodeFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_time_code_flags_get_type()) } } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoTimeCodeFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoTimeCodeFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for VideoTimeCodeFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-video/src/auto/mod.rs b/gstreamer-video/src/auto/mod.rs index 188f056b4..1d803e2fc 100644 --- a/gstreamer-video/src/auto/mod.rs +++ b/gstreamer-video/src/auto/mod.rs @@ -25,22 +25,22 @@ pub use self::video_sink::VideoSinkExt; pub use self::video_sink::{VideoSink, NONE_VIDEO_SINK}; mod enums; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::enums::VideoAFDSpec; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::enums::VideoAFDValue; pub use self::enums::VideoAlphaMode; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::VideoCaptionType; pub use self::enums::VideoChromaMode; pub use self::enums::VideoColorMatrix; pub use self::enums::VideoColorPrimaries; pub use self::enums::VideoDitherMethod; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::enums::VideoFieldOrder; pub use self::enums::VideoFormat; pub use self::enums::VideoGammaMode; @@ -63,8 +63,8 @@ pub use self::flags::VideoFrameFlags; pub use self::flags::VideoMultiviewFlags; pub use self::flags::VideoOverlayFormatFlags; pub use self::flags::VideoPackFlags; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::flags::VideoTimeCodeFlags; #[doc(hidden)] diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index e0898cab1..7f7fbf811 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -3,28 +3,25 @@ // DO NOT EDIT use crate::VideoCodecFrame; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::object::Cast; use glib::object::IsA; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::connect_raw; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::SignalHandlerId; use glib::translate::*; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::StaticType; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] -use glib::Value; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem::transmute; glib::glib_wrapper! { @@ -75,23 +72,23 @@ pub trait VideoDecoderExt: 'static { fn set_use_default_pad_acceptcaps(&self, use_: bool); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_qos(&self) -> bool; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_qos(&self, qos: bool); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_qos_notify( &self, f: F, @@ -225,11 +222,11 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_qos(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, @@ -242,20 +239,20 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_qos(&self, qos: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, - Value::from(&qos).to_glib_none().0, + glib::Value::from(&qos).to_glib_none().0, ); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, @@ -283,8 +280,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_qos_notify( &self, f: F, diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index 7788e887c..c16f8007e 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] use crate::VideoCodecFrame; use glib::object::Cast; use glib::object::IsA; @@ -11,7 +11,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -31,16 +30,16 @@ pub const NONE_VIDEO_ENCODER: Option<&VideoEncoder> = None; pub trait VideoEncoderExt: 'static { fn allocate_output_buffer(&self, size: usize) -> Result; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_max_encode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_min_force_key_unit_interval(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_qos_enabled(&self) -> bool; fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -49,22 +48,22 @@ pub trait VideoEncoderExt: 'static { fn set_headers(&self, headers: &[&gst::Buffer]); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_min_force_key_unit_interval(&self, interval: gst::ClockTime); fn set_min_pts(&self, min_pts: gst::ClockTime); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_qos_enabled(&self, enabled: bool); fn get_property_qos(&self) -> bool; fn set_property_qos(&self, qos: bool); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_min_force_key_unit_interval_notify( &self, f: F, @@ -87,8 +86,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_max_encode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff { unsafe { ffi::gst_video_encoder_get_max_encode_time( @@ -98,8 +97,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_min_force_key_unit_interval(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_video_encoder_get_min_force_key_unit_interval( @@ -108,8 +107,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_qos_enabled(&self) -> bool { unsafe { from_glib(ffi::gst_video_encoder_is_qos_enabled( @@ -147,8 +146,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_min_force_key_unit_interval(&self, interval: gst::ClockTime) { unsafe { ffi::gst_video_encoder_set_min_force_key_unit_interval( @@ -164,8 +163,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_qos_enabled(&self, enabled: bool) { unsafe { ffi::gst_video_encoder_set_qos_enabled( @@ -177,7 +176,7 @@ impl> VideoEncoderExt for O { fn get_property_qos(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, @@ -195,13 +194,13 @@ impl> VideoEncoderExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"qos\0".as_ptr() as *const _, - Value::from(&qos).to_glib_none().0, + glib::Value::from(&qos).to_glib_none().0, ); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_min_force_key_unit_interval_notify( &self, f: F, diff --git a/gstreamer-video/src/auto/video_overlay.rs b/gstreamer-video/src/auto/video_overlay.rs index 6041b67e3..e3e263f82 100644 --- a/gstreamer-video/src/auto/video_overlay.rs +++ b/gstreamer-video/src/auto/video_overlay.rs @@ -14,14 +14,14 @@ glib::glib_wrapper! { } impl VideoOverlay { - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //pub fn install_properties(oclass: /*Ignored*/&mut glib::ObjectClass, last_prop_id: i32) { // unsafe { TODO: call ffi:gst_video_overlay_install_properties() } //} - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //pub fn set_property>(object: &P, last_prop_id: i32, property_id: u32, value: /*Ignored*/&glib::Value) -> bool { // unsafe { TODO: call ffi:gst_video_overlay_set_property() } //} diff --git a/gstreamer-video/src/auto/video_sink.rs b/gstreamer-video/src/auto/video_sink.rs index b6b42308a..b3642858b 100644 --- a/gstreamer-video/src/auto/video_sink.rs +++ b/gstreamer-video/src/auto/video_sink.rs @@ -8,7 +8,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -39,7 +38,7 @@ pub trait VideoSinkExt: 'static { impl> VideoSinkExt for O { fn get_property_show_preroll_frame(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"show-preroll-frame\0".as_ptr() as *const _, @@ -57,7 +56,7 @@ impl> VideoSinkExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"show-preroll-frame\0".as_ptr() as *const _, - Value::from(&show_preroll_frame).to_glib_none().0, + glib::Value::from(&show_preroll_frame).to_glib_none().0, ); } } diff --git a/gstreamer-video/sys/Cargo.toml b/gstreamer-video/sys/Cargo.toml index a51eea76f..91ec4ca14 100644 --- a/gstreamer-video/sys/Cargo.toml +++ b/gstreamer-video/sys/Cargo.toml @@ -32,6 +32,7 @@ v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] +dox = [] [lib] name = "gstreamer_video_sys" @@ -51,7 +52,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_video_1_0] name = "gstreamer-video-1.0" version = "1.8" diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index 46d372702..f2fff5d59 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -2273,15 +2273,15 @@ extern "C" { //========================================================================= // GstVideoAFDSpec //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_spec_get_type() -> GType; //========================================================================= // GstVideoAFDValue //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_value_get_type() -> GType; //========================================================================= @@ -2292,28 +2292,28 @@ extern "C" { //========================================================================= // GstVideoAncillaryDID //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_ancillary_did_get_type() -> GType; //========================================================================= // GstVideoAncillaryDID16 //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_ancillary_di_d16_get_type() -> GType; //========================================================================= // GstVideoCaptionType //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_from_caps(caps: *const gst::GstCaps) -> GstVideoCaptionType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_to_caps(type_: GstVideoCaptionType) -> *mut gst::GstCaps; //========================================================================= @@ -2330,30 +2330,30 @@ extern "C" { // GstVideoColorMatrix //========================================================================= pub fn gst_video_color_matrix_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_matrix_from_iso(value: c_uint) -> GstVideoColorMatrix; pub fn gst_video_color_matrix_get_Kr_Kb( matrix: GstVideoColorMatrix, Kr: *mut c_double, Kb: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_matrix_to_iso(matrix: GstVideoColorMatrix) -> c_uint; //========================================================================= // GstVideoColorPrimaries //========================================================================= pub fn gst_video_color_primaries_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_from_iso(value: c_uint) -> GstVideoColorPrimaries; pub fn gst_video_color_primaries_get_info( primaries: GstVideoColorPrimaries, ) -> *const GstVideoColorPrimariesInfo; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_to_iso(primaries: GstVideoColorPrimaries) -> c_uint; //========================================================================= @@ -2375,14 +2375,14 @@ extern "C" { //========================================================================= // GstVideoFieldOrder //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_field_order_get_type() -> GType; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_field_order_from_string(order: *const c_char) -> GstVideoFieldOrder; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_field_order_to_string(order: GstVideoFieldOrder) -> *const c_char; //========================================================================= @@ -2442,8 +2442,8 @@ extern "C" { //========================================================================= // GstVideoOrientationMethod //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_orientation_method_get_type() -> GType; //========================================================================= @@ -2470,26 +2470,26 @@ extern "C" { // GstVideoTransferFunction //========================================================================= pub fn gst_video_transfer_function_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_from_iso(value: c_uint) -> GstVideoTransferFunction; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_is_equivalent( from_func: GstVideoTransferFunction, from_bpp: c_uint, to_func: GstVideoTransferFunction, to_bpp: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_to_iso(func: GstVideoTransferFunction) -> c_uint; //========================================================================= // GstVideoVBIParserResult //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_result_get_type() -> GType; //========================================================================= @@ -2540,8 +2540,8 @@ extern "C" { //========================================================================= // GstVideoOverlayFormatFlags //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_overlay_format_flags_get_type() -> GType; //========================================================================= @@ -2562,15 +2562,15 @@ extern "C" { //========================================================================= // GstVideoTimeCodeFlags //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_time_code_flags_get_type() -> GType; //========================================================================= // GstVideoAFDMeta //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2590,15 +2590,15 @@ extern "C" { //========================================================================= // GstVideoBarMeta //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoCaptionMeta //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2659,29 +2659,29 @@ extern "C" { //========================================================================= // GstVideoContentLightLevel //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_add_to_caps( linfo: *const GstVideoContentLightLevel, caps: *mut gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_from_caps( linfo: *mut GstVideoContentLightLevel, caps: *const gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_from_string( linfo: *mut GstVideoContentLightLevel, level: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_init(linfo: *mut GstVideoContentLightLevel); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_to_string( linfo: *const GstVideoContentLightLevel, ) -> *mut c_char; @@ -2735,8 +2735,8 @@ extern "C" { //========================================================================= // GstVideoFormatInfo //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_format_info_component( info: *const GstVideoFormatInfo, plane: c_uint, @@ -2783,8 +2783,8 @@ extern "C" { pub fn gst_video_info_new() -> *mut GstVideoInfo; pub fn gst_video_info_align(info: *mut GstVideoInfo, align: *mut GstVideoAlignment) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_info_align_full( info: *mut GstVideoInfo, align: *mut GstVideoAlignment, @@ -2812,8 +2812,8 @@ extern "C" { width: c_uint, height: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_info_set_interlaced_format( info: *mut GstVideoInfo, format: GstVideoFormat, @@ -2826,34 +2826,34 @@ extern "C" { //========================================================================= // GstVideoMasteringDisplayInfo //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_add_to_caps( minfo: *const GstVideoMasteringDisplayInfo, caps: *mut gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_caps( minfo: *mut GstVideoMasteringDisplayInfo, caps: *const gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_init(minfo: *mut GstVideoMasteringDisplayInfo); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_is_equal( minfo: *const GstVideoMasteringDisplayInfo, other: *const GstVideoMasteringDisplayInfo, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_to_string( minfo: *const GstVideoMasteringDisplayInfo, ) -> *mut c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_string( minfo: *mut GstVideoMasteringDisplayInfo, mastering: *const c_char, @@ -2862,14 +2862,14 @@ extern "C" { //========================================================================= // GstVideoMeta //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_height( meta: *mut GstVideoMeta, plane_height: *mut c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_size( meta: *mut GstVideoMeta, plane_size: *mut size_t, @@ -2882,8 +2882,8 @@ extern "C" { stride: *mut c_int, flags: gst::GstMapFlags, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_set_alignment( meta: *mut GstVideoMeta, alignment: GstVideoAlignment, @@ -3007,14 +3007,14 @@ extern "C" { //========================================================================= // GstVideoRegionOfInterestMeta //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_region_of_interest_meta_add_param( meta: *mut GstVideoRegionOfInterestMeta, s: *mut gst::GstStructure, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_region_of_interest_meta_get_param( meta: *mut GstVideoRegionOfInterestMeta, name: *const c_char, @@ -3095,11 +3095,11 @@ extern "C" { //========================================================================= // GstVideoTimeCode //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_get_type() -> GType; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_new( fps_n: c_uint, fps_d: c_uint, @@ -3111,11 +3111,11 @@ extern "C" { frames: c_uint, field_count: c_uint, ) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_new_empty() -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_new_from_date_time( fps_n: c_uint, fps_d: c_uint, @@ -3123,8 +3123,8 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_new_from_date_time_full( fps_n: c_uint, fps_d: c_uint, @@ -3132,41 +3132,41 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_new_from_string(tc_str: *const c_char) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_add_frames(tc: *mut GstVideoTimeCode, frames: i64); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_add_interval( tc: *const GstVideoTimeCode, tc_inter: *const GstVideoTimeCodeInterval, ) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_clear(tc: *mut GstVideoTimeCode); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_compare( tc1: *const GstVideoTimeCode, tc2: *const GstVideoTimeCode, ) -> c_int; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_copy(tc: *const GstVideoTimeCode) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_frames_since_daily_jam(tc: *const GstVideoTimeCode) -> u64; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_free(tc: *mut GstVideoTimeCode); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_increment_frame(tc: *mut GstVideoTimeCode); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_init( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3179,8 +3179,8 @@ extern "C" { frames: c_uint, field_count: c_uint, ); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_init_from_date_time( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3189,8 +3189,8 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_init_from_date_time_full( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3199,51 +3199,51 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_is_valid(tc: *const GstVideoTimeCode) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_nsec_since_daily_jam(tc: *const GstVideoTimeCode) -> u64; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_to_date_time(tc: *const GstVideoTimeCode) -> *mut glib::GDateTime; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_to_string(tc: *const GstVideoTimeCode) -> *mut c_char; //========================================================================= // GstVideoTimeCodeInterval //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_get_type() -> GType; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_new( hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, ) -> *mut GstVideoTimeCodeInterval; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_new_from_string( tc_inter_str: *const c_char, ) -> *mut GstVideoTimeCodeInterval; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_clear(tc: *mut GstVideoTimeCodeInterval); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_copy( tc: *const GstVideoTimeCodeInterval, ) -> *mut GstVideoTimeCodeInterval; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_free(tc: *mut GstVideoTimeCodeInterval); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_init( tc: *mut GstVideoTimeCodeInterval, hours: c_uint, @@ -3255,24 +3255,24 @@ extern "C" { //========================================================================= // GstVideoTimeCodeMeta //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoVBIEncoder //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_new( format: GstVideoFormat, pixel_width: u32, ) -> *mut GstVideoVBIEncoder; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_add_ancillary( encoder: *mut GstVideoVBIEncoder, composite: gboolean, @@ -3281,41 +3281,41 @@ extern "C" { data: *const u8, data_count: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_copy( encoder: *const GstVideoVBIEncoder, ) -> *mut GstVideoVBIEncoder; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_free(encoder: *mut GstVideoVBIEncoder); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_write_line(encoder: *mut GstVideoVBIEncoder, data: *mut u8); //========================================================================= // GstVideoVBIParser //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_new( format: GstVideoFormat, pixel_width: u32, ) -> *mut GstVideoVBIParser; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_add_line(parser: *mut GstVideoVBIParser, data: *const u8); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_copy(parser: *const GstVideoVBIParser) -> *mut GstVideoVBIParser; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_free(parser: *mut GstVideoVBIParser); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_ancillary( parser: *mut GstVideoVBIParser, anc: *mut GstVideoAncillary, @@ -3329,18 +3329,18 @@ extern "C" { //========================================================================= // GstVideoAggregator //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_get_type() -> GType; //========================================================================= // GstVideoAggregatorConvertPad //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_update_conversion_info( pad: *mut GstVideoAggregatorConvertPad, ); @@ -3348,25 +3348,25 @@ extern "C" { //========================================================================= // GstVideoAggregatorPad //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_type() -> GType; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_current_buffer( pad: *mut GstVideoAggregatorPad, ) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_prepared_frame( pad: *mut GstVideoAggregatorPad, ) -> *mut GstVideoFrame; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_has_current_buffer(pad: *mut GstVideoAggregatorPad) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_set_needs_alpha( pad: *mut GstVideoAggregatorPad, needs_alpha: gboolean, @@ -3390,8 +3390,8 @@ extern "C" { decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_decoder_allocate_output_frame_with_params( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, @@ -3456,8 +3456,8 @@ extern "C" { frame: *mut GstVideoCodecFrame, ); pub fn gst_video_decoder_set_estimate_rate(dec: *mut GstVideoDecoder, enabled: gboolean); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_decoder_set_interlaced_output_state( decoder: *mut GstVideoDecoder, fmt: GstVideoFormat, @@ -3503,8 +3503,8 @@ extern "C" { encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_finish_subframe( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, @@ -3524,14 +3524,14 @@ extern "C" { min_latency: *mut gst::GstClockTime, max_latency: *mut gst::GstClockTime, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_encoder_get_max_encode_time( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstClockTimeDiff; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_get_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, ) -> gst::GstClockTime; @@ -3541,8 +3541,8 @@ extern "C" { pub fn gst_video_encoder_get_output_state( encoder: *mut GstVideoEncoder, ) -> *mut GstVideoCodecState; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_encoder_is_qos_enabled(encoder: *mut GstVideoEncoder) -> gboolean; pub fn gst_video_encoder_merge_tags( encoder: *mut GstVideoEncoder, @@ -3561,8 +3561,8 @@ extern "C" { min_latency: gst::GstClockTime, max_latency: gst::GstClockTime, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_set_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, interval: gst::GstClockTime, @@ -3573,8 +3573,8 @@ extern "C" { caps: *mut gst::GstCaps, reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_encoder_set_qos_enabled(encoder: *mut GstVideoEncoder, enabled: gboolean); //========================================================================= @@ -3644,8 +3644,8 @@ extern "C" { x: *mut c_double, y: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_navigation_event_parse_mouse_scroll_event( event: *mut gst::GstEvent, x: *mut c_double, @@ -3733,8 +3733,8 @@ extern "C" { x: c_double, y: c_double, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_navigation_send_mouse_scroll_event( navigation: *mut GstNavigation, x: c_double, @@ -3746,8 +3746,8 @@ extern "C" { //========================================================================= // GstVideoDirection //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_direction_get_type() -> GType; //========================================================================= @@ -3791,14 +3791,14 @@ extern "C" { // GstVideoOverlay //========================================================================= pub fn gst_video_overlay_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_overlay_install_properties( oclass: *mut gobject::GObjectClass, last_prop_id: c_int, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_overlay_set_property( object: *mut gobject::GObject, last_prop_id: c_int, @@ -3821,8 +3821,8 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_afd_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -3832,8 +3832,8 @@ extern "C" { pub fn gst_buffer_add_video_affine_transformation_meta( buffer: *mut gst::GstBuffer, ) -> *mut GstVideoAffineTransformationMeta; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_bar_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -3841,8 +3841,8 @@ extern "C" { bar_data1: c_uint, bar_data2: c_uint, ) -> *mut GstVideoBarMeta; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_video_caption_meta( buffer: *mut gst::GstBuffer, caption_type: GstVideoCaptionType, @@ -3896,14 +3896,14 @@ extern "C" { w: c_uint, h: c_uint, ) -> *mut GstVideoRegionOfInterestMeta; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_add_video_time_code_meta( buffer: *mut gst::GstBuffer, tc: *const GstVideoTimeCode, ) -> *mut GstVideoTimeCodeMeta; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_add_video_time_code_meta_full( buffer: *mut gst::GstBuffer, fps_n: c_uint, @@ -3936,12 +3936,12 @@ extern "C" { pub fn gst_is_video_overlay_prepare_window_handle_message( msg: *mut gst::GstMessage, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_api_get_type() -> GType; pub fn gst_video_affine_transformation_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_api_get_type() -> GType; pub fn gst_video_blend( dest: *mut GstVideoFrame, @@ -3968,8 +3968,8 @@ extern "C" { display_par_n: c_uint, display_par_d: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_api_get_type() -> GType; pub fn gst_video_chroma_from_string(s: *const c_char) -> GstVideoChromaSite; pub fn gst_video_chroma_resample( @@ -4033,8 +4033,8 @@ extern "C" { all_headers: *mut gboolean, count: *mut c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_formats_raw(len: *mut c_uint) -> *const GstVideoFormat; pub fn gst_video_gl_texture_upload_meta_api_get_type() -> GType; pub fn gst_video_guess_framerate( @@ -4042,14 +4042,14 @@ extern "C" { dest_n: *mut c_int, dest_d: *mut c_int, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps( formats: *const GstVideoFormat, len: c_uint, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps_with_features( formats: *const GstVideoFormat, len: c_uint, @@ -4082,8 +4082,8 @@ extern "C" { x_tiles: c_int, y_tiles: c_int, ) -> c_uint; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_meta_api_get_type() -> GType; } diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index b571fbe5a..ed124665f 100644 --- a/gstreamer-video/sys/tests/abi.rs +++ b/gstreamer-video/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_video_sys::*; diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-video/sys/tests/constant.c +++ b/gstreamer-video/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-video/sys/tests/layout.c +++ b/gstreamer-video/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 59533ad29..b8c1607d6 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -6,12 +6,11 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCBundlePolicy { @@ -23,8 +22,8 @@ pub enum WebRTCBundlePolicy { __Unknown(i32), } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCBundlePolicy { type GlibType = ffi::GstWebRTCBundlePolicy; @@ -40,8 +39,8 @@ impl ToGlib for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCBundlePolicy { fn from_glib(value: ffi::GstWebRTCBundlePolicy) -> Self { @@ -56,34 +55,34 @@ impl FromGlib for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCBundlePolicy { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_bundle_policy_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCBundlePolicy { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCBundlePolicy { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCBundlePolicy { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -135,19 +134,19 @@ impl StaticType for WebRTCDTLSSetup { } impl<'a> FromValueOptional<'a> for WebRTCDTLSSetup { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCDTLSSetup { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCDTLSSetup { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -202,25 +201,25 @@ impl StaticType for WebRTCDTLSTransportState { } impl<'a> FromValueOptional<'a> for WebRTCDTLSTransportState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCDTLSTransportState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCDTLSTransportState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCDataChannelState { @@ -233,8 +232,8 @@ pub enum WebRTCDataChannelState { __Unknown(i32), } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCDataChannelState { type GlibType = ffi::GstWebRTCDataChannelState; @@ -251,8 +250,8 @@ impl ToGlib for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCDataChannelState { fn from_glib(value: ffi::GstWebRTCDataChannelState) -> Self { @@ -268,40 +267,40 @@ impl FromGlib for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCDataChannelState { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_data_channel_state_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCDataChannelState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCDataChannelState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCDataChannelState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCFECType { @@ -311,8 +310,8 @@ pub enum WebRTCFECType { __Unknown(i32), } -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl ToGlib for WebRTCFECType { type GlibType = ffi::GstWebRTCFECType; @@ -326,8 +325,8 @@ impl ToGlib for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl FromGlib for WebRTCFECType { fn from_glib(value: ffi::GstWebRTCFECType) -> Self { @@ -340,34 +339,34 @@ impl FromGlib for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl StaticType for WebRTCFECType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_fec_type_get_type()) } } } -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl<'a> FromValueOptional<'a> for WebRTCFECType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl<'a> FromValue<'a> for WebRTCFECType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl SetValue for WebRTCFECType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -413,19 +412,19 @@ impl StaticType for WebRTCICEComponent { } impl<'a> FromValueOptional<'a> for WebRTCICEComponent { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCICEComponent { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCICEComponent { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -488,19 +487,19 @@ impl StaticType for WebRTCICEConnectionState { } impl<'a> FromValueOptional<'a> for WebRTCICEConnectionState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCICEConnectionState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCICEConnectionState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -549,19 +548,19 @@ impl StaticType for WebRTCICEGatheringState { } impl<'a> FromValueOptional<'a> for WebRTCICEGatheringState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCICEGatheringState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCICEGatheringState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -607,25 +606,25 @@ impl StaticType for WebRTCICERole { } impl<'a> FromValueOptional<'a> for WebRTCICERole { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCICERole { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCICERole { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCICETransportPolicy { @@ -635,8 +634,8 @@ pub enum WebRTCICETransportPolicy { __Unknown(i32), } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCICETransportPolicy { type GlibType = ffi::GstWebRTCICETransportPolicy; @@ -650,8 +649,8 @@ impl ToGlib for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCICETransportPolicy { fn from_glib(value: ffi::GstWebRTCICETransportPolicy) -> Self { @@ -664,34 +663,34 @@ impl FromGlib for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCICETransportPolicy { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_ice_transport_policy_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCICETransportPolicy { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCICETransportPolicy { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCICETransportPolicy { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -753,25 +752,25 @@ impl StaticType for WebRTCPeerConnectionState { } impl<'a> FromValueOptional<'a> for WebRTCPeerConnectionState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCPeerConnectionState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCPeerConnectionState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCPriorityType { @@ -783,8 +782,8 @@ pub enum WebRTCPriorityType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCPriorityType { type GlibType = ffi::GstWebRTCPriorityType; @@ -800,8 +799,8 @@ impl ToGlib for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCPriorityType { fn from_glib(value: ffi::GstWebRTCPriorityType) -> Self { @@ -816,34 +815,34 @@ impl FromGlib for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCPriorityType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_priority_type_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCPriorityType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCPriorityType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCPriorityType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -906,25 +905,25 @@ impl StaticType for WebRTCRTPTransceiverDirection { } impl<'a> FromValueOptional<'a> for WebRTCRTPTransceiverDirection { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCRTPTransceiverDirection { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCRTPTransceiverDirection { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCSCTPTransportState { @@ -936,8 +935,8 @@ pub enum WebRTCSCTPTransportState { __Unknown(i32), } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCSCTPTransportState { type GlibType = ffi::GstWebRTCSCTPTransportState; @@ -953,8 +952,8 @@ impl ToGlib for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCSCTPTransportState { fn from_glib(value: ffi::GstWebRTCSCTPTransportState) -> Self { @@ -969,34 +968,34 @@ impl FromGlib for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCSCTPTransportState { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_sctp_transport_state_get_type()) } } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCSCTPTransportState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCSCTPTransportState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCSCTPTransportState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1048,19 +1047,19 @@ impl StaticType for WebRTCSDPType { } impl<'a> FromValueOptional<'a> for WebRTCSDPType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCSDPType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCSDPType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1126,19 +1125,19 @@ impl StaticType for WebRTCSignalingState { } impl<'a> FromValueOptional<'a> for WebRTCSignalingState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCSignalingState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCSignalingState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1220,19 +1219,19 @@ impl StaticType for WebRTCStatsType { } impl<'a> FromValueOptional<'a> for WebRTCStatsType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for WebRTCStatsType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for WebRTCStatsType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer-webrtc/src/auto/mod.rs b/gstreamer-webrtc/src/auto/mod.rs index 5ed117f1c..bf1eac3f0 100644 --- a/gstreamer-webrtc/src/auto/mod.rs +++ b/gstreamer-webrtc/src/auto/mod.rs @@ -5,11 +5,11 @@ mod web_rtcdtls_transport; pub use self::web_rtcdtls_transport::WebRTCDTLSTransport; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] mod web_rtc_data_channel; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::web_rtc_data_channel::WebRTCDataChannel; mod web_rtcice_transport; @@ -28,31 +28,31 @@ mod web_rtc_session_description; pub use self::web_rtc_session_description::WebRTCSessionDescription; mod enums; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCBundlePolicy; pub use self::enums::WebRTCDTLSSetup; pub use self::enums::WebRTCDTLSTransportState; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCDataChannelState; -#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] pub use self::enums::WebRTCFECType; pub use self::enums::WebRTCICEComponent; pub use self::enums::WebRTCICEConnectionState; pub use self::enums::WebRTCICEGatheringState; pub use self::enums::WebRTCICERole; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCICETransportPolicy; pub use self::enums::WebRTCPeerConnectionState; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCPriorityType; pub use self::enums::WebRTCRTPTransceiverDirection; -#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCSCTPTransportState; pub use self::enums::WebRTCSDPType; pub use self::enums::WebRTCSignalingState; diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index e295adc7c..fa6ae3904 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -10,7 +10,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -23,32 +22,32 @@ glib::glib_wrapper! { } impl WebRTCDataChannel { - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn close(&self) { unsafe { ffi::gst_webrtc_data_channel_close(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_buffered_amount_low(&self) { unsafe { ffi::gst_webrtc_data_channel_on_buffered_amount_low(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_close(&self) { unsafe { ffi::gst_webrtc_data_channel_on_close(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_message_data(&self, data: Option<&glib::Bytes>) { unsafe { ffi::gst_webrtc_data_channel_on_message_data( @@ -58,8 +57,8 @@ impl WebRTCDataChannel { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_message_string(&self, str: Option<&str>) { unsafe { ffi::gst_webrtc_data_channel_on_message_string( @@ -69,24 +68,24 @@ impl WebRTCDataChannel { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_open(&self) { unsafe { ffi::gst_webrtc_data_channel_on_open(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn send_data(&self, data: Option<&glib::Bytes>) { unsafe { ffi::gst_webrtc_data_channel_send_data(self.to_glib_none().0, data.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn send_string(&self, str: Option<&str>) { unsafe { ffi::gst_webrtc_data_channel_send_string(self.to_glib_none().0, str.to_glib_none().0); @@ -95,7 +94,7 @@ impl WebRTCDataChannel { pub fn get_property_buffered_amount(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"buffered-amount\0".as_ptr() as *const _, @@ -110,7 +109,7 @@ impl WebRTCDataChannel { pub fn get_property_buffered_amount_low_threshold(&self) -> u64 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"buffered-amount-low-threshold\0".as_ptr() as *const _, @@ -128,14 +127,16 @@ impl WebRTCDataChannel { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"buffered-amount-low-threshold\0".as_ptr() as *const _, - Value::from(&buffered_amount_low_threshold).to_glib_none().0, + glib::Value::from(&buffered_amount_low_threshold) + .to_glib_none() + .0, ); } } pub fn get_property_id(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"id\0".as_ptr() as *const _, @@ -150,7 +151,7 @@ impl WebRTCDataChannel { pub fn get_property_label(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"label\0".as_ptr() as *const _, @@ -164,7 +165,7 @@ impl WebRTCDataChannel { pub fn get_property_max_packet_lifetime(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"max-packet-lifetime\0".as_ptr() as *const _, @@ -179,7 +180,7 @@ impl WebRTCDataChannel { pub fn get_property_max_retransmits(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"max-retransmits\0".as_ptr() as *const _, @@ -194,7 +195,7 @@ impl WebRTCDataChannel { pub fn get_property_negotiated(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"negotiated\0".as_ptr() as *const _, @@ -209,7 +210,7 @@ impl WebRTCDataChannel { pub fn get_property_ordered(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"ordered\0".as_ptr() as *const _, @@ -224,7 +225,8 @@ impl WebRTCDataChannel { pub fn get_property_priority(&self) -> WebRTCPriorityType { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"priority\0".as_ptr() as *const _, @@ -239,7 +241,7 @@ impl WebRTCDataChannel { pub fn get_property_protocol(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"protocol\0".as_ptr() as *const _, @@ -253,7 +255,8 @@ impl WebRTCDataChannel { pub fn get_property_ready_state(&self) -> WebRTCDataChannelState { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"ready-state\0".as_ptr() as *const _, diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 29660b1ed..462eb1504 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -9,7 +9,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -43,7 +42,7 @@ impl WebRTCDTLSTransport { pub fn get_property_certificate(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"certificate\0".as_ptr() as *const _, @@ -60,14 +59,14 @@ impl WebRTCDTLSTransport { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"certificate\0".as_ptr() as *const _, - Value::from(certificate).to_glib_none().0, + glib::Value::from(certificate).to_glib_none().0, ); } } pub fn get_property_client(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"client\0".as_ptr() as *const _, @@ -85,14 +84,14 @@ impl WebRTCDTLSTransport { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"client\0".as_ptr() as *const _, - Value::from(&client).to_glib_none().0, + glib::Value::from(&client).to_glib_none().0, ); } } pub fn get_property_remote_certificate(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"remote-certificate\0".as_ptr() as *const _, @@ -106,7 +105,7 @@ impl WebRTCDTLSTransport { pub fn get_property_rtcp(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"rtcp\0".as_ptr() as *const _, @@ -121,7 +120,7 @@ impl WebRTCDTLSTransport { pub fn get_property_session_id(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"session-id\0".as_ptr() as *const _, @@ -137,7 +136,7 @@ impl WebRTCDTLSTransport { pub fn get_property_state(&self) -> WebRTCDTLSTransportState { unsafe { let mut value = - Value::from_type(::static_type()); + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"state\0".as_ptr() as *const _, @@ -152,7 +151,8 @@ impl WebRTCDTLSTransport { pub fn get_property_transport(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"transport\0".as_ptr() as *const _, diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 230c7713a..2440608e6 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -10,7 +10,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -60,7 +59,8 @@ impl WebRTCICETransport { pub fn get_property_component(&self) -> WebRTCICEComponent { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"component\0".as_ptr() as *const _, @@ -76,7 +76,7 @@ impl WebRTCICETransport { pub fn get_property_gathering_state(&self) -> WebRTCICEGatheringState { unsafe { let mut value = - Value::from_type(::static_type()); + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"gathering-state\0".as_ptr() as *const _, @@ -92,7 +92,7 @@ impl WebRTCICETransport { pub fn get_property_state(&self) -> WebRTCICEConnectionState { unsafe { let mut value = - Value::from_type(::static_type()); + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"state\0".as_ptr() as *const _, diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index efa715571..a8e07bf4a 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -4,24 +4,23 @@ use crate::WebRTCRTPReceiver; use crate::WebRTCRTPSender; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::WebRTCRTPTransceiverDirection; use glib::object::ObjectType as ObjectType_; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::connect_raw; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem::transmute; glib::glib_wrapper! { @@ -33,12 +32,13 @@ glib::glib_wrapper! { } impl WebRTCRTPTransceiver { - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_property_direction(&self) -> WebRTCRTPTransceiverDirection { unsafe { - let mut value = - Value::from_type(::static_type()); + let mut value = glib::Value::from_type( + ::static_type(), + ); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"direction\0".as_ptr() as *const _, @@ -51,21 +51,21 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn set_property_direction(&self, direction: WebRTCRTPTransceiverDirection) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"direction\0".as_ptr() as *const _, - Value::from(&direction).to_glib_none().0, + glib::Value::from(&direction).to_glib_none().0, ); } } pub fn get_property_mlineindex(&self) -> u32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"mlineindex\0".as_ptr() as *const _, @@ -80,7 +80,8 @@ impl WebRTCRTPTransceiver { pub fn get_property_receiver(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"receiver\0".as_ptr() as *const _, @@ -94,7 +95,7 @@ impl WebRTCRTPTransceiver { pub fn get_property_sender(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"sender\0".as_ptr() as *const _, @@ -106,8 +107,8 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn connect_property_direction_notify< F: Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static, >( diff --git a/gstreamer-webrtc/sys/Cargo.toml b/gstreamer-webrtc/sys/Cargo.toml index cf7f0c833..41676a85d 100644 --- a/gstreamer-webrtc/sys/Cargo.toml +++ b/gstreamer-webrtc/sys/Cargo.toml @@ -26,6 +26,7 @@ tempfile = "3" v1_16 = ["v1_14_1"] v1_18 = ["v1_16"] v1_14_1 = [] +dox = [] [lib] name = "gstreamer_webrtc_sys" @@ -45,7 +46,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_webrtc_1_0] name = "gstreamer-webrtc-1.0" version = "1.14" diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index e0f1dbfee..d9824fd68 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -459,8 +459,8 @@ extern "C" { //========================================================================= // GstWebRTCBundlePolicy //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_bundle_policy_get_type() -> GType; //========================================================================= @@ -476,15 +476,15 @@ extern "C" { //========================================================================= // GstWebRTCDataChannelState //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_data_channel_state_get_type() -> GType; //========================================================================= // GstWebRTCFECType //========================================================================= - #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] + #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] pub fn gst_webrtc_fec_type_get_type() -> GType; //========================================================================= @@ -510,8 +510,8 @@ extern "C" { //========================================================================= // GstWebRTCICETransportPolicy //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_ice_transport_policy_get_type() -> GType; //========================================================================= @@ -522,8 +522,8 @@ extern "C" { //========================================================================= // GstWebRTCPriorityType //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_priority_type_get_type() -> GType; //========================================================================= @@ -534,8 +534,8 @@ extern "C" { //========================================================================= // GstWebRTCSCTPTransportState //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_sctp_transport_state_get_type() -> GType; //========================================================================= @@ -583,47 +583,47 @@ extern "C" { //========================================================================= // GstWebRTCDataChannel //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_close(channel: *mut GstWebRTCDataChannel); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_buffered_amount_low(channel: *mut GstWebRTCDataChannel); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_close(channel: *mut GstWebRTCDataChannel); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_error( channel: *mut GstWebRTCDataChannel, error: *mut glib::GError, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_message_data( channel: *mut GstWebRTCDataChannel, data: *mut glib::GBytes, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_message_string( channel: *mut GstWebRTCDataChannel, str: *const c_char, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_open(channel: *mut GstWebRTCDataChannel); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_send_data( channel: *mut GstWebRTCDataChannel, data: *mut glib::GBytes, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_send_string( channel: *mut GstWebRTCDataChannel, str: *const c_char, diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index 24f4b0ba2..c02ef7c0e 100644 --- a/gstreamer-webrtc/sys/tests/abi.rs +++ b/gstreamer-webrtc/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_webrtc_sys::*; diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer-webrtc/sys/tests/constant.c +++ b/gstreamer-webrtc/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer-webrtc/sys/tests/layout.c +++ b/gstreamer-webrtc/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index 948396b22..e7a8e22b3 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -4,8 +4,8 @@ use crate::ChildProxy; use crate::Element; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::ElementFlags; use crate::Object; use crate::Pad; @@ -16,7 +16,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -53,12 +52,12 @@ pub trait GstBinExt: 'static { fn get_by_name_recurse_up(&self, name: &str) -> Option; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn get_suppressed_flags(&self) -> ElementFlags; - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn iterate_all_by_element_factory_name(&self, factory_name: &str) -> /*Ignored*/Option; //fn iterate_all_by_interface(&self, iface: glib::types::Type) -> /*Ignored*/Option; @@ -79,8 +78,8 @@ pub trait GstBinExt: 'static { //fn remove_many>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_suppressed_flags(&self, flags: ElementFlags); fn sync_children_states(&self) -> Result<(), glib::error::BoolError>; @@ -93,15 +92,15 @@ pub trait GstBinExt: 'static { fn set_property_message_forward(&self, message_forward: bool); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_added( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_removed( &self, f: F, @@ -181,8 +180,8 @@ impl> GstBinExt for O { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn get_suppressed_flags(&self) -> ElementFlags { unsafe { from_glib(ffi::gst_bin_get_suppressed_flags( @@ -191,8 +190,8 @@ impl> GstBinExt for O { } } - //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn iterate_all_by_element_factory_name(&self, factory_name: &str) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_bin_iterate_all_by_element_factory_name() } //} @@ -246,8 +245,8 @@ impl> GstBinExt for O { // unsafe { TODO: call ffi:gst_bin_remove_many() } //} - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_suppressed_flags(&self, flags: ElementFlags) { unsafe { ffi::gst_bin_set_suppressed_flags(self.as_ref().to_glib_none().0, flags.to_glib()); @@ -265,7 +264,7 @@ impl> GstBinExt for O { fn get_property_async_handling(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"async-handling\0".as_ptr() as *const _, @@ -283,14 +282,14 @@ impl> GstBinExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"async-handling\0".as_ptr() as *const _, - Value::from(&async_handling).to_glib_none().0, + glib::Value::from(&async_handling).to_glib_none().0, ); } } fn get_property_message_forward(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"message-forward\0".as_ptr() as *const _, @@ -308,13 +307,13 @@ impl> GstBinExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"message-forward\0".as_ptr() as *const _, - Value::from(&message_forward).to_glib_none().0, + glib::Value::from(&message_forward).to_glib_none().0, ); } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_added( &self, f: F, @@ -350,8 +349,8 @@ impl> GstBinExt for O { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_removed( &self, f: F, diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 90411c9d2..255604ec0 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -48,8 +48,8 @@ impl Bus { } } - //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //pub fn get_pollfd(&self, fd: /*Ignored*/glib::PollFD) { // unsafe { TODO: call ffi:gst_bus_get_pollfd() } //} diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 80f04b525..1e3e73794 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -10,7 +10,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem; use std::mem::transmute; @@ -28,8 +27,8 @@ impl Clock { // unsafe { TODO: call ffi:gst_clock_id_compare_func() } //} - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn id_get_clock(id: /*Unimplemented*/ClockID) -> Option { // unsafe { TODO: call ffi:gst_clock_id_get_clock() } //} @@ -50,8 +49,8 @@ impl Clock { // unsafe { TODO: call ffi:gst_clock_id_unschedule() } //} - //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn id_uses_clock>(id: /*Unimplemented*/ClockID, clock: &P) -> bool { // unsafe { TODO: call ffi:gst_clock_id_uses_clock() } //} @@ -362,7 +361,7 @@ impl> ClockExt for O { fn get_property_window_size(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"window-size\0".as_ptr() as *const _, @@ -380,14 +379,14 @@ impl> ClockExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"window-size\0".as_ptr() as *const _, - Value::from(&window_size).to_glib_none().0, + glib::Value::from(&window_size).to_glib_none().0, ); } } fn get_property_window_threshold(&self) -> i32 { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"window-threshold\0".as_ptr() as *const _, @@ -405,7 +404,7 @@ impl> ClockExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"window-threshold\0".as_ptr() as *const _, - Value::from(&window_threshold).to_glib_none().0, + glib::Value::from(&window_threshold).to_glib_none().0, ); } } diff --git a/gstreamer/src/auto/control_binding.rs b/gstreamer/src/auto/control_binding.rs index 1936700da..d929a239e 100644 --- a/gstreamer/src/auto/control_binding.rs +++ b/gstreamer/src/auto/control_binding.rs @@ -7,7 +7,6 @@ use crate::Object; use glib::object::IsA; use glib::translate::*; use glib::StaticType; -use glib::Value; glib::glib_wrapper! { pub struct ControlBinding(Object) @extends Object; @@ -90,7 +89,7 @@ impl> ControlBindingExt for O { fn get_property_object(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"object\0".as_ptr() as *const _, diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 947f6d863..4875b7d30 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -57,8 +57,8 @@ impl DateTime { unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_local_time(secs)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> DateTime { assert_initialized_main_thread!(); unsafe { @@ -73,8 +73,8 @@ impl DateTime { unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_utc(secs)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn from_unix_epoch_utc_usecs(usecs: i64) -> DateTime { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_utc_usecs(usecs)) } diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 1b4c94123..063a55481 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -11,7 +11,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -112,7 +111,7 @@ impl> DeviceMonitorExt for O { fn get_property_show_all(&self) -> bool { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"show-all\0".as_ptr() as *const _, @@ -130,7 +129,7 @@ impl> DeviceMonitorExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"show-all\0".as_ptr() as *const _, - Value::from(&show_all).to_glib_none().0, + glib::Value::from(&show_all).to_glib_none().0, ); } } diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 4910969b8..426638538 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -32,8 +32,8 @@ pub trait DeviceProviderExt: 'static { fn device_add>(&self, device: &P); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn device_changed, Q: IsA>(&self, device: &P, changed_device: &Q); fn device_remove>(&self, device: &P); @@ -83,8 +83,8 @@ impl> DeviceProviderExt for O { } } - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn device_changed, Q: IsA>(&self, device: &P, changed_device: &Q) { unsafe { ffi::gst_device_provider_device_changed( diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 2c1909266..9b8b4794d 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -66,16 +66,16 @@ pub trait ElementExt: 'static { fn create_all_pads(&self); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_pad bool>(&self, func: P) -> bool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_sink_pad bool>(&self, func: P) -> bool; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_src_pad bool>(&self, func: P) -> bool; fn get_base_time(&self) -> ClockTime; @@ -145,8 +145,8 @@ pub trait ElementExt: 'static { //fn message_full(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32); - //#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + //#[cfg(any(feature = "v1_10", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] //fn message_full_with_details(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32, structure: &mut Structure); fn no_more_pads(&self); @@ -222,8 +222,8 @@ impl> ElementExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_pad bool>(&self, func: P) -> bool { let func_data: P = func; unsafe extern "C" fn func_func bool>( @@ -248,8 +248,8 @@ impl> ElementExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_sink_pad bool>(&self, func: P) -> bool { let func_data: P = func; unsafe extern "C" fn func_func bool>( @@ -274,8 +274,8 @@ impl> ElementExt for O { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_src_pad bool>(&self, func: P) -> bool { let func_data: P = func; unsafe extern "C" fn func_func bool>( @@ -506,8 +506,8 @@ impl> ElementExt for O { // unsafe { TODO: call ffi:gst_element_message_full() } //} - //#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + //#[cfg(any(feature = "v1_10", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] //fn message_full_with_details(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32, structure: &mut Structure) { // unsafe { TODO: call ffi:gst_element_message_full_with_details() } //} diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index bc16b74c8..a9639090b 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -7,7 +7,6 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::Quark; use glib::StaticType; use glib::Type; @@ -59,19 +58,19 @@ impl StaticType for BufferingMode { } impl<'a> FromValueOptional<'a> for BufferingMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for BufferingMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for BufferingMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -120,19 +119,19 @@ impl StaticType for BusSyncReply { } impl<'a> FromValueOptional<'a> for BusSyncReply { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for BusSyncReply { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for BusSyncReply { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -178,19 +177,19 @@ impl StaticType for CapsIntersectMode { } impl<'a> FromValueOptional<'a> for CapsIntersectMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for CapsIntersectMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for CapsIntersectMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -236,19 +235,19 @@ impl StaticType for ClockEntryType { } impl<'a> FromValueOptional<'a> for ClockEntryType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ClockEntryType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for ClockEntryType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -313,19 +312,19 @@ impl StaticType for ClockReturn { } impl<'a> FromValueOptional<'a> for ClockReturn { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ClockReturn { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for ClockReturn { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -336,8 +335,8 @@ pub enum ClockType { Realtime, Monotonic, Other, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Tai, #[doc(hidden)] __Unknown(i32), @@ -352,7 +351,7 @@ impl ToGlib for ClockType { ClockType::Realtime => ffi::GST_CLOCK_TYPE_REALTIME, ClockType::Monotonic => ffi::GST_CLOCK_TYPE_MONOTONIC, ClockType::Other => ffi::GST_CLOCK_TYPE_OTHER, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] ClockType::Tai => ffi::GST_CLOCK_TYPE_TAI, ClockType::__Unknown(value) => value, } @@ -367,7 +366,7 @@ impl FromGlib for ClockType { 0 => ClockType::Realtime, 1 => ClockType::Monotonic, 2 => ClockType::Other, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 3 => ClockType::Tai, value => ClockType::__Unknown(value), } @@ -381,19 +380,19 @@ impl StaticType for ClockType { } impl<'a> FromValueOptional<'a> for ClockType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ClockType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for ClockType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -512,19 +511,19 @@ impl StaticType for CoreError { } impl<'a> FromValueOptional<'a> for CoreError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for CoreError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for CoreError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -594,19 +593,19 @@ impl StaticType for DebugLevel { } impl<'a> FromValueOptional<'a> for DebugLevel { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for DebugLevel { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for DebugLevel { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -624,16 +623,16 @@ pub enum EventType { Tag, Buffersize, SinkMessage, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] StreamGroupDone, Eos, Toc, Protection, SegmentDone, Gap, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] InstantRateChange, Qos, Seek, @@ -642,11 +641,11 @@ pub enum EventType { Step, Reconfigure, TocSelect, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] SelectStreams, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] InstantRateSyncTime, CustomUpstream, CustomDownstream, @@ -674,14 +673,14 @@ impl ToGlib for EventType { EventType::Tag => ffi::GST_EVENT_TAG, EventType::Buffersize => ffi::GST_EVENT_BUFFERSIZE, EventType::SinkMessage => ffi::GST_EVENT_SINK_MESSAGE, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] EventType::StreamGroupDone => ffi::GST_EVENT_STREAM_GROUP_DONE, EventType::Eos => ffi::GST_EVENT_EOS, EventType::Toc => ffi::GST_EVENT_TOC, EventType::Protection => ffi::GST_EVENT_PROTECTION, EventType::SegmentDone => ffi::GST_EVENT_SEGMENT_DONE, EventType::Gap => ffi::GST_EVENT_GAP, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] EventType::InstantRateChange => ffi::GST_EVENT_INSTANT_RATE_CHANGE, EventType::Qos => ffi::GST_EVENT_QOS, EventType::Seek => ffi::GST_EVENT_SEEK, @@ -690,9 +689,9 @@ impl ToGlib for EventType { EventType::Step => ffi::GST_EVENT_STEP, EventType::Reconfigure => ffi::GST_EVENT_RECONFIGURE, EventType::TocSelect => ffi::GST_EVENT_TOC_SELECT, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] EventType::SelectStreams => ffi::GST_EVENT_SELECT_STREAMS, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] EventType::InstantRateSyncTime => ffi::GST_EVENT_INSTANT_RATE_SYNC_TIME, EventType::CustomUpstream => ffi::GST_EVENT_CUSTOM_UPSTREAM, EventType::CustomDownstream => ffi::GST_EVENT_CUSTOM_DOWNSTREAM, @@ -720,14 +719,14 @@ impl FromGlib for EventType { 20510 => EventType::Tag, 23054 => EventType::Buffersize, 25630 => EventType::SinkMessage, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] 26894 => EventType::StreamGroupDone, 28174 => EventType::Eos, 30750 => EventType::Toc, 33310 => EventType::Protection, 38406 => EventType::SegmentDone, 40966 => EventType::Gap, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 46090 => EventType::InstantRateChange, 48641 => EventType::Qos, 51201 => EventType::Seek, @@ -736,9 +735,9 @@ impl FromGlib for EventType { 58881 => EventType::Step, 61441 => EventType::Reconfigure, 64001 => EventType::TocSelect, - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_10", feature = "dox"))] 66561 => EventType::SelectStreams, - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg(any(feature = "v1_18", feature = "dox"))] 66817 => EventType::InstantRateSyncTime, 69121 => EventType::CustomUpstream, 71686 => EventType::CustomDownstream, @@ -758,19 +757,19 @@ impl StaticType for EventType { } impl<'a> FromValueOptional<'a> for EventType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for EventType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for EventType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -850,19 +849,19 @@ impl StaticType for FlowReturn { } impl<'a> FromValueOptional<'a> for FlowReturn { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for FlowReturn { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for FlowReturn { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -921,19 +920,19 @@ impl StaticType for Format { } impl<'a> FromValueOptional<'a> for Format { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for Format { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for Format { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1020,19 +1019,19 @@ impl StaticType for LibraryError { } impl<'a> FromValueOptional<'a> for LibraryError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for LibraryError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for LibraryError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1081,19 +1080,19 @@ impl StaticType for PadDirection { } impl<'a> FromValueOptional<'a> for PadDirection { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadDirection { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PadDirection { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1155,19 +1154,19 @@ impl StaticType for PadLinkReturn { } impl<'a> FromValueOptional<'a> for PadLinkReturn { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadLinkReturn { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PadLinkReturn { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1216,19 +1215,19 @@ impl StaticType for PadMode { } impl<'a> FromValueOptional<'a> for PadMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PadMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1277,19 +1276,19 @@ impl StaticType for PadPresence { } impl<'a> FromValueOptional<'a> for PadPresence { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadPresence { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PadPresence { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1344,19 +1343,19 @@ impl StaticType for PadProbeReturn { } impl<'a> FromValueOptional<'a> for PadProbeReturn { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadProbeReturn { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PadProbeReturn { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1447,19 +1446,19 @@ impl StaticType for ParseError { } impl<'a> FromValueOptional<'a> for ParseError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ParseError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for ParseError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1530,19 +1529,19 @@ impl StaticType for PluginError { } impl<'a> FromValueOptional<'a> for PluginError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PluginError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for PluginError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1597,25 +1596,25 @@ impl StaticType for ProgressType { } impl<'a> FromValueOptional<'a> for ProgressType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ProgressType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for ProgressType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum PromiseResult { @@ -1627,8 +1626,8 @@ pub enum PromiseResult { __Unknown(i32), } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(hidden)] impl ToGlib for PromiseResult { type GlibType = ffi::GstPromiseResult; @@ -1644,8 +1643,8 @@ impl ToGlib for PromiseResult { } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(hidden)] impl FromGlib for PromiseResult { fn from_glib(value: ffi::GstPromiseResult) -> Self { @@ -1660,34 +1659,34 @@ impl FromGlib for PromiseResult { } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl StaticType for PromiseResult { fn static_type() -> Type { unsafe { from_glib(ffi::gst_promise_result_get_type()) } } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl<'a> FromValueOptional<'a> for PromiseResult { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl<'a> FromValue<'a> for PromiseResult { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl SetValue for PromiseResult { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1736,19 +1735,19 @@ impl StaticType for QOSType { } impl<'a> FromValueOptional<'a> for QOSType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for QOSType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for QOSType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1800,19 +1799,19 @@ impl StaticType for Rank { } impl<'a> FromValueOptional<'a> for Rank { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for Rank { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for Rank { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1935,19 +1934,19 @@ impl StaticType for ResourceError { } impl<'a> FromValueOptional<'a> for ResourceError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ResourceError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for ResourceError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1996,19 +1995,19 @@ impl StaticType for SeekType { } impl<'a> FromValueOptional<'a> for SeekType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for SeekType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for SeekType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2063,19 +2062,19 @@ impl StaticType for State { } impl<'a> FromValueOptional<'a> for State { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for State { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for State { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2145,19 +2144,19 @@ impl StaticType for StateChange { } impl<'a> FromValueOptional<'a> for StateChange { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for StateChange { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for StateChange { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2210,19 +2209,19 @@ impl StaticType for StateChangeReturn { } impl<'a> FromValueOptional<'a> for StateChangeReturn { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for StateChangeReturn { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for StateChangeReturn { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2337,19 +2336,19 @@ impl StaticType for StreamError { } impl<'a> FromValueOptional<'a> for StreamError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for StreamError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for StreamError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2410,19 +2409,19 @@ impl StaticType for StreamStatusType { } impl<'a> FromValueOptional<'a> for StreamStatusType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for StreamStatusType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for StreamStatusType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2468,19 +2467,19 @@ impl StaticType for StructureChangeType { } impl<'a> FromValueOptional<'a> for StructureChangeType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for StructureChangeType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for StructureChangeType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2535,19 +2534,19 @@ impl StaticType for TagFlag { } impl<'a> FromValueOptional<'a> for TagFlag { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TagFlag { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TagFlag { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2611,19 +2610,19 @@ impl StaticType for TagMergeMode { } impl<'a> FromValueOptional<'a> for TagMergeMode { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TagMergeMode { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TagMergeMode { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2670,19 +2669,19 @@ impl StaticType for TagScope { } impl<'a> FromValueOptional<'a> for TagScope { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TagScope { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TagScope { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2731,19 +2730,19 @@ impl StaticType for TaskState { } impl<'a> FromValueOptional<'a> for TaskState { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TaskState { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TaskState { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2805,19 +2804,19 @@ impl StaticType for TocEntryType { } impl<'a> FromValueOptional<'a> for TocEntryType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TocEntryType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TocEntryType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2870,19 +2869,19 @@ impl StaticType for TocLoopType { } impl<'a> FromValueOptional<'a> for TocLoopType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TocLoopType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TocLoopType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2929,19 +2928,19 @@ impl StaticType for TocScope { } impl<'a> FromValueOptional<'a> for TocScope { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TocScope { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TocScope { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -2999,19 +2998,19 @@ impl StaticType for TypeFindProbability { } impl<'a> FromValueOptional<'a> for TypeFindProbability { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for TypeFindProbability { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for TypeFindProbability { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -3086,19 +3085,19 @@ impl StaticType for URIError { } impl<'a> FromValueOptional<'a> for URIError { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for URIError { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for URIError { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } @@ -3147,19 +3146,19 @@ impl StaticType for URIType { } impl<'a> FromValueOptional<'a> for URIType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for URIType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } impl SetValue for URIType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index 7cd996b71..3f659855b 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -7,15 +7,14 @@ use glib::translate::*; use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; -use glib::value::Value; use glib::StaticType; use glib::Type; bitflags! { pub struct BinFlags: u32 { const NO_RESYNC = 16384; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] const STREAMS_AWARE = 32768; } } @@ -44,19 +43,19 @@ impl StaticType for BinFlags { } impl<'a> FromValueOptional<'a> for BinFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for BinFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for BinFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -96,19 +95,19 @@ impl StaticType for BufferCopyFlags { } impl<'a> FromValueOptional<'a> for BufferCopyFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for BufferCopyFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for BufferCopyFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -128,8 +127,8 @@ bitflags! { const DELTA_UNIT = 8192; const TAG_MEMORY = 16384; const SYNC_AFTER = 32768; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] const NON_DROPPABLE = 65536; } } @@ -158,19 +157,19 @@ impl StaticType for BufferFlags { } impl<'a> FromValueOptional<'a> for BufferFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for BufferFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for BufferFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -207,19 +206,19 @@ impl StaticType for BufferPoolAcquireFlags { } impl<'a> FromValueOptional<'a> for BufferPoolAcquireFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for BufferPoolAcquireFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for BufferPoolAcquireFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -260,19 +259,19 @@ impl StaticType for ClockFlags { } impl<'a> FromValueOptional<'a> for ClockFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ClockFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for ClockFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -324,19 +323,19 @@ impl StaticType for DebugColorFlags { } impl<'a> FromValueOptional<'a> for DebugColorFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for DebugColorFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for DebugColorFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -377,19 +376,19 @@ impl StaticType for DebugGraphDetails { } impl<'a> FromValueOptional<'a> for DebugGraphDetails { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for DebugGraphDetails { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for DebugGraphDetails { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -429,19 +428,19 @@ impl StaticType for ElementFlags { } impl<'a> FromValueOptional<'a> for ElementFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ElementFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for ElementFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -481,27 +480,27 @@ impl StaticType for MemoryFlags { } impl<'a> FromValueOptional<'a> for MemoryFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for MemoryFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for MemoryFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } bitflags! { pub struct ObjectFlags: u32 { - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] const MAY_BE_LEAKED = 1; } } @@ -530,19 +529,19 @@ impl StaticType for ObjectFlags { } impl<'a> FromValueOptional<'a> for ObjectFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ObjectFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for ObjectFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -589,19 +588,19 @@ impl StaticType for PadFlags { } impl<'a> FromValueOptional<'a> for PadFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for PadFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -640,19 +639,19 @@ impl StaticType for PadLinkCheck { } impl<'a> FromValueOptional<'a> for PadLinkCheck { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadLinkCheck { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for PadLinkCheck { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -707,19 +706,19 @@ impl StaticType for PadProbeType { } impl<'a> FromValueOptional<'a> for PadProbeType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PadProbeType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for PadProbeType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -728,8 +727,8 @@ bitflags! { pub struct ParseFlags: u32 { const FATAL_ERRORS = 1; const NO_SINGLE_ELEMENT_BINS = 2; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] const PLACE_IN_BIN = 4; } } @@ -758,19 +757,19 @@ impl StaticType for ParseFlags { } impl<'a> FromValueOptional<'a> for ParseFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for ParseFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for ParseFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -805,33 +804,33 @@ impl StaticType for PipelineFlags { } impl<'a> FromValueOptional<'a> for PipelineFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PipelineFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for PipelineFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] bitflags! { pub struct PluginAPIFlags: u32 { const MEMBERS = 1; } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for PluginAPIFlags { type GlibType = ffi::GstPluginAPIFlags; @@ -841,8 +840,8 @@ impl ToGlib for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for PluginAPIFlags { fn from_glib(value: ffi::GstPluginAPIFlags) -> PluginAPIFlags { @@ -851,34 +850,34 @@ impl FromGlib for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for PluginAPIFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_plugin_api_flags_get_type()) } } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for PluginAPIFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for PluginAPIFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for PluginAPIFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -917,19 +916,19 @@ impl StaticType for PluginDependencyFlags { } impl<'a> FromValueOptional<'a> for PluginDependencyFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PluginDependencyFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for PluginDependencyFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -965,19 +964,19 @@ impl StaticType for PluginFlags { } impl<'a> FromValueOptional<'a> for PluginFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for PluginFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for PluginFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1014,19 +1013,19 @@ impl StaticType for SchedulingFlags { } impl<'a> FromValueOptional<'a> for SchedulingFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for SchedulingFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for SchedulingFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1044,11 +1043,11 @@ bitflags! { const SNAP_NEAREST = 96; const TRICKMODE_KEY_UNITS = 128; const TRICKMODE_NO_AUDIO = 256; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const TRICKMODE_FORWARD_PREDICTED = 512; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const INSTANT_RATE_CHANGE = 1024; } } @@ -1077,19 +1076,19 @@ impl StaticType for SeekFlags { } impl<'a> FromValueOptional<'a> for SeekFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for SeekFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for SeekFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1102,8 +1101,8 @@ bitflags! { const SKIP = 16; const SEGMENT = 8; const TRICKMODE_KEY_UNITS = 128; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const TRICKMODE_FORWARD_PREDICTED = 512; const TRICKMODE_NO_AUDIO = 256; } @@ -1133,33 +1132,33 @@ impl StaticType for SegmentFlags { } impl<'a> FromValueOptional<'a> for SegmentFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for SegmentFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for SegmentFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] bitflags! { pub struct StackTraceFlags: u32 { const FULL = 1; } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl ToGlib for StackTraceFlags { type GlibType = ffi::GstStackTraceFlags; @@ -1169,8 +1168,8 @@ impl ToGlib for StackTraceFlags { } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for StackTraceFlags { fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags { @@ -1179,34 +1178,34 @@ impl FromGlib for StackTraceFlags { } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl StaticType for StackTraceFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_stack_trace_flags_get_type()) } } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValueOptional<'a> for StackTraceFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValue<'a> for StackTraceFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl SetValue for StackTraceFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } @@ -1243,25 +1242,25 @@ impl StaticType for StreamFlags { } impl<'a> FromValueOptional<'a> for StreamFlags { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } impl<'a> FromValue<'a> for StreamFlags { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } impl SetValue for StreamFlags { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] bitflags! { pub struct StreamType: u32 { const UNKNOWN = 1; @@ -1272,8 +1271,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for StreamType { type GlibType = ffi::GstStreamType; @@ -1283,8 +1282,8 @@ impl ToGlib for StreamType { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for StreamType { fn from_glib(value: ffi::GstStreamType) -> StreamType { @@ -1293,34 +1292,34 @@ impl FromGlib for StreamType { } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl StaticType for StreamType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_stream_type_get_type()) } } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValueOptional<'a> for StreamType { - unsafe fn from_value_optional(value: &Value) -> Option { + unsafe fn from_value_optional(value: &glib::Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValue<'a> for StreamType { - unsafe fn from_value(value: &Value) -> Self { + unsafe fn from_value(value: &glib::Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl SetValue for StreamType { - unsafe fn set_value(value: &mut Value, this: &Self) { + unsafe fn set_value(value: &mut glib::Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) } } diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index 9b0f4815a..409b6a878 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -7,19 +7,19 @@ use crate::ClockTime; use crate::DebugGraphDetails; use crate::DebugLevel; use crate::Element; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use crate::PluginAPIFlags; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use crate::StackTraceFlags; use glib::object::IsA; use glib::translate::*; use std::mem; use std::ptr; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn debug_add_ring_buffer_logger(max_size_per_thread: u32, thread_timeout: u32) { skip_assert_initialized!(); unsafe { @@ -72,8 +72,8 @@ pub fn debug_get_default_threshold() -> DebugLevel { unsafe { from_glib(ffi::gst_debug_get_default_threshold()) } } -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Result { skip_assert_initialized!(); unsafe { @@ -99,8 +99,8 @@ pub fn debug_print_stack_trace() { } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn debug_remove_ring_buffer_logger() { skip_assert_initialized!(); unsafe { @@ -108,8 +108,8 @@ pub fn debug_remove_ring_buffer_logger() { } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn debug_ring_buffer_logger_get_logs() -> Vec { skip_assert_initialized!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_debug_ring_buffer_logger_get_logs()) } @@ -157,8 +157,8 @@ pub fn debug_unset_threshold_for_name(name: &str) { } } -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_main_executable_path() -> Result { assert_initialized_main_thread!(); unsafe { @@ -213,8 +213,8 @@ pub fn parse_launchv(argv: &[&str]) -> Result { } } -//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +//#[cfg(any(feature = "v1_18", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //pub fn tracing_get_active_tracers() -> /*Ignored*/Vec { // unsafe { TODO: call ffi:gst_tracing_get_active_tracers() } //} @@ -223,8 +223,8 @@ pub fn parse_launchv(argv: &[&str]) -> Result { // unsafe { TODO: call ffi:gst_tracing_register_hook() } //} -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn type_mark_as_plugin_api(type_: glib::types::Type, flags: PluginAPIFlags) { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index 1982ba36b..902b0d8dc 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -92,18 +92,18 @@ pub use self::proxy_pad::{ProxyPad, NONE_PROXY_PAD}; mod registry; pub use self::registry::Registry; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] mod stream; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::stream::Stream; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] mod stream_collection; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::stream_collection::StreamCollection; mod system_clock; @@ -149,8 +149,8 @@ pub use self::enums::PadProbeReturn; pub use self::enums::ParseError; pub use self::enums::PluginError; pub use self::enums::ProgressType; -#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::enums::PromiseResult; pub use self::enums::QOSType; pub use self::enums::Rank; @@ -189,20 +189,20 @@ pub use self::flags::PadLinkCheck; pub use self::flags::PadProbeType; pub use self::flags::ParseFlags; pub use self::flags::PipelineFlags; -#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::flags::PluginAPIFlags; pub use self::flags::PluginDependencyFlags; pub use self::flags::PluginFlags; pub use self::flags::SchedulingFlags; pub use self::flags::SeekFlags; pub use self::flags::SegmentFlags; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::flags::StackTraceFlags; pub use self::flags::StreamFlags; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::flags::StreamType; mod alias; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 38847b08b..69fc52771 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -8,16 +8,16 @@ use crate::Event; use crate::EventType; use crate::Object; use crate::PadDirection; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::PadLinkCheck; use crate::PadMode; use crate::PadTemplate; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::Stream; -#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use crate::TaskState; use glib::object::Cast; use glib::object::IsA; @@ -25,7 +25,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -79,20 +78,20 @@ pub trait PadExt: 'static { fn get_peer(&self) -> Option; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_internal_link(&self) -> Option; fn get_sticky_event(&self, event_type: EventType, idx: u32) -> Option; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn get_stream(&self) -> Option; fn get_stream_id(&self) -> Option; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_task_state(&self) -> TaskState; fn has_current_caps(&self) -> bool; @@ -109,12 +108,12 @@ pub trait PadExt: 'static { //fn iterate_internal_links_default>(&self, parent: Option<&P>) -> /*Ignored*/Option; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting>(&self, sink: &P) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting_full>( &self, sink: &P, @@ -296,8 +295,8 @@ impl> PadExt for O { unsafe { from_glib_full(ffi::gst_pad_get_peer(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_internal_link(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_single_internal_link( @@ -316,8 +315,8 @@ impl> PadExt for O { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn get_stream(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_stream(self.as_ref().to_glib_none().0)) } } @@ -326,8 +325,8 @@ impl> PadExt for O { unsafe { from_glib_full(ffi::gst_pad_get_stream_id(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_task_state(&self) -> TaskState { unsafe { from_glib(ffi::gst_pad_get_task_state(self.as_ref().to_glib_none().0)) } } @@ -364,8 +363,8 @@ impl> PadExt for O { // unsafe { TODO: call ffi:gst_pad_iterate_internal_links_default() } //} - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting>(&self, sink: &P) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -378,8 +377,8 @@ impl> PadExt for O { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting_full>( &self, sink: &P, @@ -504,7 +503,7 @@ impl> PadExt for O { fn get_property_caps(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"caps\0".as_ptr() as *const _, diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 3853c4bff..fa5cf2bbf 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -13,7 +13,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -44,8 +43,8 @@ impl PadTemplate { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn with_gtype( name_template: &str, direction: PadDirection, @@ -70,8 +69,8 @@ impl PadTemplate { unsafe { from_glib_full(ffi::gst_pad_template_get_caps(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_documentation_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_template_get_documentation_caps( @@ -86,8 +85,8 @@ impl PadTemplate { } } - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn set_documentation_caps(&self, caps: &Caps) { unsafe { ffi::gst_pad_template_set_documentation_caps( @@ -99,7 +98,7 @@ impl PadTemplate { pub fn get_property_direction(&self) -> PadDirection { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"direction\0".as_ptr() as *const _, @@ -112,11 +111,12 @@ impl PadTemplate { } } - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_property_gtype(&self) -> glib::types::Type { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = + glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"gtype\0".as_ptr() as *const _, @@ -131,7 +131,7 @@ impl PadTemplate { pub fn get_property_name_template(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"name-template\0".as_ptr() as *const _, @@ -145,7 +145,7 @@ impl PadTemplate { pub fn get_property_presence(&self) -> PadPresence { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, b"presence\0".as_ptr() as *const _, diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 5342d36e4..1f9cfb4dc 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -2,34 +2,34 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::Caps; use crate::Object; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::StreamFlags; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::StreamType; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::TagList; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::object::ObjectType as ObjectType_; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::signal::connect_raw; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::signal::SignalHandlerId; use glib::translate::*; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use std::mem::transmute; glib::glib_wrapper! { @@ -41,70 +41,70 @@ glib::glib_wrapper! { } impl Stream { - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_caps(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_stream_flags(&self) -> StreamFlags { unsafe { from_glib(ffi::gst_stream_get_stream_flags(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_stream_type(&self) -> StreamType { unsafe { from_glib(ffi::gst_stream_get_stream_type(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_tags(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_tags(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_caps(&self, caps: Option<&Caps>) { unsafe { ffi::gst_stream_set_caps(self.to_glib_none().0, caps.to_glib_none().0); } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_stream_flags(&self, flags: StreamFlags) { unsafe { ffi::gst_stream_set_stream_flags(self.to_glib_none().0, flags.to_glib()); } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_stream_type(&self, stream_type: StreamType) { unsafe { ffi::gst_stream_set_stream_type(self.to_glib_none().0, stream_type.to_glib()); } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_tags(&self, tags: Option<&TagList>) { unsafe { ffi::gst_stream_set_tags(self.to_glib_none().0, tags.to_glib_none().0); } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_caps_notify( &self, f: F, @@ -130,8 +130,8 @@ impl Stream { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_stream_flags_notify( &self, f: F, @@ -159,8 +159,8 @@ impl Stream { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_stream_type_notify( &self, f: F, @@ -188,8 +188,8 @@ impl Stream { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_tags_notify( &self, f: F, diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index 02f4c27ef..7c6b2bbf3 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -3,8 +3,8 @@ // DO NOT EDIT use crate::Object; -#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] -#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use crate::Stream; use glib::translate::*; @@ -17,14 +17,14 @@ glib::glib_wrapper! { } impl StreamCollection { - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_size(&self) -> u32 { unsafe { ffi::gst_stream_collection_get_size(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_stream(&self, index: u32) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_stream( @@ -34,8 +34,8 @@ impl StreamCollection { } } - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_upstream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_upstream_id( diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index 42cf4ddbe..4685b3016 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -11,7 +11,6 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; -use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -56,7 +55,7 @@ pub trait SystemClockExt: 'static { impl> SystemClockExt for O { fn get_property_clock_type(&self) -> ClockType { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"clock-type\0".as_ptr() as *const _, @@ -74,7 +73,7 @@ impl> SystemClockExt for O { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, b"clock-type\0".as_ptr() as *const _, - Value::from(&clock_type).to_glib_none().0, + glib::Value::from(&clock_type).to_glib_none().0, ); } } diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 94b4315ac..325fe7cef 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b16d610) -from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +Generated by gir (https://github.com/gtk-rs/gir @ e941700) +from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) diff --git a/gstreamer/sys/Cargo.toml b/gstreamer/sys/Cargo.toml index f25dedc79..ce9be950c 100644 --- a/gstreamer/sys/Cargo.toml +++ b/gstreamer/sys/Cargo.toml @@ -27,6 +27,7 @@ v1_14 = ["v1_12_1"] v1_16 = ["v1_14"] v1_18 = ["v1_16"] v1_12_1 = ["v1_12"] +dox = [] [lib] name = "gstreamer_sys" @@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = [] +features = ["dox"] [package.metadata.system-deps.gstreamer_1_0] name = "gstreamer-1.0" version = "1.8" diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index f3f73eb6b..13a010cb8 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] use std::process; -#[cfg(all(not(doctest), doc))] +#[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(any(not(doc), doctest))] +#[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index 736afb5c6..d070e92a8 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] +#![cfg_attr(feature = "dox", feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -3865,8 +3865,8 @@ extern "C" { //========================================================================= // GstPromiseResult //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_result_get_type() -> GType; //========================================================================= @@ -3912,8 +3912,8 @@ extern "C" { // GstStateChange //========================================================================= pub fn gst_state_change_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_state_change_get_name(transition: GstStateChange) -> *const c_char; //========================================================================= @@ -4124,8 +4124,8 @@ extern "C" { //========================================================================= // GstPluginAPIFlags //========================================================================= - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_plugin_api_flags_get_type() -> GType; //========================================================================= @@ -4161,8 +4161,8 @@ extern "C" { //========================================================================= // GstStackTraceFlags //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_stack_trace_flags_get_type() -> GType; //========================================================================= @@ -4173,11 +4173,11 @@ extern "C" { //========================================================================= // GstStreamType //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_type_get_type() -> GType; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_type_get_name(stype: GstStreamType) -> *const c_char; //========================================================================= @@ -4218,8 +4218,8 @@ extern "C" { params: *mut GstAllocationParams, ) -> *mut GstBuffer; pub fn gst_buffer_new_wrapped(data: gpointer, size: size_t) -> *mut GstBuffer; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_new_wrapped_bytes(bytes: *mut glib::GBytes) -> *mut GstBuffer; pub fn gst_buffer_new_wrapped_full( flags: GstMemoryFlags, @@ -4243,8 +4243,8 @@ extern "C" { buffer: *mut GstBuffer, info: *mut GstStructure, ) -> *mut GstProtectionMeta; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_add_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, @@ -4259,8 +4259,8 @@ extern "C" { offset: ssize_t, size: ssize_t, ) -> *mut GstBuffer; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_copy(buf: *const GstBuffer) -> *mut GstBuffer; pub fn gst_buffer_copy_deep(buf: *const GstBuffer) -> *mut GstBuffer; pub fn gst_buffer_copy_into( @@ -4309,8 +4309,8 @@ extern "C" { user_data: gpointer, ) -> gboolean; pub fn gst_buffer_get_all_memory(buffer: *mut GstBuffer) -> *mut GstMemory; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_get_flags(buffer: *mut GstBuffer) -> GstBufferFlags; pub fn gst_buffer_get_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory; pub fn gst_buffer_get_memory_range( @@ -4319,11 +4319,11 @@ extern "C" { length: c_int, ) -> *mut GstMemory; pub fn gst_buffer_get_meta(buffer: *mut GstBuffer, api: GType) -> *mut GstMeta; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_get_n_meta(buffer: *mut GstBuffer, api_type: GType) -> c_uint; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_get_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, @@ -4341,8 +4341,8 @@ extern "C" { offset: *mut size_t, maxsize: *mut size_t, ) -> size_t; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_has_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; pub fn gst_buffer_insert_memory(buffer: *mut GstBuffer, idx: c_int, mem: *mut GstMemory); pub fn gst_buffer_is_all_memory_writable(buffer: *mut GstBuffer) -> gboolean; @@ -4352,8 +4352,8 @@ extern "C" { length: c_int, ) -> gboolean; pub fn gst_buffer_iterate_meta(buffer: *mut GstBuffer, state: *mut gpointer) -> *mut GstMeta; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_buffer_iterate_meta_filtered( buffer: *mut GstBuffer, state: *mut gpointer, @@ -4386,8 +4386,8 @@ extern "C" { pub fn gst_buffer_n_memory(buffer: *mut GstBuffer) -> c_uint; pub fn gst_buffer_peek_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory; pub fn gst_buffer_prepend_memory(buffer: *mut GstBuffer, mem: *mut GstMemory); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_ref(buf: *mut GstBuffer) -> *mut GstBuffer; pub fn gst_buffer_remove_all_memory(buffer: *mut GstBuffer); pub fn gst_buffer_remove_memory(buffer: *mut GstBuffer, idx: c_uint); @@ -4409,20 +4409,20 @@ extern "C" { offset: ssize_t, size: ssize_t, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_set_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; pub fn gst_buffer_set_size(buffer: *mut GstBuffer, size: ssize_t); pub fn gst_buffer_unmap(buffer: *mut GstBuffer, info: *mut GstMapInfo); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_unref(buf: *mut GstBuffer); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_unset_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; pub fn gst_buffer_get_max_memory() -> c_uint; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_replace(obuf: *mut *mut GstBuffer, nbuf: *mut GstBuffer) -> gboolean; //========================================================================= @@ -4431,11 +4431,11 @@ extern "C" { pub fn gst_buffer_list_get_type() -> GType; pub fn gst_buffer_list_new() -> *mut GstBufferList; pub fn gst_buffer_list_new_sized(size: c_uint) -> *mut GstBufferList; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_list_calculate_size(list: *mut GstBufferList) -> size_t; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_list_copy(list: *const GstBufferList) -> *mut GstBufferList; pub fn gst_buffer_list_copy_deep(list: *const GstBufferList) -> *mut GstBufferList; pub fn gst_buffer_list_foreach( @@ -4444,17 +4444,17 @@ extern "C" { user_data: gpointer, ) -> gboolean; pub fn gst_buffer_list_get(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_list_get_writable(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer; pub fn gst_buffer_list_insert(list: *mut GstBufferList, idx: c_int, buffer: *mut GstBuffer); pub fn gst_buffer_list_length(list: *mut GstBufferList) -> c_uint; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_list_ref(list: *mut GstBufferList) -> *mut GstBufferList; pub fn gst_buffer_list_remove(list: *mut GstBufferList, idx: c_uint, length: c_uint); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_list_unref(list: *mut GstBufferList); //========================================================================= @@ -4479,11 +4479,11 @@ extern "C" { features: *mut GstCapsFeatures, ); pub fn gst_caps_can_intersect(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_caps_copy(caps: *const GstCaps) -> *mut GstCaps; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_caps_copy_nth(caps: *const GstCaps, nth: c_uint) -> *mut GstCaps; pub fn gst_caps_filter_and_map_in_place( caps: *mut GstCaps, @@ -4538,13 +4538,13 @@ extern "C" { features: *mut GstCapsFeatures, ) -> *mut GstCaps; pub fn gst_caps_normalize(caps: *mut GstCaps) -> *mut GstCaps; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_ref(caps: *mut GstCaps) -> *mut GstCaps; pub fn gst_caps_remove_structure(caps: *mut GstCaps, idx: c_uint); pub fn gst_caps_set_features(caps: *mut GstCaps, index: c_uint, features: *mut GstCapsFeatures); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_caps_set_features_simple(caps: *mut GstCaps, features: *mut GstCapsFeatures); pub fn gst_caps_set_simple(caps: *mut GstCaps, field: *const c_char, ...); //pub fn gst_caps_set_simple_valist(caps: *mut GstCaps, field: *const c_char, varargs: /*Unimplemented*/va_list); @@ -4558,15 +4558,15 @@ extern "C" { pub fn gst_caps_subtract(minuend: *mut GstCaps, subtrahend: *mut GstCaps) -> *mut GstCaps; pub fn gst_caps_to_string(caps: *const GstCaps) -> *mut c_char; pub fn gst_caps_truncate(caps: *mut GstCaps) -> *mut GstCaps; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_unref(caps: *mut GstCaps); pub fn gst_caps_from_string(string: *const c_char) -> *mut GstCaps; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_replace(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_take(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean; //========================================================================= @@ -4641,12 +4641,12 @@ extern "C" { pub fn gst_date_time_new_from_g_date_time(dt: *mut glib::GDateTime) -> *mut GstDateTime; pub fn gst_date_time_new_from_iso8601_string(string: *const c_char) -> *mut GstDateTime; pub fn gst_date_time_new_from_unix_epoch_local_time(secs: i64) -> *mut GstDateTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_date_time_new_from_unix_epoch_local_time_usecs(usecs: i64) -> *mut GstDateTime; pub fn gst_date_time_new_from_unix_epoch_utc(secs: i64) -> *mut GstDateTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_date_time_new_from_unix_epoch_utc_usecs(usecs: i64) -> *mut GstDateTime; pub fn gst_date_time_new_local_time( year: c_int, @@ -4748,8 +4748,8 @@ extern "C" { klass: *mut GstElementClass, static_templ: *mut GstStaticPadTemplate, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_class_add_static_pad_template_with_gtype( klass: *mut GstElementClass, static_templ: *mut GstStaticPadTemplate, @@ -4798,14 +4798,14 @@ extern "C" { pub fn gst_event_new_flush_start() -> *mut GstEvent; pub fn gst_event_new_flush_stop(reset_time: gboolean) -> *mut GstEvent; pub fn gst_event_new_gap(timestamp: GstClockTime, duration: GstClockTime) -> *mut GstEvent; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_new_instant_rate_change( rate_multiplier: c_double, new_flags: GstSegmentFlags, ) -> *mut GstEvent; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_new_instant_rate_sync_time( rate_multiplier: c_double, running_time: GstClockTime, @@ -4836,8 +4836,8 @@ extern "C" { ) -> *mut GstEvent; pub fn gst_event_new_segment(segment: *const GstSegment) -> *mut GstEvent; pub fn gst_event_new_segment_done(format: GstFormat, position: i64) -> *mut GstEvent; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_new_select_streams(streams: *mut glib::GList) -> *mut GstEvent; pub fn gst_event_new_sink_message(name: *const c_char, msg: *mut GstMessage) -> *mut GstEvent; pub fn gst_event_new_step( @@ -4847,26 +4847,26 @@ extern "C" { flush: gboolean, intermediate: gboolean, ) -> *mut GstEvent; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_new_stream_collection(collection: *mut GstStreamCollection) -> *mut GstEvent; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_new_stream_group_done(group_id: c_uint) -> *mut GstEvent; pub fn gst_event_new_stream_start(stream_id: *const c_char) -> *mut GstEvent; pub fn gst_event_new_tag(taglist: *mut GstTagList) -> *mut GstEvent; pub fn gst_event_new_toc(toc: *mut GstToc, updated: gboolean) -> *mut GstEvent; pub fn gst_event_new_toc_select(uid: *const c_char) -> *mut GstEvent; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_event_copy(event: *const GstEvent) -> *mut GstEvent; pub fn gst_event_copy_segment(event: *mut GstEvent, segment: *mut GstSegment); pub fn gst_event_get_running_time_offset(event: *mut GstEvent) -> i64; pub fn gst_event_get_seqnum(event: *mut GstEvent) -> u32; pub fn gst_event_get_structure(event: *mut GstEvent) -> *const GstStructure; pub fn gst_event_has_name(event: *mut GstEvent, name: *const c_char) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_has_name_id(event: *mut GstEvent, name: glib::GQuark) -> gboolean; pub fn gst_event_parse_buffer_size( event: *mut GstEvent, @@ -4883,15 +4883,15 @@ extern "C" { duration: *mut GstClockTime, ); pub fn gst_event_parse_group_id(event: *mut GstEvent, group_id: *mut c_uint) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_parse_instant_rate_change( event: *mut GstEvent, rate_multiplier: *mut c_double, new_flags: *mut GstSegmentFlags, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_parse_instant_rate_sync_time( event: *mut GstEvent, rate_multiplier: *mut c_double, @@ -4922,8 +4922,8 @@ extern "C" { stop_type: *mut GstSeekType, stop: *mut i64, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_event_parse_seek_trickmode_interval( event: *mut GstEvent, interval: *mut GstClockTime, @@ -4934,8 +4934,8 @@ extern "C" { format: *mut GstFormat, position: *mut i64, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_select_streams(event: *mut GstEvent, streams: *mut *mut glib::GList); pub fn gst_event_parse_sink_message(event: *mut GstEvent, msg: *mut *mut GstMessage); pub fn gst_event_parse_step( @@ -4946,48 +4946,48 @@ extern "C" { flush: *mut gboolean, intermediate: *mut gboolean, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_stream(event: *mut GstEvent, stream: *mut *mut GstStream); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_stream_collection( event: *mut GstEvent, collection: *mut *mut GstStreamCollection, ); pub fn gst_event_parse_stream_flags(event: *mut GstEvent, flags: *mut GstStreamFlags); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_stream_group_done(event: *mut GstEvent, group_id: *mut c_uint); pub fn gst_event_parse_stream_start(event: *mut GstEvent, stream_id: *mut *const c_char); pub fn gst_event_parse_tag(event: *mut GstEvent, taglist: *mut *mut GstTagList); pub fn gst_event_parse_toc(event: *mut GstEvent, toc: *mut *mut GstToc, updated: *mut gboolean); pub fn gst_event_parse_toc_select(event: *mut GstEvent, uid: *mut *mut c_char); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_ref(event: *mut GstEvent) -> *mut GstEvent; pub fn gst_event_set_group_id(event: *mut GstEvent, group_id: c_uint); pub fn gst_event_set_running_time_offset(event: *mut GstEvent, offset: i64); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_event_set_seek_trickmode_interval(event: *mut GstEvent, interval: GstClockTime); pub fn gst_event_set_seqnum(event: *mut GstEvent, seqnum: u32); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_set_stream(event: *mut GstEvent, stream: *mut GstStream); pub fn gst_event_set_stream_flags(event: *mut GstEvent, flags: GstStreamFlags); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_unref(event: *mut GstEvent); pub fn gst_event_writable_structure(event: *mut GstEvent) -> *mut GstStructure; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_replace(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_steal(old_event: *mut *mut GstEvent) -> *mut GstEvent; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_take(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; //========================================================================= @@ -5091,14 +5091,14 @@ extern "C" { info: *mut GstMapInfo, flags: GstMapFlags, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_memory_ref(memory: *mut GstMemory) -> *mut GstMemory; pub fn gst_memory_resize(mem: *mut GstMemory, offset: ssize_t, size: size_t); pub fn gst_memory_share(mem: *mut GstMemory, offset: ssize_t, size: ssize_t) -> *mut GstMemory; pub fn gst_memory_unmap(mem: *mut GstMemory, info: *mut GstMapInfo); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_memory_unref(memory: *mut GstMemory); //========================================================================= @@ -5131,8 +5131,8 @@ extern "C" { src: *mut GstObject, device: *mut GstDevice, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_message_new_device_changed( src: *mut GstObject, device: *mut GstDevice, @@ -5153,8 +5153,8 @@ extern "C" { error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_error_with_details( src: *mut GstObject, error: *mut glib::GError, @@ -5170,16 +5170,16 @@ extern "C" { error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_info_with_details( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, details: *mut GstStructure, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_new_instant_rate_request( src: *mut GstObject, rate_multiplier: c_double, @@ -5196,8 +5196,8 @@ extern "C" { code: *const c_char, text: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_property_notify( src: *mut GstObject, property_name: *const c_char, @@ -5211,8 +5211,8 @@ extern "C" { timestamp: u64, duration: u64, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_redirect( src: *mut GstObject, location: *const c_char, @@ -5260,8 +5260,8 @@ extern "C" { flush: gboolean, intermediate: gboolean, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_stream_collection( src: *mut GstObject, collection: *mut GstStreamCollection, @@ -5272,8 +5272,8 @@ extern "C" { type_: GstStreamStatusType, owner: *mut GstElement, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_streams_selected( src: *mut GstObject, collection: *mut GstStreamCollection, @@ -5295,27 +5295,27 @@ extern "C" { error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_warning_with_details( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, details: *mut GstStructure, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_add_redirect_entry( message: *mut GstMessage, location: *const c_char, tag_list: *mut GstTagList, entry_struct: *const GstStructure, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_copy(msg: *const GstMessage) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_get_num_redirect_entries(message: *mut GstMessage) -> size_t; pub fn gst_message_get_seqnum(message: *mut GstMessage) -> u32; pub fn gst_message_get_stream_status_object(message: *mut GstMessage) @@ -5342,8 +5342,8 @@ extern "C" { context_type: *mut *const c_char, ) -> gboolean; pub fn gst_message_parse_device_added(message: *mut GstMessage, device: *mut *mut GstDevice); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_message_parse_device_changed( message: *mut GstMessage, device: *mut *mut GstDevice, @@ -5355,8 +5355,8 @@ extern "C" { gerror: *mut *mut glib::GError, debug: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_error_details( message: *mut GstMessage, structure: *mut *const GstStructure, @@ -5368,14 +5368,14 @@ extern "C" { gerror: *mut *mut glib::GError, debug: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_info_details( message: *mut GstMessage, structure: *mut *const GstStructure, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_parse_instant_rate_request( message: *mut GstMessage, rate_multiplier: *mut c_double, @@ -5387,8 +5387,8 @@ extern "C" { code: *mut *mut c_char, text: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_property_notify( message: *mut GstMessage, object: *mut *mut GstObject, @@ -5415,8 +5415,8 @@ extern "C" { proportion: *mut c_double, quality: *mut c_int, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_redirect_entry( message: *mut GstMessage, entry_index: size_t, @@ -5461,8 +5461,8 @@ extern "C" { flush: *mut gboolean, intermediate: *mut gboolean, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_stream_collection( message: *mut GstMessage, collection: *mut *mut GstStreamCollection, @@ -5472,8 +5472,8 @@ extern "C" { type_: *mut GstStreamStatusType, owner: *mut *mut GstElement, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_streams_selected( message: *mut GstMessage, collection: *mut *mut GstStreamCollection, @@ -5495,14 +5495,14 @@ extern "C" { gerror: *mut *mut glib::GError, debug: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_warning_details( message: *mut GstMessage, structure: *mut *const GstStructure, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_ref(msg: *mut GstMessage) -> *mut GstMessage; pub fn gst_message_set_buffering_stats( message: *mut GstMessage, @@ -5529,26 +5529,26 @@ extern "C" { message: *mut GstMessage, object: *const gobject::GValue, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_streams_selected_add(message: *mut GstMessage, stream: *mut GstStream); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_streams_selected_get_size(message: *mut GstMessage) -> c_uint; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_streams_selected_get_stream( message: *mut GstMessage, idx: c_uint, ) -> *mut GstStream; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_unref(msg: *mut GstMessage); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_message_writable_structure(message: *mut GstMessage) -> *mut GstStructure; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_replace( old_message: *mut *mut GstMessage, new_message: *mut GstMessage, @@ -5557,11 +5557,11 @@ extern "C" { //========================================================================= // GstMeta //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_meta_compare_seqnum(meta1: *const GstMeta, meta2: *const GstMeta) -> c_int; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_meta_get_seqnum(meta: *const GstMeta) -> u64; pub fn gst_meta_api_type_get_tags(api: GType) -> *const *const c_char; pub fn gst_meta_api_type_has_tag(api: GType, tag: glib::GQuark) -> gboolean; @@ -5579,8 +5579,8 @@ extern "C" { //========================================================================= // GstMiniObject //========================================================================= - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_mini_object_add_parent(object: *mut GstMiniObject, parent: *mut GstMiniObject); pub fn gst_mini_object_copy(mini_object: *const GstMiniObject) -> *mut GstMiniObject; pub fn gst_mini_object_get_qdata(object: *mut GstMiniObject, quark: glib::GQuark) -> gpointer; @@ -5596,8 +5596,8 @@ extern "C" { pub fn gst_mini_object_lock(object: *mut GstMiniObject, flags: GstLockFlags) -> gboolean; pub fn gst_mini_object_make_writable(mini_object: *mut GstMiniObject) -> *mut GstMiniObject; pub fn gst_mini_object_ref(mini_object: *mut GstMiniObject) -> *mut GstMiniObject; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_mini_object_remove_parent(object: *mut GstMiniObject, parent: *mut GstMiniObject); pub fn gst_mini_object_set_qdata( object: *mut GstMiniObject, @@ -5647,8 +5647,8 @@ extern "C" { //========================================================================= pub fn gst_parse_context_get_type() -> GType; pub fn gst_parse_context_new() -> *mut GstParseContext; - #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))] + #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_parse_context_copy(context: *const GstParseContext) -> *mut GstParseContext; pub fn gst_parse_context_free(context: *mut GstParseContext); pub fn gst_parse_context_get_missing_elements( @@ -5661,8 +5661,8 @@ extern "C" { pub fn gst_poll_add_fd(set: *mut GstPoll, fd: *mut GstPollFD) -> gboolean; pub fn gst_poll_fd_can_read(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; pub fn gst_poll_fd_can_write(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_poll_fd_ctl_pri(set: *mut GstPoll, fd: *mut GstPollFD, active: gboolean) -> gboolean; pub fn gst_poll_fd_ctl_read( @@ -5677,8 +5677,8 @@ extern "C" { ) -> gboolean; pub fn gst_poll_fd_has_closed(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; pub fn gst_poll_fd_has_error(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_poll_fd_has_pri(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; pub fn gst_poll_fd_ignored(set: *mut GstPoll, fd: *mut GstPollFD); pub fn gst_poll_free(set: *mut GstPoll); @@ -5701,33 +5701,33 @@ extern "C" { //========================================================================= // GstPromise //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_get_type() -> GType; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_new() -> *mut GstPromise; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_new_with_change_func( func: GstPromiseChangeFunc, user_data: gpointer, notify: glib::GDestroyNotify, ) -> *mut GstPromise; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_expire(promise: *mut GstPromise); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_get_reply(promise: *mut GstPromise) -> *const GstStructure; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_interrupt(promise: *mut GstPromise); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_reply(promise: *mut GstPromise, s: *mut GstStructure); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_wait(promise: *mut GstPromise) -> GstPromiseResult; //========================================================================= @@ -5741,8 +5741,8 @@ extern "C" { pub fn gst_query_get_type() -> GType; pub fn gst_query_new_accept_caps(caps: *mut GstCaps) -> *mut GstQuery; pub fn gst_query_new_allocation(caps: *mut GstCaps, need_pool: gboolean) -> *mut GstQuery; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_query_new_bitrate() -> *mut GstQuery; pub fn gst_query_new_buffering(format: GstFormat) -> *mut GstQuery; pub fn gst_query_new_caps(filter: *mut GstCaps) -> *mut GstQuery; @@ -5782,8 +5782,8 @@ extern "C" { ); pub fn gst_query_add_buffering_range(query: *mut GstQuery, start: i64, stop: i64) -> gboolean; pub fn gst_query_add_scheduling_mode(query: *mut GstQuery, mode: GstPadMode); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_query_copy(q: *const GstQuery) -> *mut GstQuery; pub fn gst_query_find_allocation_meta( query: *mut GstQuery, @@ -5809,8 +5809,8 @@ extern "C" { caps: *mut *mut GstCaps, need_pool: *mut gboolean, ); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_query_parse_bitrate(query: *mut GstQuery, nominal_bitrate: *mut c_uint); pub fn gst_query_parse_buffering_percent( query: *mut GstQuery, @@ -5916,8 +5916,8 @@ extern "C" { pub fn gst_query_remove_nth_allocation_param(query: *mut GstQuery, index: c_uint); pub fn gst_query_remove_nth_allocation_pool(query: *mut GstQuery, index: c_uint); pub fn gst_query_set_accept_caps_result(query: *mut GstQuery, result: gboolean); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_query_set_bitrate(query: *mut GstQuery, nominal_bitrate: c_uint); pub fn gst_query_set_buffering_percent(query: *mut GstQuery, busy: gboolean, percent: c_int); pub fn gst_query_set_buffering_range( @@ -5995,19 +5995,19 @@ extern "C" { pub fn gst_query_set_uri(query: *mut GstQuery, uri: *const c_char); pub fn gst_query_set_uri_redirection(query: *mut GstQuery, uri: *const c_char); pub fn gst_query_set_uri_redirection_permanent(query: *mut GstQuery, permanent: gboolean); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_query_unref(q: *mut GstQuery); pub fn gst_query_writable_structure(query: *mut GstQuery) -> *mut GstStructure; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_query_replace(old_query: *mut *mut GstQuery, new_query: *mut GstQuery) -> gboolean; //========================================================================= // GstReferenceTimestampMeta //========================================================================= - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_reference_timestamp_meta_get_info() -> *const GstMetaInfo; //========================================================================= @@ -6020,32 +6020,32 @@ extern "C" { segment: *const GstSegment, info: *mut GstStructure, ) -> *mut GstSample; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_sample_copy(buf: *const GstSample) -> *mut GstSample; pub fn gst_sample_get_buffer(sample: *mut GstSample) -> *mut GstBuffer; pub fn gst_sample_get_buffer_list(sample: *mut GstSample) -> *mut GstBufferList; pub fn gst_sample_get_caps(sample: *mut GstSample) -> *mut GstCaps; pub fn gst_sample_get_info(sample: *mut GstSample) -> *const GstStructure; pub fn gst_sample_get_segment(sample: *mut GstSample) -> *mut GstSegment; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_sample_ref(sample: *mut GstSample) -> *mut GstSample; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_buffer(sample: *mut GstSample, buffer: *mut GstBuffer); pub fn gst_sample_set_buffer_list(sample: *mut GstSample, buffer_list: *mut GstBufferList); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_caps(sample: *mut GstSample, caps: *mut GstCaps); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_info(sample: *mut GstSample, info: *mut GstStructure) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_segment(sample: *mut GstSample, segment: *const GstSegment); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_sample_unref(sample: *mut GstSample); //========================================================================= @@ -6225,8 +6225,8 @@ extern "C" { first_fieldname: *const c_char, ... ) -> gboolean; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_get_array( structure: *mut GstStructure, fieldname: *const c_char, @@ -6289,8 +6289,8 @@ extern "C" { fieldname: *const c_char, value: *mut i64, ) -> gboolean; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_get_list( structure: *mut GstStructure, fieldname: *const c_char, @@ -6385,15 +6385,15 @@ extern "C" { pub fn gst_structure_remove_fields(structure: *mut GstStructure, fieldname: *const c_char, ...); //pub fn gst_structure_remove_fields_valist(structure: *mut GstStructure, fieldname: *const c_char, varargs: /*Unimplemented*/va_list); pub fn gst_structure_set(structure: *mut GstStructure, fieldname: *const c_char, ...); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_set_array( structure: *mut GstStructure, fieldname: *const c_char, array: *const gobject::GValueArray, ); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_set_list( structure: *mut GstStructure, fieldname: *const c_char, @@ -6416,8 +6416,8 @@ extern "C" { value: *mut gobject::GValue, ); pub fn gst_structure_to_string(structure: *const GstStructure) -> *mut c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_structure_take( oldstr_ptr: *mut *mut GstStructure, newstr: *mut GstStructure, @@ -6446,8 +6446,8 @@ extern "C" { tag: *const c_char, ... ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tag_list_copy(taglist: *const GstTagList) -> *mut GstTagList; pub fn gst_tag_list_foreach( list: *const GstTagList, @@ -6613,14 +6613,14 @@ extern "C" { index: c_uint, value: *mut *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tag_list_ref(taglist: *mut GstTagList) -> *mut GstTagList; pub fn gst_tag_list_remove_tag(list: *mut GstTagList, tag: *const c_char); pub fn gst_tag_list_set_scope(list: *mut GstTagList, scope: GstTagScope); pub fn gst_tag_list_to_string(list: *const GstTagList) -> *mut c_char; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tag_list_unref(taglist: *mut GstTagList); pub fn gst_tag_list_copy_value( dest: *mut gobject::GValue, @@ -6722,8 +6722,8 @@ extern "C" { pub fn gst_uri_from_string_with_base(base: *mut GstUri, uri: *const c_char) -> *mut GstUri; pub fn gst_uri_get_fragment(uri: *const GstUri) -> *const c_char; pub fn gst_uri_get_host(uri: *const GstUri) -> *const c_char; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_uri_get_media_fragment_table(uri: *const GstUri) -> *mut glib::GHashTable; pub fn gst_uri_get_path(uri: *const GstUri) -> *mut c_char; pub fn gst_uri_get_path_segments(uri: *const GstUri) -> *mut glib::GList; @@ -6774,8 +6774,8 @@ extern "C" { pub fn gst_uri_to_string(uri: *const GstUri) -> *mut c_char; pub fn gst_uri_construct(protocol: *const c_char, location: *const c_char) -> *mut c_char; pub fn gst_uri_from_string(uri: *const c_char) -> *mut GstUri; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_uri_from_string_escaped(uri: *const c_char) -> *mut GstUri; pub fn gst_uri_get_location(uri: *const c_char) -> *mut c_char; pub fn gst_uri_get_protocol(uri: *const c_char) -> *mut c_char; @@ -6811,11 +6811,11 @@ extern "C" { pub fn gst_bin_get_by_name(bin: *mut GstBin, name: *const c_char) -> *mut GstElement; pub fn gst_bin_get_by_name_recurse_up(bin: *mut GstBin, name: *const c_char) -> *mut GstElement; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_bin_get_suppressed_flags(bin: *mut GstBin) -> GstElementFlags; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_bin_iterate_all_by_element_factory_name( bin: *mut GstBin, factory_name: *const c_char, @@ -6829,8 +6829,8 @@ extern "C" { pub fn gst_bin_recalculate_latency(bin: *mut GstBin) -> gboolean; pub fn gst_bin_remove(bin: *mut GstBin, element: *mut GstElement) -> gboolean; pub fn gst_bin_remove_many(bin: *mut GstBin, element_1: *mut GstElement, ...); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_bin_set_suppressed_flags(bin: *mut GstBin, flags: GstElementFlags); pub fn gst_bin_sync_children_states(bin: *mut GstBin) -> gboolean; @@ -6925,8 +6925,8 @@ extern "C" { pub fn gst_bus_create_watch(bus: *mut GstBus) -> *mut glib::GSource; pub fn gst_bus_disable_sync_message_emission(bus: *mut GstBus); pub fn gst_bus_enable_sync_message_emission(bus: *mut GstBus); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_bus_get_pollfd(bus: *mut GstBus, fd: *mut glib::GPollFD); pub fn gst_bus_have_pending(bus: *mut GstBus) -> gboolean; pub fn gst_bus_peek(bus: *mut GstBus) -> *mut GstMessage; @@ -6964,15 +6964,15 @@ extern "C" { //========================================================================= pub fn gst_clock_get_type() -> GType; pub fn gst_clock_id_compare_func(id1: gconstpointer, id2: gconstpointer) -> c_int; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clock_id_get_clock(id: GstClockID) -> *mut GstClock; pub fn gst_clock_id_get_time(id: GstClockID) -> GstClockTime; pub fn gst_clock_id_ref(id: GstClockID) -> GstClockID; pub fn gst_clock_id_unref(id: GstClockID); pub fn gst_clock_id_unschedule(id: GstClockID); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clock_id_uses_clock(id: GstClockID, clock: *mut GstClock) -> gboolean; pub fn gst_clock_id_wait(id: GstClockID, jitter: *mut GstClockTimeDiff) -> GstClockReturn; pub fn gst_clock_id_wait_async( @@ -7166,8 +7166,8 @@ extern "C" { ) -> gboolean; pub fn gst_device_provider_can_monitor(provider: *mut GstDeviceProvider) -> gboolean; pub fn gst_device_provider_device_add(provider: *mut GstDeviceProvider, device: *mut GstDevice); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_device_provider_device_changed( provider: *mut GstDeviceProvider, device: *mut GstDevice, @@ -7185,8 +7185,8 @@ extern "C" { pub fn gst_device_provider_get_hidden_providers( provider: *mut GstDeviceProvider, ) -> *mut *mut c_char; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_device_provider_get_metadata( provider: *mut GstDeviceProvider, key: *const c_char, @@ -7240,11 +7240,11 @@ extern "C" { //========================================================================= // GstDynamicTypeFactory //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_dynamic_type_factory_get_type() -> GType; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_dynamic_type_factory_load(factoryname: *const c_char) -> GType; //========================================================================= @@ -7269,22 +7269,22 @@ extern "C" { pub fn gst_element_state_get_name(state: GstState) -> *const c_char; pub fn gst_element_abort_state(element: *mut GstElement); pub fn gst_element_add_pad(element: *mut GstElement, pad: *mut GstPad) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_add_property_deep_notify_watch( element: *mut GstElement, property_name: *const c_char, include_value: gboolean, ) -> c_ulong; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_add_property_notify_watch( element: *mut GstElement, property_name: *const c_char, include_value: gboolean, ) -> c_ulong; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_call_async( element: *mut GstElement, func: GstElementCallAsyncFunc, @@ -7300,22 +7300,22 @@ extern "C" { ret: GstStateChangeReturn, ) -> GstStateChangeReturn; pub fn gst_element_create_all_pads(element: *mut GstElement); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_foreach_pad( element: *mut GstElement, func: GstElementForeachPadFunc, user_data: gpointer, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_foreach_sink_pad( element: *mut GstElement, func: GstElementForeachPadFunc, user_data: gpointer, ) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_foreach_src_pad( element: *mut GstElement, func: GstElementForeachPadFunc, @@ -7342,24 +7342,24 @@ extern "C" { context_type: *const c_char, ) -> *mut GstContext; pub fn gst_element_get_contexts(element: *mut GstElement) -> *mut glib::GList; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_element_get_current_clock_time(element: *mut GstElement) -> GstClockTime; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_element_get_current_running_time(element: *mut GstElement) -> GstClockTime; pub fn gst_element_get_factory(element: *mut GstElement) -> *mut GstElementFactory; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_get_metadata(element: *mut GstElement, key: *const c_char) -> *const c_char; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_get_pad_template( element: *mut GstElement, name: *const c_char, ) -> *mut GstPadTemplate; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_get_pad_template_list(element: *mut GstElement) -> *mut glib::GList; pub fn gst_element_get_request_pad( element: *mut GstElement, @@ -7421,8 +7421,8 @@ extern "C" { function: *const c_char, line: c_int, ); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_message_full_with_details( element: *mut GstElement, type_: GstMessageType, @@ -7459,8 +7459,8 @@ extern "C" { ) -> gboolean; pub fn gst_element_release_request_pad(element: *mut GstElement, pad: *mut GstPad); pub fn gst_element_remove_pad(element: *mut GstElement, pad: *mut GstPad) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_remove_property_notify_watch(element: *mut GstElement, watch_id: c_ulong); pub fn gst_element_request_pad( element: *mut GstElement, @@ -7766,20 +7766,20 @@ extern "C" { size: c_uint, buffer: *mut *mut GstBuffer, ) -> GstFlowReturn; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_pad_get_single_internal_link(pad: *mut GstPad) -> *mut GstPad; pub fn gst_pad_get_sticky_event( pad: *mut GstPad, event_type: GstEventType, idx: c_uint, ) -> *mut GstEvent; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_pad_get_stream(pad: *mut GstPad) -> *mut GstStream; pub fn gst_pad_get_stream_id(pad: *mut GstPad) -> *mut c_char; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_pad_get_task_state(pad: *mut GstPad) -> GstTaskState; pub fn gst_pad_has_current_caps(pad: *mut GstPad) -> gboolean; pub fn gst_pad_is_active(pad: *mut GstPad) -> gboolean; @@ -7797,11 +7797,11 @@ extern "C" { sinkpad: *mut GstPad, flags: GstPadLinkCheck, ) -> GstPadLinkReturn; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_pad_link_maybe_ghosting(src: *mut GstPad, sink: *mut GstPad) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_pad_link_maybe_ghosting_full( src: *mut GstPad, sink: *mut GstPad, @@ -7959,14 +7959,14 @@ extern "C" { presence: GstPadPresence, caps: *mut GstCaps, ) -> *mut GstPadTemplate; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_pad_template_new_from_static_pad_template_with_gtype( pad_template: *mut GstStaticPadTemplate, pad_type: GType, ) -> *mut GstPadTemplate; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_pad_template_new_with_gtype( name_template: *const c_char, direction: GstPadDirection, @@ -7975,19 +7975,19 @@ extern "C" { pad_type: GType, ) -> *mut GstPadTemplate; pub fn gst_pad_template_get_caps(templ: *mut GstPadTemplate) -> *mut GstCaps; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_pad_template_get_documentation_caps(templ: *mut GstPadTemplate) -> *mut GstCaps; pub fn gst_pad_template_pad_created(templ: *mut GstPadTemplate, pad: *mut GstPad); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_pad_template_set_documentation_caps(templ: *mut GstPadTemplate, caps: *mut GstCaps); //========================================================================= // GstParamArray //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_param_spec_array_get_type() -> GType; //========================================================================= @@ -8188,71 +8188,71 @@ extern "C" { //========================================================================= // GstStream //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_type() -> GType; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_new( stream_id: *const c_char, caps: *mut GstCaps, type_: GstStreamType, flags: GstStreamFlags, ) -> *mut GstStream; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_caps(stream: *mut GstStream) -> *mut GstCaps; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_stream_flags(stream: *mut GstStream) -> GstStreamFlags; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_stream_id(stream: *mut GstStream) -> *const c_char; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_stream_type(stream: *mut GstStream) -> GstStreamType; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_tags(stream: *mut GstStream) -> *mut GstTagList; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_caps(stream: *mut GstStream, caps: *mut GstCaps); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_stream_flags(stream: *mut GstStream, flags: GstStreamFlags); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_stream_type(stream: *mut GstStream, stream_type: GstStreamType); - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_tags(stream: *mut GstStream, tags: *mut GstTagList); //========================================================================= // GstStreamCollection //========================================================================= - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_type() -> GType; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_new(upstream_id: *const c_char) -> *mut GstStreamCollection; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_add_stream( collection: *mut GstStreamCollection, stream: *mut GstStream, ) -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_size(collection: *mut GstStreamCollection) -> c_uint; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_stream( collection: *mut GstStreamCollection, index: c_uint, ) -> *mut GstStream; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_upstream_id( collection: *mut GstStreamCollection, ) -> *const c_char; @@ -8278,8 +8278,8 @@ extern "C" { pub fn gst_task_get_state(task: *mut GstTask) -> GstTaskState; pub fn gst_task_join(task: *mut GstTask) -> gboolean; pub fn gst_task_pause(task: *mut GstTask) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_task_resume(task: *mut GstTask) -> gboolean; pub fn gst_task_set_enter_callback( task: *mut GstTask, @@ -8318,8 +8318,8 @@ extern "C" { // GstTracer //========================================================================= pub fn gst_tracer_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tracer_register( plugin: *mut GstPlugin, name: *const c_char, @@ -8331,8 +8331,8 @@ extern "C" { //========================================================================= pub fn gst_tracer_factory_get_type() -> GType; pub fn gst_tracer_factory_get_list() -> *mut glib::GList; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_tracer_factory_get_tracer_type(factory: *mut GstTracerFactory) -> GType; //========================================================================= @@ -8378,8 +8378,8 @@ extern "C" { value: *const gobject::GValue, index: c_uint, ) -> *const gobject::GValue; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_value_array_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8411,8 +8411,8 @@ extern "C" { value: *const gobject::GValue, index: c_uint, ) -> *const gobject::GValue; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_value_list_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8559,8 +8559,8 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_calculate_linear_regression( xy: *const GstClockTime, temp: *mut GstClockTime, @@ -8571,22 +8571,22 @@ extern "C" { xbase: *mut GstClockTime, r_squared: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clear_mini_object(object_ptr: *mut *mut GstMiniObject); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clear_object(object_ptr: *mut *mut GstObject); - #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clear_structure(structure_ptr: *mut *mut GstStructure); pub fn gst_debug_add_log_function( func: GstLogFunction, user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_debug_add_ring_buffer_logger(max_size_per_thread: c_uint, thread_timeout: c_uint); pub fn gst_debug_bin_to_dot_data( bin: *mut GstBin, @@ -8607,8 +8607,8 @@ extern "C" { pub fn gst_debug_get_all_categories() -> *mut glib::GSList; pub fn gst_debug_get_color_mode() -> GstDebugColorMode; pub fn gst_debug_get_default_threshold() -> GstDebugLevel; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_debug_get_stack_trace(flags: GstStackTraceFlags) -> *mut c_char; pub fn gst_debug_is_active() -> gboolean; pub fn gst_debug_is_colored() -> gboolean; @@ -8632,8 +8632,8 @@ extern "C" { message: *mut GstDebugMessage, user_data: gpointer, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_debug_log_get_line( category: *mut GstDebugCategory, level: GstDebugLevel, @@ -8647,11 +8647,11 @@ extern "C" { pub fn gst_debug_print_stack_trace(); pub fn gst_debug_remove_log_function(func: GstLogFunction) -> c_uint; pub fn gst_debug_remove_log_function_by_data(data: gpointer) -> c_uint; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_debug_remove_ring_buffer_logger(); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_debug_ring_buffer_logger_get_logs() -> *mut *mut c_char; pub fn gst_debug_set_active(active: gboolean); pub fn gst_debug_set_color_mode(mode: GstDebugColorMode); @@ -8662,8 +8662,8 @@ extern "C" { pub fn gst_debug_set_threshold_from_string(list: *const c_char, reset: gboolean); pub fn gst_debug_unset_threshold_for_name(name: *const c_char); pub fn gst_deinit(); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_dynamic_type_register(plugin: *mut GstPlugin, type_: GType) -> gboolean; pub fn gst_error_get_message(domain: glib::GQuark, code: c_int) -> *mut c_char; pub fn gst_filename_to_uri( @@ -8673,8 +8673,8 @@ extern "C" { pub fn gst_flow_get_name(ret: GstFlowReturn) -> *const c_char; pub fn gst_flow_to_quark(ret: GstFlowReturn) -> glib::GQuark; pub fn gst_formats_contains(formats: *const GstFormat, format: GstFormat) -> gboolean; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_get_main_executable_path() -> *const c_char; pub fn gst_info_strdup_printf(format: *const c_char, ...) -> *mut c_char; //pub fn gst_info_strdup_vprintf(format: *const c_char, args: /*Unimplemented*/va_list) -> *mut c_char; @@ -8688,11 +8688,11 @@ extern "C" { pub fn gst_init_get_option_group() -> *mut glib::GOptionGroup; pub fn gst_is_caps_features(obj: gconstpointer) -> gboolean; pub fn gst_is_initialized() -> gboolean; - #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_make_element_message_details(name: *const c_char, ...) -> *mut GstStructure; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_param_spec_array( name: *const c_char, nick: *const c_char, @@ -8745,27 +8745,27 @@ extern "C" { flags: GstParseFlags, error: *mut *mut glib::GError, ) -> *mut GstElement; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_print(format: *const c_char, ...); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_printerr(format: *const c_char, ...); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_printerrln(format: *const c_char, ...); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_println(format: *const c_char, ...); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_protection_filter_systems_by_available_decryptors( system_identifiers: *mut *const c_char, ) -> *mut *mut c_char; pub fn gst_protection_meta_api_get_type() -> GType; pub fn gst_protection_select_system(system_identifiers: *mut *const c_char) -> *const c_char; - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_reference_timestamp_meta_api_get_type() -> GType; pub fn gst_segtrap_is_enabled() -> gboolean; pub fn gst_segtrap_set_enabled(enabled: gboolean); @@ -8798,8 +8798,8 @@ extern "C" { blurb: *const c_char, func: GstTagMergeFunc, ); - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tracing_get_active_tracers() -> *mut glib::GList; pub fn gst_tracing_register_hook( tracer: *mut GstTracer, @@ -8807,11 +8807,11 @@ extern "C" { func: gobject::GCallback, ); pub fn gst_type_find_get_type() -> GType; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_type_is_plugin_api(type_: GType, flags: *mut GstPluginAPIFlags) -> gboolean; - #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_type_mark_as_plugin_api(type_: GType, flags: GstPluginAPIFlags); pub fn gst_update_registry() -> gboolean; pub fn gst_util_array_binary_search( @@ -8824,8 +8824,8 @@ extern "C" { user_data: gpointer, ) -> gpointer; pub fn gst_util_double_to_fraction(src: c_double, dest_n: *mut c_int, dest_d: *mut c_int); - #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_util_dump_buffer(buf: *mut GstBuffer); pub fn gst_util_dump_mem(mem: *const u8, size: c_uint); pub fn gst_util_fraction_add( @@ -8847,8 +8847,8 @@ extern "C" { ) -> gboolean; pub fn gst_util_fraction_to_double(src_n: c_int, src_d: c_int, dest: *mut c_double); pub fn gst_util_gdouble_to_guint64(value: c_double) -> u64; - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_util_get_object_array( object: *mut gobject::GObject, name: *const c_char, @@ -8866,8 +8866,8 @@ extern "C" { name: *const c_char, value: *const c_char, ); - #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] - #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_util_set_object_array( object: *mut gobject::GObject, name: *const c_char, diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index 778d92f71..52d5fe6c3 100644 --- a/gstreamer/sys/tests/abi.rs +++ b/gstreamer/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT use gstreamer_sys::*; diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index 819aa4a30..6cd272ba1 100644 --- a/gstreamer/sys/tests/constant.c +++ b/gstreamer/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index ad8a5a3ff..166185041 100644 --- a/gstreamer/sys/tests/layout.c +++ b/gstreamer/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) -// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) +// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) +// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // DO NOT EDIT #include "manual.h"