diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 42ffe0047..21bb238ac 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -15,7 +15,6 @@ use gst; use gst_app_sys; use gst_base; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct AppSink(Object) @extends gst_base::BaseSink, gst::Element, gst::Object, @implements gst::URIHandler; @@ -202,7 +201,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"eos\0".as_ptr() as *const _, - Some(transmute(eos_trampoline:: as usize)), + Some(*(&eos_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -227,7 +226,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"notify::buffer-list\0".as_ptr() as *const _, - Some(transmute(notify_buffer_list_trampoline:: as usize)), + Some(*(¬ify_buffer_list_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -250,7 +249,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"notify::caps\0".as_ptr() as *const _, - Some(transmute(notify_caps_trampoline:: as usize)), + Some(*(¬ify_caps_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -273,7 +272,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"notify::drop\0".as_ptr() as *const _, - Some(transmute(notify_drop_trampoline:: as usize)), + Some(*(¬ify_drop_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -298,7 +297,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"notify::emit-signals\0".as_ptr() as *const _, - Some(transmute(notify_emit_signals_trampoline:: as usize)), + Some(*(¬ify_emit_signals_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -321,7 +320,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"notify::eos\0".as_ptr() as *const _, - Some(transmute(notify_eos_trampoline:: as usize)), + Some(*(¬ify_eos_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -346,7 +345,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"notify::max-buffers\0".as_ptr() as *const _, - Some(transmute(notify_max_buffers_trampoline:: as usize)), + Some(*(¬ify_max_buffers_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -371,7 +370,7 @@ impl AppSink { connect_raw( self.as_ptr() as *mut _, b"notify::wait-on-eos\0".as_ptr() as *const _, - Some(transmute(notify_wait_on_eos_trampoline:: as usize)), + Some(*(¬ify_wait_on_eos_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index c68bac3d9..2a05d97b6 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -15,7 +15,6 @@ use gst_app_sys; use gst_base; use libc; use std::boxed::Box as Box_; -use std::mem::transmute; use AppStreamType; glib_wrapper! { @@ -296,7 +295,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"enough-data\0".as_ptr() as *const _, - Some(transmute(enough_data_trampoline:: as usize)), + Some(*(&enough_data_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -319,7 +318,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"need-data\0".as_ptr() as *const _, - Some(transmute(need_data_trampoline:: as usize)), + Some(*(&need_data_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -344,7 +343,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"seek-data\0".as_ptr() as *const _, - Some(transmute(seek_data_trampoline:: as usize)), + Some(*(&seek_data_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -367,7 +366,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::block\0".as_ptr() as *const _, - Some(transmute(notify_block_trampoline:: as usize)), + Some(*(¬ify_block_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -390,7 +389,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::caps\0".as_ptr() as *const _, - Some(transmute(notify_caps_trampoline:: as usize)), + Some(*(¬ify_caps_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -415,9 +414,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::current-level-bytes\0".as_ptr() as *const _, - Some(transmute( - notify_current_level_bytes_trampoline:: as usize, - )), + Some(*(¬ify_current_level_bytes_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -440,7 +437,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _, - Some(transmute(notify_duration_trampoline:: as usize)), + Some(*(¬ify_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -465,7 +462,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::emit-signals\0".as_ptr() as *const _, - Some(transmute(notify_emit_signals_trampoline:: as usize)), + Some(*(¬ify_emit_signals_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -488,7 +485,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::format\0".as_ptr() as *const _, - Some(transmute(notify_format_trampoline:: as usize)), + Some(*(¬ify_format_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -511,7 +508,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::is-live\0".as_ptr() as *const _, - Some(transmute(notify_is_live_trampoline:: as usize)), + Some(*(¬ify_is_live_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -534,7 +531,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::max-bytes\0".as_ptr() as *const _, - Some(transmute(notify_max_bytes_trampoline:: as usize)), + Some(*(¬ify_max_bytes_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -559,7 +556,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::max-latency\0".as_ptr() as *const _, - Some(transmute(notify_max_latency_trampoline:: as usize)), + Some(*(¬ify_max_latency_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -584,7 +581,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::min-latency\0".as_ptr() as *const _, - Some(transmute(notify_min_latency_trampoline:: as usize)), + Some(*(¬ify_min_latency_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -609,7 +606,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::min-percent\0".as_ptr() as *const _, - Some(transmute(notify_min_percent_trampoline:: as usize)), + Some(*(¬ify_min_percent_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -632,7 +629,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::size\0".as_ptr() as *const _, - Some(transmute(notify_size_trampoline:: as usize)), + Some(*(¬ify_size_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -657,7 +654,7 @@ impl AppSrc { connect_raw( self.as_ptr() as *mut _, b"notify::stream-type\0".as_ptr() as *const _, - Some(transmute(notify_stream_type_trampoline:: as usize)), + Some(*(¬ify_stream_type_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 372c07375..68912ceb0 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_app_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum AppStreamType { Stream, Seekable, diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-audio/src/auto/audio_base_sink.rs b/gstreamer-audio/src/auto/audio_base_sink.rs index 0948d21d6..671497fb8 100644 --- a/gstreamer-audio/src/auto/audio_base_sink.rs +++ b/gstreamer-audio/src/auto/audio_base_sink.rs @@ -15,7 +15,6 @@ use gst; use gst_audio_sys; use gst_base; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct AudioBaseSink(Object) @extends gst_base::BaseSink, gst::Element, gst::Object; @@ -298,9 +297,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::alignment-threshold\0".as_ptr() as *const _, - Some(transmute( - notify_alignment_threshold_trampoline:: as usize, - )), + Some(*(¬ify_alignment_threshold_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -325,7 +322,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::buffer-time\0".as_ptr() as *const _, - Some(transmute(notify_buffer_time_trampoline:: as usize)), + Some(*(¬ify_buffer_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -353,9 +350,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::can-activate-pull\0".as_ptr() as *const _, - Some(transmute( - notify_can_activate_pull_trampoline:: as usize, - )), + Some(*(¬ify_can_activate_pull_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -380,9 +375,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::discont-wait\0".as_ptr() as *const _, - Some(transmute( - notify_discont_wait_trampoline:: as usize, - )), + Some(*(¬ify_discont_wait_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -410,9 +403,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::drift-tolerance\0".as_ptr() as *const _, - Some(transmute( - notify_drift_tolerance_trampoline:: as usize, - )), + Some(*(¬ify_drift_tolerance_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -437,9 +428,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::latency-time\0".as_ptr() as *const _, - Some(transmute( - notify_latency_time_trampoline:: as usize, - )), + Some(*(¬ify_latency_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -464,9 +453,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::provide-clock\0".as_ptr() as *const _, - Some(transmute( - notify_provide_clock_trampoline:: as usize, - )), + Some(*(¬ify_provide_clock_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -491,9 +478,7 @@ impl> AudioBaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::slave-method\0".as_ptr() as *const _, - Some(transmute( - notify_slave_method_trampoline:: as usize, - )), + Some(*(¬ify_slave_method_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-audio/src/auto/audio_base_src.rs b/gstreamer-audio/src/auto/audio_base_src.rs index 0eeae71f4..242c884e9 100644 --- a/gstreamer-audio/src/auto/audio_base_src.rs +++ b/gstreamer-audio/src/auto/audio_base_src.rs @@ -15,7 +15,6 @@ use gst; use gst_audio_sys; use gst_base; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct AudioBaseSrc(Object) @extends gst_base::BaseSrc, gst::Element, gst::Object; @@ -216,9 +215,7 @@ impl> AudioBaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::actual-buffer-time\0".as_ptr() as *const _, - Some(transmute( - notify_actual_buffer_time_trampoline:: as usize, - )), + Some(*(¬ify_actual_buffer_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -246,9 +243,7 @@ impl> AudioBaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::actual-latency-time\0".as_ptr() as *const _, - Some(transmute( - notify_actual_latency_time_trampoline:: as usize, - )), + Some(*(¬ify_actual_latency_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -273,7 +268,7 @@ impl> AudioBaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::buffer-time\0".as_ptr() as *const _, - Some(transmute(notify_buffer_time_trampoline:: as usize)), + Some(*(¬ify_buffer_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -298,9 +293,7 @@ impl> AudioBaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::latency-time\0".as_ptr() as *const _, - Some(transmute( - notify_latency_time_trampoline:: as usize, - )), + Some(*(¬ify_latency_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -325,9 +318,7 @@ impl> AudioBaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::provide-clock\0".as_ptr() as *const _, - Some(transmute( - notify_provide_clock_trampoline:: as usize, - )), + Some(*(¬ify_provide_clock_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -352,9 +343,7 @@ impl> AudioBaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::slave-method\0".as_ptr() as *const _, - Some(transmute( - notify_slave_method_trampoline:: as usize, - )), + Some(*(¬ify_slave_method_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-audio/src/auto/audio_decoder.rs b/gstreamer-audio/src/auto/audio_decoder.rs index 51f8ee137..9bbb8a2d8 100644 --- a/gstreamer-audio/src/auto/audio_decoder.rs +++ b/gstreamer-audio/src/auto/audio_decoder.rs @@ -13,7 +13,6 @@ use gst; use gst_audio_sys; use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use AudioInfo; glib_wrapper! { @@ -343,7 +342,7 @@ impl> AudioDecoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::min-latency\0".as_ptr() as *const _, - Some(transmute(notify_min_latency_trampoline:: as usize)), + Some(*(¬ify_min_latency_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -368,7 +367,7 @@ impl> AudioDecoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::plc\0".as_ptr() as *const _, - Some(transmute(notify_plc_trampoline:: as usize)), + Some(*(¬ify_plc_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -393,7 +392,7 @@ impl> AudioDecoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::tolerance\0".as_ptr() as *const _, - Some(transmute(notify_tolerance_trampoline:: as usize)), + Some(*(¬ify_tolerance_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-audio/src/auto/audio_encoder.rs b/gstreamer-audio/src/auto/audio_encoder.rs index beab93016..95cbfd203 100644 --- a/gstreamer-audio/src/auto/audio_encoder.rs +++ b/gstreamer-audio/src/auto/audio_encoder.rs @@ -12,7 +12,6 @@ use glib_sys; use gst; use gst_audio_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use AudioInfo; glib_wrapper! { @@ -344,7 +343,7 @@ impl> AudioEncoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::hard-resync\0".as_ptr() as *const _, - Some(transmute(notify_hard_resync_trampoline:: as usize)), + Some(*(¬ify_hard_resync_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -369,9 +368,7 @@ impl> AudioEncoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::mark-granule\0".as_ptr() as *const _, - Some(transmute( - notify_mark_granule_trampoline:: as usize, - )), + Some(*(¬ify_mark_granule_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -399,9 +396,7 @@ impl> AudioEncoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::perfect-timestamp\0".as_ptr() as *const _, - Some(transmute( - notify_perfect_timestamp_trampoline:: as usize, - )), + Some(*(¬ify_perfect_timestamp_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -426,7 +421,7 @@ impl> AudioEncoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::tolerance\0".as_ptr() as *const _, - Some(transmute(notify_tolerance_trampoline:: as usize)), + Some(*(¬ify_tolerance_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index fd2370c64..637692516 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_audio_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum AudioChannelPosition { None, Mono, @@ -193,6 +194,7 @@ impl SetValue for AudioChannelPosition { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum AudioFormat { Unknown, Encoded, @@ -340,6 +342,7 @@ impl SetValue for AudioFormat { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum AudioLayout { Interleaved, NonInterleaved, @@ -397,6 +400,7 @@ impl SetValue for AudioLayout { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum AudioRingBufferFormatType { Raw, MuLaw, @@ -515,6 +519,7 @@ impl SetValue for AudioRingBufferFormatType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum StreamVolumeFormat { Linear, Cubic, diff --git a/gstreamer-audio/src/auto/stream_volume.rs b/gstreamer-audio/src/auto/stream_volume.rs index d73f0cffa..4549b9eba 100644 --- a/gstreamer-audio/src/auto/stream_volume.rs +++ b/gstreamer-audio/src/auto/stream_volume.rs @@ -10,7 +10,6 @@ use glib::translate::*; use glib_sys; use gst_audio_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use StreamVolumeFormat; glib_wrapper! { @@ -111,7 +110,7 @@ impl> StreamVolumeExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::mute\0".as_ptr() as *const _, - Some(transmute(notify_mute_trampoline:: as usize)), + Some(*(¬ify_mute_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -136,7 +135,7 @@ impl> StreamVolumeExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::volume\0".as_ptr() as *const _, - Some(transmute(notify_volume_trampoline:: as usize)), + Some(*(¬ify_volume_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index 8ed95bc98..4d7b7b503 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst; use gst_base_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct Aggregator(Object) @extends gst::Element, gst::Object; @@ -163,7 +162,7 @@ impl> AggregatorExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::latency\0".as_ptr() as *const _, - Some(transmute(notify_latency_trampoline:: as usize)), + Some(*(¬ify_latency_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -188,7 +187,7 @@ impl> AggregatorExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::start-time\0".as_ptr() as *const _, - Some(transmute(notify_start_time_trampoline:: as usize)), + Some(*(¬ify_start_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-base/src/auto/aggregator_pad.rs b/gstreamer-base/src/auto/aggregator_pad.rs index c6aacee34..3bb7290ee 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -18,7 +18,6 @@ use gst; use gst_base_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct AggregatorPad(Object) @extends gst::Pad, gst::Object; @@ -165,7 +164,7 @@ impl> AggregatorPadExt for O { connect_raw( self.as_ptr() as *mut _, b"buffer-consumed\0".as_ptr() as *const _, - Some(transmute(buffer_consumed_trampoline:: as usize)), + Some(*(&buffer_consumed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -191,9 +190,7 @@ impl> AggregatorPadExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::emit-signals\0".as_ptr() as *const _, - Some(transmute( - notify_emit_signals_trampoline:: as usize, - )), + Some(*(¬ify_emit_signals_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-base/src/auto/base_parse.rs b/gstreamer-base/src/auto/base_parse.rs index 86e7c7016..07ca8b11f 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst; use gst_base_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct BaseParse(Object) @extends gst::Element, gst::Object; @@ -221,9 +220,7 @@ impl> BaseParseExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::disable-passthrough\0".as_ptr() as *const _, - Some(transmute( - notify_disable_passthrough_trampoline:: as usize, - )), + Some(*(¬ify_disable_passthrough_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 8bd3469e3..9aa6842f6 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst; use gst_base_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct BaseSink(Object) @extends gst::Element, gst::Object; @@ -453,7 +452,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::async\0".as_ptr() as *const _, - Some(transmute(notify_async_trampoline:: as usize)), + Some(*(¬ify_async_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -478,7 +477,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::blocksize\0".as_ptr() as *const _, - Some(transmute(notify_blocksize_trampoline:: as usize)), + Some(*(¬ify_blocksize_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -506,9 +505,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::enable-last-sample\0".as_ptr() as *const _, - Some(transmute( - notify_enable_last_sample_trampoline:: as usize, - )), + Some(*(¬ify_enable_last_sample_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -533,7 +530,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::last-sample\0".as_ptr() as *const _, - Some(transmute(notify_last_sample_trampoline:: as usize)), + Some(*(¬ify_last_sample_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -558,7 +555,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-bitrate\0".as_ptr() as *const _, - Some(transmute(notify_max_bitrate_trampoline:: as usize)), + Some(*(¬ify_max_bitrate_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -583,9 +580,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-lateness\0".as_ptr() as *const _, - Some(transmute( - notify_max_lateness_trampoline:: as usize, - )), + Some(*(¬ify_max_lateness_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -614,9 +609,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::processing-deadline\0".as_ptr() as *const _, - Some(transmute( - notify_processing_deadline_trampoline:: as usize, - )), + Some(*(¬ify_processing_deadline_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -641,7 +634,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::qos\0".as_ptr() as *const _, - Some(transmute(notify_qos_trampoline:: as usize)), + Some(*(¬ify_qos_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -666,9 +659,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::render-delay\0".as_ptr() as *const _, - Some(transmute( - notify_render_delay_trampoline:: as usize, - )), + Some(*(¬ify_render_delay_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -693,7 +684,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::sync\0".as_ptr() as *const _, - Some(transmute(notify_sync_trampoline:: as usize)), + Some(*(¬ify_sync_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -718,9 +709,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::throttle-time\0".as_ptr() as *const _, - Some(transmute( - notify_throttle_time_trampoline:: as usize, - )), + Some(*(¬ify_throttle_time_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -745,7 +734,7 @@ impl> BaseSinkExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::ts-offset\0".as_ptr() as *const _, - Some(transmute(notify_ts_offset_trampoline:: as usize)), + Some(*(¬ify_ts_offset_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index bb47891be..998fea6bb 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -15,7 +15,6 @@ use gobject_sys; use gst; use gst_base_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct BaseSrc(Object) @extends gst::Element, gst::Object; @@ -274,7 +273,7 @@ impl> BaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::blocksize\0".as_ptr() as *const _, - Some(transmute(notify_blocksize_trampoline:: as usize)), + Some(*(¬ify_blocksize_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -299,9 +298,7 @@ impl> BaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::do-timestamp\0".as_ptr() as *const _, - Some(transmute( - notify_do_timestamp_trampoline:: as usize, - )), + Some(*(¬ify_do_timestamp_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -326,7 +323,7 @@ impl> BaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::num-buffers\0".as_ptr() as *const _, - Some(transmute(notify_num_buffers_trampoline:: as usize)), + Some(*(¬ify_num_buffers_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -351,7 +348,7 @@ impl> BaseSrcExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::typefind\0".as_ptr() as *const _, - Some(transmute(notify_typefind_trampoline:: as usize)), + Some(*(¬ify_typefind_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index d29b3f29d..3c4034aec 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -15,7 +15,6 @@ use gobject_sys; use gst; use gst_base_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct BaseTransform(Object) @extends gst::Element, gst::Object; @@ -230,7 +229,7 @@ impl> BaseTransformExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::qos\0".as_ptr() as *const _, - Some(transmute(notify_qos_trampoline:: as usize)), + Some(*(¬ify_qos_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index 5e337a2eb..7bb8d1b9b 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst; use gst_check_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct TestClock(Object) @extends gst::Clock, gst::Object; @@ -166,7 +165,7 @@ impl TestClock { connect_raw( self.as_ptr() as *mut _, b"notify::clock-type\0".as_ptr() as *const _, - Some(transmute(notify_clock_type_trampoline:: as usize)), + Some(*(¬ify_clock_type_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-editing-services/src/auto/asset.rs b/gstreamer-editing-services/src/auto/asset.rs index 012b9aecd..68a24f1ba 100644 --- a/gstreamer-editing-services/src/auto/asset.rs +++ b/gstreamer-editing-services/src/auto/asset.rs @@ -3,8 +3,6 @@ // DO NOT EDIT use ges_sys; -use gio; -use gio_sys; use glib; use glib::object::Cast; use glib::object::IsA; @@ -17,8 +15,6 @@ use glib::Value; use glib_sys; use gobject_sys; use std::boxed::Box as Box_; -use std::mem::transmute; -use std::pin::Pin; use std::ptr; use Extractable; @@ -193,7 +189,7 @@ impl> AssetExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::proxy\0".as_ptr() as *const _, - Some(transmute(notify_proxy_trampoline:: as usize)), + Some(*(¬ify_proxy_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -218,9 +214,7 @@ impl> AssetExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::proxy-target\0".as_ptr() as *const _, - Some(transmute( - notify_proxy_target_trampoline:: as usize, - )), + Some(*(¬ify_proxy_target_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index 738f95a9f..444d30afa 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -11,7 +11,6 @@ use glib::signal::SignalHandlerId; use glib::translate::*; use glib_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Asset; use BaseEffect; use Container; @@ -244,7 +243,7 @@ impl> ClipExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::layer\0".as_ptr() as *const _, - Some(transmute(notify_layer_trampoline:: as usize)), + Some(*(¬ify_layer_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -269,9 +268,7 @@ impl> ClipExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::supported-formats\0".as_ptr() as *const _, - Some(transmute( - notify_supported_formats_trampoline:: as usize, - )), + Some(*(¬ify_supported_formats_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/container.rs b/gstreamer-editing-services/src/auto/container.rs index 81b9163de..556bf3393 100644 --- a/gstreamer-editing-services/src/auto/container.rs +++ b/gstreamer-editing-services/src/auto/container.rs @@ -14,7 +14,6 @@ use glib::Value; use glib_sys; use gobject_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Edge; use EditMode; use Extractable; @@ -174,7 +173,7 @@ impl> GESContainerExt for O { connect_raw( self.as_ptr() as *mut _, b"child-added\0".as_ptr() as *const _, - Some(transmute(child_added_trampoline:: as usize)), + Some(*(&child_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -202,7 +201,7 @@ impl> GESContainerExt for O { connect_raw( self.as_ptr() as *mut _, b"child-removed\0".as_ptr() as *const _, - Some(transmute(child_removed_trampoline:: as usize)), + Some(*(&child_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -224,7 +223,7 @@ impl> GESContainerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::height\0".as_ptr() as *const _, - Some(transmute(notify_height_trampoline:: as usize)), + Some(*(¬ify_height_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index 3a7511bdc..e151924cc 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -13,6 +13,7 @@ use glib::Type; use gobject_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum Edge { EdgeStart, EdgeEnd, @@ -73,6 +74,7 @@ impl SetValue for Edge { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum EditMode { EditNormal, EditRipple, diff --git a/gstreamer-editing-services/src/auto/group.rs b/gstreamer-editing-services/src/auto/group.rs index f5f165b46..dcbe20a4e 100644 --- a/gstreamer-editing-services/src/auto/group.rs +++ b/gstreamer-editing-services/src/auto/group.rs @@ -13,7 +13,6 @@ use glib::Value; use glib_sys; use gobject_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Container; use Extractable; use TimelineElement; @@ -216,7 +215,7 @@ impl> GroupExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _, - Some(transmute(notify_duration_trampoline:: as usize)), + Some(*(¬ify_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -238,7 +237,7 @@ impl> GroupExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::in-point\0".as_ptr() as *const _, - Some(transmute(notify_in_point_trampoline:: as usize)), + Some(*(¬ify_in_point_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -263,9 +262,7 @@ impl> GroupExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-duration\0".as_ptr() as *const _, - Some(transmute( - notify_max_duration_trampoline:: as usize, - )), + Some(*(¬ify_max_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -287,7 +284,7 @@ impl> GroupExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::priority\0".as_ptr() as *const _, - Some(transmute(notify_priority_trampoline:: as usize)), + Some(*(¬ify_priority_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -309,7 +306,7 @@ impl> GroupExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::start\0".as_ptr() as *const _, - Some(transmute(notify_start_trampoline:: as usize)), + Some(*(¬ify_start_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/layer.rs b/gstreamer-editing-services/src/auto/layer.rs index e6a703ab5..0ddd2d22b 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -12,7 +12,6 @@ use glib::translate::*; use glib_sys; use gst; use std::boxed::Box as Box_; -use std::mem::transmute; use Asset; use Clip; use Extractable; @@ -229,7 +228,7 @@ impl> LayerExt for O { connect_raw( self.as_ptr() as *mut _, b"clip-added\0".as_ptr() as *const _, - Some(transmute(clip_added_trampoline:: as usize)), + Some(*(&clip_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -254,7 +253,7 @@ impl> LayerExt for O { connect_raw( self.as_ptr() as *mut _, b"clip-removed\0".as_ptr() as *const _, - Some(transmute(clip_removed_trampoline:: as usize)), + Some(*(&clip_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -279,9 +278,7 @@ impl> LayerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::auto-transition\0".as_ptr() as *const _, - Some(transmute( - notify_auto_transition_trampoline:: as usize, - )), + Some(*(¬ify_auto_transition_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -303,7 +300,7 @@ impl> LayerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::priority\0".as_ptr() as *const _, - Some(transmute(notify_priority_trampoline:: as usize)), + Some(*(¬ify_priority_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/pipeline.rs b/gstreamer-editing-services/src/auto/pipeline.rs index 56e7a3d65..876151d53 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -17,7 +17,6 @@ use gobject_sys; use gst; use gst_pbutils; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use PipelineFlags; use Timeline; @@ -389,9 +388,7 @@ impl> GESPipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::audio-filter\0".as_ptr() as *const _, - Some(transmute( - notify_audio_filter_trampoline:: as usize, - )), + Some(*(¬ify_audio_filter_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -413,7 +410,7 @@ impl> GESPipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::audio-sink\0".as_ptr() as *const _, - Some(transmute(notify_audio_sink_trampoline:: as usize)), + Some(*(¬ify_audio_sink_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -435,7 +432,7 @@ impl> GESPipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::mode\0".as_ptr() as *const _, - Some(transmute(notify_mode_trampoline:: as usize)), + Some(*(¬ify_mode_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -457,7 +454,7 @@ impl> GESPipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::timeline\0".as_ptr() as *const _, - Some(transmute(notify_timeline_trampoline:: as usize)), + Some(*(¬ify_timeline_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -482,9 +479,7 @@ impl> GESPipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::video-filter\0".as_ptr() as *const _, - Some(transmute( - notify_video_filter_trampoline:: as usize, - )), + Some(*(¬ify_video_filter_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -506,7 +501,7 @@ impl> GESPipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::video-sink\0".as_ptr() as *const _, - Some(transmute(notify_video_sink_trampoline:: as usize)), + Some(*(¬ify_video_sink_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index adb501226..2744e414a 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -14,7 +14,6 @@ use glib_sys; use gst_pbutils; use libc; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use Asset; use Timeline; @@ -260,7 +259,7 @@ impl> ProjectExt for O { connect_raw( self.as_ptr() as *mut _, b"asset-added\0".as_ptr() as *const _, - Some(transmute(asset_added_trampoline:: as usize)), + Some(*(&asset_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -285,7 +284,7 @@ impl> ProjectExt for O { connect_raw( self.as_ptr() as *mut _, b"asset-loading\0".as_ptr() as *const _, - Some(transmute(asset_loading_trampoline:: as usize)), + Some(*(&asset_loading_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -310,7 +309,7 @@ impl> ProjectExt for O { connect_raw( self.as_ptr() as *mut _, b"asset-removed\0".as_ptr() as *const _, - Some(transmute(asset_removed_trampoline:: as usize)), + Some(*(&asset_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -347,9 +346,7 @@ impl> ProjectExt for O { connect_raw( self.as_ptr() as *mut _, b"error-loading-asset\0".as_ptr() as *const _, - Some(transmute( - error_loading_asset_trampoline:: as usize, - )), + Some(*(&error_loading_asset_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -374,7 +371,7 @@ impl> ProjectExt for O { connect_raw( self.as_ptr() as *mut _, b"loaded\0".as_ptr() as *const _, - Some(transmute(loaded_trampoline:: as usize)), + Some(*(&loaded_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -409,7 +406,7 @@ impl> ProjectExt for O { connect_raw( self.as_ptr() as *mut _, b"missing-uri\0".as_ptr() as *const _, - Some(transmute(missing_uri_trampoline:: as usize)), + Some(*(&missing_uri_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index 0620444d7..feb39a4e9 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -12,7 +12,6 @@ use glib::translate::*; use glib_sys; use gst; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use Asset; use Extractable; @@ -433,7 +432,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"commited\0".as_ptr() as *const _, - Some(transmute(commited_trampoline:: as usize)), + Some(*(&commited_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -458,7 +457,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"group-added\0".as_ptr() as *const _, - Some(transmute(group_added_trampoline:: as usize)), + Some(*(&group_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -487,7 +486,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"layer-added\0".as_ptr() as *const _, - Some(transmute(layer_added_trampoline:: as usize)), + Some(*(&layer_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -512,7 +511,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"layer-removed\0".as_ptr() as *const _, - Some(transmute(layer_removed_trampoline:: as usize)), + Some(*(&layer_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -551,7 +550,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"snapping-ended\0".as_ptr() as *const _, - Some(transmute(snapping_ended_trampoline:: as usize)), + Some(*(&snapping_ended_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -586,7 +585,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"snapping-started\0".as_ptr() as *const _, - Some(transmute(snapping_started_trampoline:: as usize)), + Some(*(&snapping_started_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -611,7 +610,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"track-added\0".as_ptr() as *const _, - Some(transmute(track_added_trampoline:: as usize)), + Some(*(&track_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -636,7 +635,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"track-removed\0".as_ptr() as *const _, - Some(transmute(track_removed_trampoline:: as usize)), + Some(*(&track_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -661,9 +660,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::auto-transition\0".as_ptr() as *const _, - Some(transmute( - notify_auto_transition_trampoline:: as usize, - )), + Some(*(¬ify_auto_transition_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -685,7 +682,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _, - Some(transmute(notify_duration_trampoline:: as usize)), + Some(*(¬ify_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -710,9 +707,7 @@ impl> TimelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::snapping-distance\0".as_ptr() as *const _, - Some(transmute( - notify_snapping_distance_trampoline:: as usize, - )), + Some(*(¬ify_snapping_distance_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 2d7eb2ada..40f02e62c 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -16,7 +16,6 @@ use glib_sys; use gobject_sys; use gst; use std::boxed::Box as Box_; -use std::mem::transmute; use Extractable; use Timeline; use TrackType; @@ -501,7 +500,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _, - Some(transmute(notify_duration_trampoline:: as usize)), + Some(*(¬ify_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -523,7 +522,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::in-point\0".as_ptr() as *const _, - Some(transmute(notify_in_point_trampoline:: as usize)), + Some(*(¬ify_in_point_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -548,9 +547,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-duration\0".as_ptr() as *const _, - Some(transmute( - notify_max_duration_trampoline:: as usize, - )), + Some(*(¬ify_max_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -572,7 +569,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::name\0".as_ptr() as *const _, - Some(transmute(notify_name_trampoline:: as usize)), + Some(*(¬ify_name_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -594,7 +591,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::parent\0".as_ptr() as *const _, - Some(transmute(notify_parent_trampoline:: as usize)), + Some(*(¬ify_parent_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -616,7 +613,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::priority\0".as_ptr() as *const _, - Some(transmute(notify_priority_trampoline:: as usize)), + Some(*(¬ify_priority_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -638,7 +635,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::serialize\0".as_ptr() as *const _, - Some(transmute(notify_serialize_trampoline:: as usize)), + Some(*(¬ify_serialize_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -660,7 +657,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::start\0".as_ptr() as *const _, - Some(transmute(notify_start_trampoline:: as usize)), + Some(*(¬ify_start_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -682,7 +679,7 @@ impl> TimelineElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::timeline\0".as_ptr() as *const _, - Some(transmute(notify_timeline_trampoline:: as usize)), + Some(*(¬ify_timeline_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index 04453c6e3..adac8525d 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -15,7 +15,6 @@ use glib_sys; use gobject_sys; use gst; use std::boxed::Box as Box_; -use std::mem::transmute; use Timeline; use TrackElement; use TrackType; @@ -249,7 +248,7 @@ impl> GESTrackExt for O { connect_raw( self.as_ptr() as *mut _, b"commited\0".as_ptr() as *const _, - Some(transmute(commited_trampoline:: as usize)), + Some(*(&commited_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -277,9 +276,7 @@ impl> GESTrackExt for O { connect_raw( self.as_ptr() as *mut _, b"track-element-added\0".as_ptr() as *const _, - Some(transmute( - track_element_added_trampoline:: as usize, - )), + Some(*(&track_element_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -310,9 +307,7 @@ impl> GESTrackExt for O { connect_raw( self.as_ptr() as *mut _, b"track-element-removed\0".as_ptr() as *const _, - Some(transmute( - track_element_removed_trampoline:: as usize, - )), + Some(*(&track_element_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -334,7 +329,7 @@ impl> GESTrackExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _, - Some(transmute(notify_duration_trampoline:: as usize)), + Some(*(¬ify_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -356,7 +351,7 @@ impl> GESTrackExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::mixing\0".as_ptr() as *const _, - Some(transmute(notify_mixing_trampoline:: as usize)), + Some(*(¬ify_mixing_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -381,9 +376,7 @@ impl> GESTrackExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::restriction-caps\0".as_ptr() as *const _, - Some(transmute( - notify_restriction_caps_trampoline:: as usize, - )), + Some(*(¬ify_restriction_caps_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index a3cacf890..65706cc20 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_sys; use gobject_sys; use gst; use std::boxed::Box as Box_; -use std::mem::transmute; use Edge; use EditMode; use Extractable; @@ -263,7 +262,7 @@ impl> TrackElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::active\0".as_ptr() as *const _, - Some(transmute(notify_active_trampoline:: as usize)), + Some(*(¬ify_active_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -285,7 +284,7 @@ impl> TrackElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::track\0".as_ptr() as *const _, - Some(transmute(notify_track_trampoline:: as usize)), + Some(*(¬ify_track_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -307,7 +306,7 @@ impl> TrackElementExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::track-type\0".as_ptr() as *const _, - Some(transmute(notify_track_type_trampoline:: as usize)), + Some(*(¬ify_track_type_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/uri_clip.rs b/gstreamer-editing-services/src/auto/uri_clip.rs index d4f212faf..bcda64a43 100644 --- a/gstreamer-editing-services/src/auto/uri_clip.rs +++ b/gstreamer-editing-services/src/auto/uri_clip.rs @@ -15,7 +15,6 @@ use glib::Value; use glib_sys; use gobject_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Clip; use Container; use Extractable; @@ -149,7 +148,7 @@ impl> UriClipExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::is-image\0".as_ptr() as *const _, - Some(transmute(notify_is_image_trampoline:: as usize)), + Some(*(¬ify_is_image_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -171,7 +170,7 @@ impl> UriClipExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::mute\0".as_ptr() as *const _, - Some(transmute(notify_mute_trampoline:: as usize)), + Some(*(¬ify_mute_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -196,9 +195,7 @@ impl> UriClipExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::supported-formats\0".as_ptr() as *const _, - Some(transmute( - notify_supported_formats_trampoline:: as usize, - )), + Some(*(¬ify_supported_formats_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index 21914f285..7b681b9f3 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -15,7 +15,6 @@ use gobject_sys; use gst; use gst_pbutils; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use Asset; use UriSourceAsset; @@ -127,7 +126,7 @@ impl> UriClipAssetExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _, - Some(transmute(notify_duration_trampoline:: as usize)), + Some(*(¬ify_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index 494678536..df872b9a1 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -15,6 +15,7 @@ use gobject_sys; use gst_gl_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLContextError { Failed, WrongConfig, @@ -110,6 +111,7 @@ impl SetValue for GLContextError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLFormat { Luminance, Alpha, @@ -209,6 +211,7 @@ impl SetValue for GLFormat { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLQueryType { None, TimeElapsed, @@ -269,6 +272,7 @@ impl SetValue for GLQueryType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLSLError { Compile, Link, @@ -350,6 +354,7 @@ impl SetValue for GLSLError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLSLVersion { None, _100, @@ -452,6 +457,7 @@ impl SetValue for GLSLVersion { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLStereoDownmix { GreenMagentaDubois, RedCyanDubois, @@ -518,6 +524,7 @@ impl SetValue for GLStereoDownmix { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLTextureTarget { None, _2d, @@ -581,6 +588,7 @@ impl SetValue for GLTextureTarget { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLUploadReturn { Done, Error, @@ -647,6 +655,7 @@ impl SetValue for GLUploadReturn { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum GLWindowError { Failed, OldLibs, diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index 41ccee975..f6562e795 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst; use gst_gl_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use GLContext; glib_wrapper! { @@ -85,7 +84,7 @@ impl> GLBaseFilterExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::context\0".as_ptr() as *const _, - Some(transmute(notify_context_trampoline:: as usize)), + Some(*(¬ify_context_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-gl/src/auto/gl_display.rs b/gstreamer-gl/src/auto/gl_display.rs index 06a5f4725..bdb8bcff0 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -12,7 +12,6 @@ use glib_sys; use gst; use gst_gl_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use GLContext; use GLDisplayType; @@ -186,7 +185,7 @@ impl> GLDisplayExt for O { connect_raw( self.as_ptr() as *mut _, b"create-context\0".as_ptr() as *const _, - Some(transmute(create_context_trampoline:: as usize)), + Some(*(&create_context_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-gl/src/auto/gl_overlay_compositor.rs b/gstreamer-gl/src/auto/gl_overlay_compositor.rs index 7118cd515..53761109b 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -22,8 +22,6 @@ use gst; use gst_gl_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_16", feature = "dox"))] -use std::mem::transmute; use GLContext; glib_wrapper! { @@ -112,7 +110,7 @@ impl GLOverlayCompositor { connect_raw( self.as_ptr() as *mut _, b"notify::yinvert\0".as_ptr() as *const _, - Some(transmute(notify_yinvert_trampoline:: as usize)), + Some(*(¬ify_yinvert_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-gl/src/auto/gl_shader.rs b/gstreamer-gl/src/auto/gl_shader.rs index 9e4f73816..b4653bde3 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -17,7 +17,6 @@ use gobject_sys; use gst; use gst_gl_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use GLContext; #[cfg(any(feature = "v1_16", feature = "dox"))] @@ -457,7 +456,7 @@ impl GLShader { connect_raw( self.as_ptr() as *mut _, b"notify::linked\0".as_ptr() as *const _, - Some(transmute(notify_linked_trampoline:: as usize)), + Some(*(¬ify_linked_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-gl/src/auto/gl_view_convert.rs b/gstreamer-gl/src/auto/gl_view_convert.rs index 5844c9bb9..a7c5ce0e8 100644 --- a/gstreamer-gl/src/auto/gl_view_convert.rs +++ b/gstreamer-gl/src/auto/gl_view_convert.rs @@ -16,7 +16,6 @@ use gst; use gst_gl_sys; use gst_video; use std::boxed::Box as Box_; -use std::mem::transmute; use GLContext; use GLStereoDownmix; @@ -251,7 +250,7 @@ impl GLViewConvert { connect_raw( self.as_ptr() as *mut _, b"notify::downmix-mode\0".as_ptr() as *const _, - Some(transmute(notify_downmix_mode_trampoline:: as usize)), + Some(*(¬ify_downmix_mode_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -278,9 +277,7 @@ impl GLViewConvert { connect_raw( self.as_ptr() as *mut _, b"notify::input-flags-override\0".as_ptr() as *const _, - Some(transmute( - notify_input_flags_override_trampoline:: as usize, - )), + Some(*(¬ify_input_flags_override_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -307,9 +304,7 @@ impl GLViewConvert { connect_raw( self.as_ptr() as *mut _, b"notify::input-mode-override\0".as_ptr() as *const _, - Some(transmute( - notify_input_mode_override_trampoline:: as usize, - )), + Some(*(¬ify_input_mode_override_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -336,9 +331,7 @@ impl GLViewConvert { connect_raw( self.as_ptr() as *mut _, b"notify::output-flags-override\0".as_ptr() as *const _, - Some(transmute( - notify_output_flags_override_trampoline:: as usize, - )), + Some(*(¬ify_output_flags_override_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -365,9 +358,7 @@ impl GLViewConvert { connect_raw( self.as_ptr() as *mut _, b"notify::output-mode-override\0".as_ptr() as *const _, - Some(transmute( - notify_output_mode_override_trampoline:: as usize, - )), + Some(*(¬ify_output_mode_override_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 87a9708ec..faef5a157 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -15,7 +15,6 @@ use gst_gl_sys; use libc; use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use GLContext; use GLDisplay; @@ -248,7 +247,7 @@ impl> GLWindowExt for O { connect_raw( self.as_ptr() as *mut _, b"key-event\0".as_ptr() as *const _, - Some(transmute(key_event_trampoline:: as usize)), + Some(*(&key_event_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -285,7 +284,7 @@ impl> GLWindowExt for O { connect_raw( self.as_ptr() as *mut _, b"mouse-event\0".as_ptr() as *const _, - Some(transmute(mouse_event_trampoline:: as usize)), + Some(*(&mouse_event_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index a88b748ad..26d85e1f8 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -16,7 +16,6 @@ use gobject_sys; use gst; use gst_net_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct NetClientClock(Object) @extends gst::Clock, gst::Object; @@ -221,7 +220,7 @@ impl NetClientClock { connect_raw( self.as_ptr() as *mut _, b"notify::address\0".as_ptr() as *const _, - Some(transmute(notify_address_trampoline:: as usize)), + Some(*(¬ify_address_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -246,7 +245,7 @@ impl NetClientClock { connect_raw( self.as_ptr() as *mut _, b"notify::bus\0".as_ptr() as *const _, - Some(transmute(notify_bus_trampoline:: as usize)), + Some(*(¬ify_bus_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -273,7 +272,7 @@ impl NetClientClock { connect_raw( self.as_ptr() as *mut _, b"notify::internal-clock\0".as_ptr() as *const _, - Some(transmute(notify_internal_clock_trampoline:: as usize)), + Some(*(¬ify_internal_clock_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -300,9 +299,7 @@ impl NetClientClock { connect_raw( self.as_ptr() as *mut _, b"notify::minimum-update-interval\0".as_ptr() as *const _, - Some(transmute( - notify_minimum_update_interval_trampoline:: as usize, - )), + Some(*(¬ify_minimum_update_interval_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -327,7 +324,7 @@ impl NetClientClock { connect_raw( self.as_ptr() as *mut _, b"notify::port\0".as_ptr() as *const _, - Some(transmute(notify_port_trampoline:: as usize)), + Some(*(¬ify_port_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -352,7 +349,7 @@ impl NetClientClock { connect_raw( self.as_ptr() as *mut _, b"notify::qos-dscp\0".as_ptr() as *const _, - Some(transmute(notify_qos_dscp_trampoline:: as usize)), + Some(*(¬ify_qos_dscp_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -379,7 +376,7 @@ impl NetClientClock { connect_raw( self.as_ptr() as *mut _, b"notify::round-trip-limit\0".as_ptr() as *const _, - Some(transmute(notify_round_trip_limit_trampoline:: as usize)), + Some(*(¬ify_round_trip_limit_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-net/src/auto/net_time_provider.rs b/gstreamer-net/src/auto/net_time_provider.rs index 87b96b2ab..6e67264e7 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst; use gst_net_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct NetTimeProvider(Object) @extends gst::Object; @@ -137,7 +136,7 @@ impl NetTimeProvider { connect_raw( self.as_ptr() as *mut _, b"notify::active\0".as_ptr() as *const _, - Some(transmute(notify_active_trampoline:: as usize)), + Some(*(¬ify_active_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -162,7 +161,7 @@ impl NetTimeProvider { connect_raw( self.as_ptr() as *mut _, b"notify::qos-dscp\0".as_ptr() as *const _, - Some(transmute(notify_qos_dscp_trampoline:: as usize)), + Some(*(¬ify_qos_dscp_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-net/src/auto/ptp_clock.rs b/gstreamer-net/src/auto/ptp_clock.rs index 1514be6f0..681a8209e 100644 --- a/gstreamer-net/src/auto/ptp_clock.rs +++ b/gstreamer-net/src/auto/ptp_clock.rs @@ -13,7 +13,6 @@ use gobject_sys; use gst; use gst_net_sys; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct PtpClock(Object) @extends gst::Clock, gst::Object; @@ -104,9 +103,7 @@ impl PtpClock { connect_raw( self.as_ptr() as *mut _, b"notify::grandmaster-clock-id\0".as_ptr() as *const _, - Some(transmute( - notify_grandmaster_clock_id_trampoline:: as usize, - )), + Some(*(¬ify_grandmaster_clock_id_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -131,7 +128,7 @@ impl PtpClock { connect_raw( self.as_ptr() as *mut _, b"notify::internal-clock\0".as_ptr() as *const _, - Some(transmute(notify_internal_clock_trampoline:: as usize)), + Some(*(¬ify_internal_clock_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -156,7 +153,7 @@ impl PtpClock { connect_raw( self.as_ptr() as *mut _, b"notify::master-clock-id\0".as_ptr() as *const _, - Some(transmute(notify_master_clock_id_trampoline:: as usize)), + Some(*(¬ify_master_clock_id_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index c65244581..40cc36051 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -18,7 +18,6 @@ use gst; use gst_pbutils_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use DiscovererInfo; @@ -139,7 +138,7 @@ impl Discoverer { connect_raw( self.as_ptr() as *mut _, b"discovered\0".as_ptr() as *const _, - Some(transmute(discovered_trampoline:: as usize)), + Some(*(&discovered_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -161,7 +160,7 @@ impl Discoverer { connect_raw( self.as_ptr() as *mut _, b"finished\0".as_ptr() as *const _, - Some(transmute(finished_trampoline:: as usize)), + Some(*(&finished_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -186,7 +185,7 @@ impl Discoverer { connect_raw( self.as_ptr() as *mut _, b"source-setup\0".as_ptr() as *const _, - Some(transmute(source_setup_trampoline:: as usize)), + Some(*(&source_setup_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -208,7 +207,7 @@ impl Discoverer { connect_raw( self.as_ptr() as *mut _, b"starting\0".as_ptr() as *const _, - Some(transmute(starting_trampoline:: as usize)), + Some(*(&starting_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -234,7 +233,7 @@ impl Discoverer { connect_raw( self.as_ptr() as *mut _, b"notify::use-cache\0".as_ptr() as *const _, - Some(transmute(notify_use_cache_trampoline:: as usize)), + Some(*(¬ify_use_cache_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-pbutils/src/auto/enums.rs b/gstreamer-pbutils/src/auto/enums.rs index ad1330f2e..b7ebb69b1 100644 --- a/gstreamer-pbutils/src/auto/enums.rs +++ b/gstreamer-pbutils/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_pbutils_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum DiscovererResult { Ok, UriInvalid, diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index e2e92cc3d..e6acde11b 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -15,6 +15,7 @@ use gobject_sys; use gst_player_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PlayerColorBalanceType { Hue, Brightness, @@ -82,6 +83,7 @@ impl SetValue for PlayerColorBalanceType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PlayerError { Failed, #[doc(hidden)] @@ -155,6 +157,7 @@ impl SetValue for PlayerError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PlayerSnapshotFormat { RawNative, RawXrgb, @@ -197,6 +200,7 @@ impl FromGlib for PlayerSnapshotFormat } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PlayerState { Stopped, Buffering, diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 4607fa287..be5c4eed3 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -17,7 +17,6 @@ use gst_player_sys; use gst_video; use libc; use std::boxed::Box as Box_; -use std::mem::transmute; use PlayerAudioInfo; use PlayerColorBalanceType; use PlayerMediaInfo; @@ -475,7 +474,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"buffering\0".as_ptr() as *const _, - Some(transmute(buffering_trampoline:: as usize)), + Some(*(&buffering_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -494,7 +493,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"end-of-stream\0".as_ptr() as *const _, - Some(transmute(end_of_stream_trampoline:: as usize)), + Some(*(&end_of_stream_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -517,7 +516,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"error\0".as_ptr() as *const _, - Some(transmute(error_trampoline:: as usize)), + Some(*(&error_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -542,7 +541,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"media-info-updated\0".as_ptr() as *const _, - Some(transmute(media_info_updated_trampoline:: as usize)), + Some(*(&media_info_updated_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -561,7 +560,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"mute-changed\0".as_ptr() as *const _, - Some(transmute(mute_changed_trampoline:: as usize)), + Some(*(&mute_changed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -586,7 +585,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"state-changed\0".as_ptr() as *const _, - Some(transmute(state_changed_trampoline:: as usize)), + Some(*(&state_changed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -609,7 +608,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"uri-loaded\0".as_ptr() as *const _, - Some(transmute(uri_loaded_trampoline:: as usize)), + Some(*(&uri_loaded_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -635,7 +634,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"video-dimensions-changed\0".as_ptr() as *const _, - Some(transmute(video_dimensions_changed_trampoline:: as usize)), + Some(*(&video_dimensions_changed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -654,7 +653,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"volume-changed\0".as_ptr() as *const _, - Some(transmute(volume_changed_trampoline:: as usize)), + Some(*(&volume_changed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -677,7 +676,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"warning\0".as_ptr() as *const _, - Some(transmute(warning_trampoline:: as usize)), + Some(*(&warning_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -702,9 +701,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::audio-video-offset\0".as_ptr() as *const _, - Some(transmute( - notify_audio_video_offset_trampoline:: as usize, - )), + Some(*(¬ify_audio_video_offset_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -729,9 +726,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::current-audio-track\0".as_ptr() as *const _, - Some(transmute( - notify_current_audio_track_trampoline:: as usize, - )), + Some(*(¬ify_current_audio_track_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -758,9 +753,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::current-subtitle-track\0".as_ptr() as *const _, - Some(transmute( - notify_current_subtitle_track_trampoline:: as usize, - )), + Some(*(¬ify_current_subtitle_track_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -785,9 +778,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::current-video-track\0".as_ptr() as *const _, - Some(transmute( - notify_current_video_track_trampoline:: as usize, - )), + Some(*(¬ify_current_video_track_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -810,7 +801,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _, - Some(transmute(notify_duration_trampoline:: as usize)), + Some(*(¬ify_duration_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -835,7 +826,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::media-info\0".as_ptr() as *const _, - Some(transmute(notify_media_info_trampoline:: as usize)), + Some(*(¬ify_media_info_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -858,7 +849,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::mute\0".as_ptr() as *const _, - Some(transmute(notify_mute_trampoline:: as usize)), + Some(*(¬ify_mute_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -881,7 +872,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::pipeline\0".as_ptr() as *const _, - Some(transmute(notify_pipeline_trampoline:: as usize)), + Some(*(¬ify_pipeline_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -904,7 +895,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::position\0".as_ptr() as *const _, - Some(transmute(notify_position_trampoline:: as usize)), + Some(*(¬ify_position_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -927,7 +918,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::rate\0".as_ptr() as *const _, - Some(transmute(notify_rate_trampoline:: as usize)), + Some(*(¬ify_rate_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -953,9 +944,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::subtitle-video-offset\0".as_ptr() as *const _, - Some(transmute( - notify_subtitle_video_offset_trampoline:: as usize, - )), + Some(*(¬ify_subtitle_video_offset_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -978,7 +967,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::suburi\0".as_ptr() as *const _, - Some(transmute(notify_suburi_trampoline:: as usize)), + Some(*(¬ify_suburi_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1001,7 +990,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::uri\0".as_ptr() as *const _, - Some(transmute(notify_uri_trampoline:: as usize)), + Some(*(¬ify_uri_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1026,9 +1015,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::video-multiview-flags\0".as_ptr() as *const _, - Some(transmute( - notify_video_multiview_flags_trampoline:: as usize, - )), + Some(*(¬ify_video_multiview_flags_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1053,9 +1040,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::video-multiview-mode\0".as_ptr() as *const _, - Some(transmute( - notify_video_multiview_mode_trampoline:: as usize, - )), + Some(*(¬ify_video_multiview_mode_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1078,7 +1063,7 @@ impl Player { connect_raw( self.as_ptr() as *mut _, b"notify::volume\0".as_ptr() as *const _, - Some(transmute(notify_volume_trampoline:: as usize)), + Some(*(¬ify_volume_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } 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 d5668e2dd..7f04a6768 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -16,7 +16,6 @@ use gst; use gst_player_sys; use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use PlayerVideoRenderer; glib_wrapper! { @@ -131,7 +130,7 @@ impl PlayerVideoOverlayVideoRenderer { connect_raw( self.as_ptr() as *mut _, b"notify::video-sink\0".as_ptr() as *const _, - Some(transmute(notify_video_sink_trampoline:: as usize)), + Some(*(¬ify_video_sink_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -158,7 +157,7 @@ impl PlayerVideoOverlayVideoRenderer { connect_raw( self.as_ptr() as *mut _, b"notify::window-handle\0".as_ptr() as *const _, - Some(transmute(notify_window_handle_trampoline:: as usize)), + Some(*(¬ify_window_handle_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index f4202498f..7d6011d3b 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_rtp_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTCPFBType { FbTypeInvalid, RtpfbTypeNack, @@ -91,6 +92,7 @@ impl SetValue for RTCPFBType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTCPSDESType { Invalid, End, @@ -172,6 +174,7 @@ impl SetValue for RTCPSDESType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTCPType { Invalid, Sr, @@ -251,6 +254,7 @@ impl SetValue for RTCPType { #[cfg(any(feature = "v1_16", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTCPXRType { Invalid, Lrle, @@ -332,6 +336,7 @@ impl SetValue for RTCPXRType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTPPayload { Pcmu, _1016, @@ -461,6 +466,7 @@ impl SetValue for RTPPayload { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTPProfile { Unknown, Avp, diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-rtsp-server/src/auto/enums.rs b/gstreamer-rtsp-server/src/auto/enums.rs index 152c7d1eb..dc4781180 100644 --- a/gstreamer-rtsp-server/src/auto/enums.rs +++ b/gstreamer-rtsp-server/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_rtsp_server_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPAddressPoolResult { Ok, Einval, @@ -57,6 +58,7 @@ impl FromGlib for RTSPAddressPool } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPFilterResult { Remove, Keep, @@ -93,6 +95,7 @@ impl FromGlib for RTSPFilterResult { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPMediaStatus { Unprepared, Unpreparing, @@ -138,6 +141,7 @@ impl FromGlib for RTSPMediaStatus { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPPublishClockMode { None, Clock, @@ -200,6 +204,7 @@ impl SetValue for RTSPPublishClockMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPSuspendMode { None, Pause, @@ -260,6 +265,7 @@ impl SetValue for RTSPSuspendMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPThreadType { Client, Media, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index 73fd9c658..ebb2aae19 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -18,7 +18,6 @@ use gst_rtsp_server_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] use std; use std::boxed::Box as Box_; -use std::mem::transmute; use RTSPToken; glib_wrapper! { @@ -309,7 +308,7 @@ impl> RTSPAuthExt for O { connect_raw( self.as_ptr() as *mut _, b"accept-certificate\0".as_ptr() as *const _, - Some(transmute(accept_certificate_trampoline:: as usize)), + Some(*(&accept_certificate_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index a89a2a27d..ac29d5ee4 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -17,7 +17,6 @@ use gst_rtsp_server_sys; #[cfg(any(feature = "v1_12", feature = "dox"))] use gst_rtsp_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use RTSPAuth; use RTSPContext; use RTSPFilterResult; @@ -448,7 +447,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"announce-request\0".as_ptr() as *const _, - Some(transmute(announce_request_trampoline:: as usize)), + Some(*(&announce_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -473,7 +472,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"closed\0".as_ptr() as *const _, - Some(transmute(closed_trampoline:: as usize)), + Some(*(&closed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -504,7 +503,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"describe-request\0".as_ptr() as *const _, - Some(transmute(describe_request_trampoline:: as usize)), + Some(*(&describe_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -535,9 +534,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"get-parameter-request\0".as_ptr() as *const _, - Some(transmute( - get_parameter_request_trampoline:: as usize, - )), + Some(*(&get_parameter_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -568,7 +565,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"handle-response\0".as_ptr() as *const _, - Some(transmute(handle_response_trampoline:: as usize)), + Some(*(&handle_response_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -599,7 +596,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"new-session\0".as_ptr() as *const _, - Some(transmute(new_session_trampoline:: as usize)), + Some(*(&new_session_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -630,7 +627,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"options-request\0".as_ptr() as *const _, - Some(transmute(options_request_trampoline:: as usize)), + Some(*(&options_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -661,7 +658,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pause-request\0".as_ptr() as *const _, - Some(transmute(pause_request_trampoline:: as usize)), + Some(*(&pause_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -692,7 +689,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"play-request\0".as_ptr() as *const _, - Some(transmute(play_request_trampoline:: as usize)), + Some(*(&play_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -728,9 +725,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-announce-request\0".as_ptr() as *const _, - Some(transmute( - pre_announce_request_trampoline:: as usize, - )), + Some(*(&pre_announce_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -766,9 +761,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-describe-request\0".as_ptr() as *const _, - Some(transmute( - pre_describe_request_trampoline:: as usize, - )), + Some(*(&pre_describe_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -804,9 +797,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-get-parameter-request\0".as_ptr() as *const _, - Some(transmute( - pre_get_parameter_request_trampoline:: as usize, - )), + Some(*(&pre_get_parameter_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -842,9 +833,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-options-request\0".as_ptr() as *const _, - Some(transmute( - pre_options_request_trampoline:: as usize, - )), + Some(*(&pre_options_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -880,7 +869,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-pause-request\0".as_ptr() as *const _, - Some(transmute(pre_pause_request_trampoline:: as usize)), + Some(*(&pre_pause_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -916,7 +905,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-play-request\0".as_ptr() as *const _, - Some(transmute(pre_play_request_trampoline:: as usize)), + Some(*(&pre_play_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -952,7 +941,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-record-request\0".as_ptr() as *const _, - Some(transmute(pre_record_request_trampoline:: as usize)), + Some(*(&pre_record_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -988,9 +977,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-set-parameter-request\0".as_ptr() as *const _, - Some(transmute( - pre_set_parameter_request_trampoline:: as usize, - )), + Some(*(&pre_set_parameter_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1026,7 +1013,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-setup-request\0".as_ptr() as *const _, - Some(transmute(pre_setup_request_trampoline:: as usize)), + Some(*(&pre_setup_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1062,9 +1049,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"pre-teardown-request\0".as_ptr() as *const _, - Some(transmute( - pre_teardown_request_trampoline:: as usize, - )), + Some(*(&pre_teardown_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1095,7 +1080,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"record-request\0".as_ptr() as *const _, - Some(transmute(record_request_trampoline:: as usize)), + Some(*(&record_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1130,9 +1115,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"set-parameter-request\0".as_ptr() as *const _, - Some(transmute( - set_parameter_request_trampoline:: as usize, - )), + Some(*(&set_parameter_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1163,7 +1146,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"setup-request\0".as_ptr() as *const _, - Some(transmute(setup_request_trampoline:: as usize)), + Some(*(&setup_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1194,7 +1177,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"teardown-request\0".as_ptr() as *const _, - Some(transmute(teardown_request_trampoline:: as usize)), + Some(*(&teardown_request_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1219,9 +1202,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::drop-backlog\0".as_ptr() as *const _, - Some(transmute( - notify_drop_backlog_trampoline:: as usize, - )), + Some(*(¬ify_drop_backlog_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1246,9 +1227,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::mount-points\0".as_ptr() as *const _, - Some(transmute( - notify_mount_points_trampoline:: as usize, - )), + Some(*(¬ify_mount_points_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1273,9 +1252,7 @@ impl> RTSPClientExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::session-pool\0".as_ptr() as *const _, - Some(transmute( - notify_session_pool_trampoline:: as usize, - )), + Some(*(¬ify_session_pool_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index a637b19e0..327c42c54 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -18,7 +18,6 @@ use gst_rtsp; use gst_rtsp_server_sys; use libc; use std::boxed::Box as Box_; -use std::mem::transmute; use RTSPAddressPool; use RTSPMediaStatus; use RTSPPublishClockMode; @@ -935,7 +934,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"new-state\0".as_ptr() as *const _, - Some(transmute(new_state_trampoline:: as usize)), + Some(*(&new_state_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -966,7 +965,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"new-stream\0".as_ptr() as *const _, - Some(transmute(new_stream_trampoline:: as usize)), + Some(*(&new_stream_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -987,7 +986,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"prepared\0".as_ptr() as *const _, - Some(transmute(prepared_trampoline:: as usize)), + Some(*(&prepared_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1018,7 +1017,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"removed-stream\0".as_ptr() as *const _, - Some(transmute(removed_stream_trampoline:: as usize)), + Some(*(&removed_stream_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1043,7 +1042,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"target-state\0".as_ptr() as *const _, - Some(transmute(target_state_trampoline:: as usize)), + Some(*(&target_state_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1064,7 +1063,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"unprepared\0".as_ptr() as *const _, - Some(transmute(unprepared_trampoline:: as usize)), + Some(*(&unprepared_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1092,9 +1091,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::bind-mcast-address\0".as_ptr() as *const _, - Some(transmute( - notify_bind_mcast_address_trampoline:: as usize, - )), + Some(*(¬ify_bind_mcast_address_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1119,7 +1116,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::buffer-size\0".as_ptr() as *const _, - Some(transmute(notify_buffer_size_trampoline:: as usize)), + Some(*(¬ify_buffer_size_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1144,7 +1141,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::clock\0".as_ptr() as *const _, - Some(transmute(notify_clock_trampoline:: as usize)), + Some(*(¬ify_clock_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1169,9 +1166,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::eos-shutdown\0".as_ptr() as *const _, - Some(transmute( - notify_eos_shutdown_trampoline:: as usize, - )), + Some(*(¬ify_eos_shutdown_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1196,7 +1191,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::latency\0".as_ptr() as *const _, - Some(transmute(notify_latency_trampoline:: as usize)), + Some(*(¬ify_latency_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1221,9 +1216,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-mcast-ttl\0".as_ptr() as *const _, - Some(transmute( - notify_max_mcast_ttl_trampoline:: as usize, - )), + Some(*(¬ify_max_mcast_ttl_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1248,7 +1241,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::profiles\0".as_ptr() as *const _, - Some(transmute(notify_profiles_trampoline:: as usize)), + Some(*(¬ify_profiles_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1273,7 +1266,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::protocols\0".as_ptr() as *const _, - Some(transmute(notify_protocols_trampoline:: as usize)), + Some(*(¬ify_protocols_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1298,7 +1291,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::reusable\0".as_ptr() as *const _, - Some(transmute(notify_reusable_trampoline:: as usize)), + Some(*(¬ify_reusable_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1323,7 +1316,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::shared\0".as_ptr() as *const _, - Some(transmute(notify_shared_trampoline:: as usize)), + Some(*(¬ify_shared_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1351,9 +1344,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::stop-on-disconnect\0".as_ptr() as *const _, - Some(transmute( - notify_stop_on_disconnect_trampoline:: as usize, - )), + Some(*(¬ify_stop_on_disconnect_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1378,9 +1369,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::suspend-mode\0".as_ptr() as *const _, - Some(transmute( - notify_suspend_mode_trampoline:: as usize, - )), + Some(*(¬ify_suspend_mode_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1405,9 +1394,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::time-provider\0".as_ptr() as *const _, - Some(transmute( - notify_time_provider_trampoline:: as usize, - )), + Some(*(¬ify_time_provider_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1435,9 +1422,7 @@ impl> RTSPMediaExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::transport-mode\0".as_ptr() as *const _, - Some(transmute( - notify_transport_mode_trampoline:: as usize, - )), + Some(*(¬ify_transport_mode_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index ea82267c6..bf823bcb0 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -17,7 +17,6 @@ use gst; use gst_rtsp; use gst_rtsp_server_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use RTSPAddressPool; use RTSPMedia; use RTSPPublishClockMode; @@ -733,7 +732,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"media-configure\0".as_ptr() as *const _, - Some(transmute(media_configure_trampoline:: as usize)), + Some(*(&media_configure_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -764,7 +763,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"media-constructed\0".as_ptr() as *const _, - Some(transmute(media_constructed_trampoline:: as usize)), + Some(*(&media_constructed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -792,9 +791,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::bind-mcast-address\0".as_ptr() as *const _, - Some(transmute( - notify_bind_mcast_address_trampoline:: as usize, - )), + Some(*(¬ify_bind_mcast_address_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -819,7 +816,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::buffer-size\0".as_ptr() as *const _, - Some(transmute(notify_buffer_size_trampoline:: as usize)), + Some(*(¬ify_buffer_size_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -844,7 +841,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::clock\0".as_ptr() as *const _, - Some(transmute(notify_clock_trampoline:: as usize)), + Some(*(¬ify_clock_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -869,9 +866,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::eos-shutdown\0".as_ptr() as *const _, - Some(transmute( - notify_eos_shutdown_trampoline:: as usize, - )), + Some(*(¬ify_eos_shutdown_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -896,7 +891,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::latency\0".as_ptr() as *const _, - Some(transmute(notify_latency_trampoline:: as usize)), + Some(*(¬ify_latency_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -921,7 +916,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::launch\0".as_ptr() as *const _, - Some(transmute(notify_launch_trampoline:: as usize)), + Some(*(¬ify_launch_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -946,9 +941,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-mcast-ttl\0".as_ptr() as *const _, - Some(transmute( - notify_max_mcast_ttl_trampoline:: as usize, - )), + Some(*(¬ify_max_mcast_ttl_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -973,7 +966,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::profiles\0".as_ptr() as *const _, - Some(transmute(notify_profiles_trampoline:: as usize)), + Some(*(¬ify_profiles_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -998,7 +991,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::protocols\0".as_ptr() as *const _, - Some(transmute(notify_protocols_trampoline:: as usize)), + Some(*(¬ify_protocols_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1023,7 +1016,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::shared\0".as_ptr() as *const _, - Some(transmute(notify_shared_trampoline:: as usize)), + Some(*(¬ify_shared_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1051,9 +1044,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::stop-on-disconnect\0".as_ptr() as *const _, - Some(transmute( - notify_stop_on_disconnect_trampoline:: as usize, - )), + Some(*(¬ify_stop_on_disconnect_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1078,9 +1069,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::suspend-mode\0".as_ptr() as *const _, - Some(transmute( - notify_suspend_mode_trampoline:: as usize, - )), + Some(*(¬ify_suspend_mode_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1108,9 +1097,7 @@ impl> RTSPMediaFactoryExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::transport-mode\0".as_ptr() as *const _, - Some(transmute( - notify_transport_mode_trampoline:: as usize, - )), + Some(*(¬ify_transport_mode_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } 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 b193d37ae..6d00e09e3 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -14,7 +14,6 @@ use glib_sys; use gobject_sys; use gst_rtsp_server_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use RTSPMediaFactory; glib_wrapper! { @@ -125,7 +124,7 @@ impl> RTSPMediaFactoryURIExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::uri\0".as_ptr() as *const _, - Some(transmute(notify_uri_trampoline:: as usize)), + Some(*(¬ify_uri_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -150,7 +149,7 @@ impl> RTSPMediaFactoryURIExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::use-gstpay\0".as_ptr() as *const _, - Some(transmute(notify_use_gstpay_trampoline:: as usize)), + Some(*(¬ify_use_gstpay_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index edf63f585..d17d72a43 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -13,7 +13,6 @@ use glib::GString; use glib_sys; use gst_rtsp_server_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use RTSPAuth; use RTSPClient; @@ -405,7 +404,7 @@ impl> RTSPServerExt for O { connect_raw( self.as_ptr() as *mut _, b"client-connected\0".as_ptr() as *const _, - Some(transmute(client_connected_trampoline:: as usize)), + Some(*(&client_connected_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -430,7 +429,7 @@ impl> RTSPServerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::address\0".as_ptr() as *const _, - Some(transmute(notify_address_trampoline:: as usize)), + Some(*(¬ify_address_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -455,7 +454,7 @@ impl> RTSPServerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::backlog\0".as_ptr() as *const _, - Some(transmute(notify_backlog_trampoline:: as usize)), + Some(*(¬ify_backlog_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -480,7 +479,7 @@ impl> RTSPServerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::bound-port\0".as_ptr() as *const _, - Some(transmute(notify_bound_port_trampoline:: as usize)), + Some(*(¬ify_bound_port_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -505,9 +504,7 @@ impl> RTSPServerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::mount-points\0".as_ptr() as *const _, - Some(transmute( - notify_mount_points_trampoline:: as usize, - )), + Some(*(¬ify_mount_points_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -532,7 +529,7 @@ impl> RTSPServerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::service\0".as_ptr() as *const _, - Some(transmute(notify_service_trampoline:: as usize)), + Some(*(¬ify_service_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -557,9 +554,7 @@ impl> RTSPServerExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::session-pool\0".as_ptr() as *const _, - Some(transmute( - notify_session_pool_trampoline:: as usize, - )), + Some(*(¬ify_session_pool_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 0def1cfe8..fecd77fd0 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -16,7 +16,6 @@ use gobject_sys; use gst_rtsp_server_sys; use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use RTSPFilterResult; use RTSPMedia; use RTSPSessionMedia; @@ -297,7 +296,7 @@ impl> RTSPSessionExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::timeout\0".as_ptr() as *const _, - Some(transmute(notify_timeout_trampoline:: as usize)), + Some(*(¬ify_timeout_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -325,9 +324,9 @@ impl> RTSPSessionExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::timeout-always-visible\0".as_ptr() as *const _, - Some(transmute( - notify_timeout_always_visible_trampoline:: as usize, - )), + Some( + *(¬ify_timeout_always_visible_trampoline:: as *const _ as *const _), + ), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs index 71144af4e..5531d41b8 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs @@ -11,7 +11,6 @@ use glib::translate::*; use glib_sys; use gst_rtsp_server_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use RTSPFilterResult; use RTSPSession; @@ -203,7 +202,7 @@ impl> RTSPSessionPoolExt for O { connect_raw( self.as_ptr() as *mut _, b"session-removed\0".as_ptr() as *const _, - Some(transmute(session_removed_trampoline:: as usize)), + Some(*(&session_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -228,9 +227,7 @@ impl> RTSPSessionPoolExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-sessions\0".as_ptr() as *const _, - Some(transmute( - notify_max_sessions_trampoline:: as usize, - )), + Some(*(¬ify_max_sessions_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index 57f195814..58a170df6 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -17,7 +17,6 @@ use gst_rtsp_server_sys; use gst_sys; use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use RTSPAddress; use RTSPAddressPool; use RTSPFilterResult; @@ -1099,7 +1098,7 @@ impl> RTSPStreamExt for O { connect_raw( self.as_ptr() as *mut _, b"new-rtcp-encoder\0".as_ptr() as *const _, - Some(transmute(new_rtcp_encoder_trampoline:: as usize)), + Some(*(&new_rtcp_encoder_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1130,7 +1129,7 @@ impl> RTSPStreamExt for O { connect_raw( self.as_ptr() as *mut _, b"new-rtp-encoder\0".as_ptr() as *const _, - Some(transmute(new_rtp_encoder_trampoline:: as usize)), + Some(*(&new_rtp_encoder_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1161,9 +1160,7 @@ impl> RTSPStreamExt for O { connect_raw( self.as_ptr() as *mut _, b"new-rtp-rtcp-decoder\0".as_ptr() as *const _, - Some(transmute( - new_rtp_rtcp_decoder_trampoline:: as usize, - )), + Some(*(&new_rtp_rtcp_decoder_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1188,7 +1185,7 @@ impl> RTSPStreamExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::control\0".as_ptr() as *const _, - Some(transmute(notify_control_trampoline:: as usize)), + Some(*(¬ify_control_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1213,7 +1210,7 @@ impl> RTSPStreamExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::profiles\0".as_ptr() as *const _, - Some(transmute(notify_profiles_trampoline:: as usize)), + Some(*(¬ify_profiles_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -1238,7 +1235,7 @@ impl> RTSPStreamExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::protocols\0".as_ptr() as *const _, - Some(transmute(notify_protocols_trampoline:: as usize)), + Some(*(¬ify_protocols_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs index e1406d6b2..9eb22a559 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs @@ -10,7 +10,6 @@ use glib::translate::*; use glib_sys; use gst_rtsp_server_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use RTSPContext; use RTSPThread; use RTSPThreadType; @@ -108,7 +107,7 @@ impl> RTSPThreadPoolExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::max-threads\0".as_ptr() as *const _, - Some(transmute(notify_max_threads_trampoline:: as usize)), + Some(*(¬ify_max_threads_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-rtsp/src/auto/enums.rs b/gstreamer-rtsp/src/auto/enums.rs index 92dadb7fe..ffb475d8f 100644 --- a/gstreamer-rtsp/src/auto/enums.rs +++ b/gstreamer-rtsp/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_rtsp_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPAuthMethod { None, Basic, @@ -73,6 +74,7 @@ impl SetValue for RTSPAuthMethod { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPFamily { None, Inet, @@ -133,6 +135,7 @@ impl SetValue for RTSPFamily { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPHeaderField { Invalid, Accept, @@ -462,6 +465,7 @@ impl SetValue for RTSPHeaderField { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPMsgType { Invalid, Request, @@ -531,6 +535,7 @@ impl SetValue for RTSPMsgType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPRangeUnit { Smpte, Smpte30Drop, @@ -597,6 +602,7 @@ impl SetValue for RTSPRangeUnit { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPResult { Ok, Error, @@ -702,6 +708,7 @@ impl SetValue for RTSPResult { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPState { Invalid, Init, @@ -771,6 +778,7 @@ impl SetValue for RTSPState { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPStatusCode { Invalid, Continue, @@ -982,6 +990,7 @@ impl SetValue for RTSPStatusCode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum RTSPTimeType { Seconds, Now, diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index fb4619ee7..1df0c952f 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_video_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoAlphaMode { Copy, Set, @@ -74,6 +75,7 @@ impl SetValue for VideoAlphaMode { #[cfg(any(feature = "v1_16", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoCaptionType { Unknown, Cea608Raw, @@ -146,6 +148,7 @@ impl SetValue for VideoCaptionType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoChromaMode { Full, UpsampleOnly, @@ -209,6 +212,7 @@ impl SetValue for VideoChromaMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoColorMatrix { Unknown, Rgb, @@ -281,6 +285,7 @@ impl SetValue for VideoColorMatrix { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoColorPrimaries { Unknown, Bt709, @@ -371,6 +376,7 @@ impl SetValue for VideoColorPrimaries { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoDitherMethod { None, Verterr, @@ -438,6 +444,7 @@ impl SetValue for VideoDitherMethod { #[cfg(any(feature = "v1_12", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoFieldOrder { Unknown, TopFieldFirst, @@ -506,6 +513,7 @@ impl SetValue for VideoFieldOrder { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoFormat { Unknown, Encoded, @@ -815,6 +823,7 @@ impl SetValue for VideoFormat { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoGammaMode { None, Remap, @@ -872,6 +881,7 @@ impl SetValue for VideoGammaMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoInterlaceMode { Progressive, Interleaved, @@ -938,6 +948,7 @@ impl SetValue for VideoInterlaceMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoMatrixMode { Full, InputOnly, @@ -1001,6 +1012,7 @@ impl SetValue for VideoMatrixMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoMultiviewFramePacking { None, Mono, @@ -1102,6 +1114,7 @@ impl SetValue for VideoMultiviewFramePacking { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoMultiviewMode { None, Mono, @@ -1204,6 +1217,7 @@ impl SetValue for VideoMultiviewMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoPrimariesMode { None, MergeOnly, @@ -1264,6 +1278,7 @@ impl SetValue for VideoPrimariesMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoResamplerMethod { Nearest, Linear, @@ -1330,6 +1345,7 @@ impl SetValue for VideoResamplerMethod { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoTileMode { Unknown, Zflipz2x2, @@ -1387,6 +1403,7 @@ impl SetValue for VideoTileMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum VideoTransferFunction { Unknown, Gamma10, diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index 6ef1ccc3a..6f727546a 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -15,7 +15,6 @@ use gobject_sys; use gst; use gst_video_sys; use std::boxed::Box as Box_; -use std::mem::transmute; #[cfg(any(feature = "v1_14", feature = "dox"))] use VideoCodecFrame; @@ -184,7 +183,7 @@ impl> VideoEncoderExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::qos\0".as_ptr() as *const _, - Some(transmute(notify_qos_trampoline:: as usize)), + Some(*(¬ify_qos_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 917e7dd77..3f25d0b4b 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -14,6 +14,7 @@ use gst_web_rtc_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCBundlePolicy { None, Balanced, @@ -83,6 +84,7 @@ impl SetValue for WebRTCBundlePolicy { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCDTLSSetup { None, Actpass, @@ -146,6 +148,7 @@ impl SetValue for WebRTCDTLSSetup { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCDTLSTransportState { New, Closed, @@ -221,6 +224,7 @@ impl SetValue for WebRTCDTLSTransportState { #[cfg(any(feature = "v1_16", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCDataChannelState { New, Connecting, @@ -298,6 +302,7 @@ impl SetValue for WebRTCDataChannelState { #[cfg(any(feature = "v1_14_1", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCFECType { None, UlpRed, @@ -361,6 +366,7 @@ impl SetValue for WebRTCFECType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCICEComponent { Rtp, Rtcp, @@ -418,6 +424,7 @@ impl SetValue for WebRTCICEComponent { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCICEConnectionState { New, Checking, @@ -502,6 +509,7 @@ impl SetValue for WebRTCICEConnectionState { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCICEGatheringState { New, Gathering, @@ -566,6 +574,7 @@ impl SetValue for WebRTCICEGatheringState { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCICERole { Controlled, Controlling, @@ -624,6 +633,7 @@ impl SetValue for WebRTCICERole { #[cfg(any(feature = "v1_16", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCICETransportPolicy { All, Relay, @@ -689,6 +699,7 @@ impl SetValue for WebRTCICETransportPolicy { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCPeerConnectionState { New, Connecting, @@ -769,6 +780,7 @@ impl SetValue for WebRTCPeerConnectionState { #[cfg(any(feature = "v1_16", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCPriorityType { VeryLow, Low, @@ -838,6 +850,7 @@ impl SetValue for WebRTCPriorityType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCRTPTransceiverDirection { None, Inactive, @@ -915,6 +928,7 @@ impl SetValue for WebRTCRTPTransceiverDirection { #[cfg(any(feature = "v1_16", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCSCTPTransportState { New, Connecting, @@ -990,6 +1004,7 @@ impl SetValue for WebRTCSCTPTransportState { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCSDPType { Offer, Pranswer, @@ -1053,6 +1068,7 @@ impl SetValue for WebRTCSDPType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCSignalingState { Stable, Closed, @@ -1130,6 +1146,7 @@ impl SetValue for WebRTCSignalingState { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum WebRTCStatsType { Codec, InboundRtp, diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e) diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 6655fa1f9..45191aa44 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -13,7 +13,6 @@ use glib_sys; use gobject_sys; use gst_web_rtc_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use WebRTCDTLSTransportState; use WebRTCICETransport; @@ -189,7 +188,7 @@ impl WebRTCDTLSTransport { connect_raw( self.as_ptr() as *mut _, b"notify::certificate\0".as_ptr() as *const _, - Some(transmute(notify_certificate_trampoline:: as usize)), + Some(*(¬ify_certificate_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -214,7 +213,7 @@ impl WebRTCDTLSTransport { connect_raw( self.as_ptr() as *mut _, b"notify::client\0".as_ptr() as *const _, - Some(transmute(notify_client_trampoline:: as usize)), + Some(*(¬ify_client_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -241,9 +240,7 @@ impl WebRTCDTLSTransport { connect_raw( self.as_ptr() as *mut _, b"notify::remote-certificate\0".as_ptr() as *const _, - Some(transmute( - notify_remote_certificate_trampoline:: as usize, - )), + Some(*(¬ify_remote_certificate_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -268,7 +265,7 @@ impl WebRTCDTLSTransport { connect_raw( self.as_ptr() as *mut _, b"notify::state\0".as_ptr() as *const _, - Some(transmute(notify_state_trampoline:: as usize)), + Some(*(¬ify_state_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -295,7 +292,7 @@ impl WebRTCDTLSTransport { connect_raw( self.as_ptr() as *mut _, b"notify::transport\0".as_ptr() as *const _, - Some(transmute(notify_transport_trampoline:: as usize)), + Some(*(¬ify_transport_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index b1a7007a1..c35d765e1 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst_web_rtc_sys; use libc; use std::boxed::Box as Box_; -use std::mem::transmute; use WebRTCICEComponent; use WebRTCICEConnectionState; use WebRTCICEGatheringState; @@ -129,7 +128,7 @@ impl WebRTCICETransport { connect_raw( self.as_ptr() as *mut _, b"on-new-candidate\0".as_ptr() as *const _, - Some(transmute(on_new_candidate_trampoline:: as usize)), + Some(*(&on_new_candidate_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -155,9 +154,7 @@ impl WebRTCICETransport { connect_raw( self.as_ptr() as *mut _, b"on-selected-candidate-pair-change\0".as_ptr() as *const _, - Some(transmute( - on_selected_candidate_pair_change_trampoline:: as usize, - )), + Some(*(&on_selected_candidate_pair_change_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -184,7 +181,7 @@ impl WebRTCICETransport { connect_raw( self.as_ptr() as *mut _, b"notify::gathering-state\0".as_ptr() as *const _, - Some(transmute(notify_gathering_state_trampoline:: as usize)), + Some(*(¬ify_gathering_state_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -209,7 +206,7 @@ impl WebRTCICETransport { connect_raw( self.as_ptr() as *mut _, b"notify::state\0".as_ptr() as *const _, - Some(transmute(notify_state_trampoline:: as usize)), + Some(*(¬ify_state_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index d954a36bb..d09254a25 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -14,7 +14,6 @@ use glib_sys; use gobject_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use ChildProxy; use Element; #[cfg(any(feature = "v1_10", feature = "dox"))] @@ -330,7 +329,7 @@ impl> GstBinExt for O { connect_raw( self.as_ptr() as *mut _, b"deep-element-added\0".as_ptr() as *const _, - Some(transmute(deep_element_added_trampoline:: as usize)), + Some(*(&deep_element_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -364,9 +363,7 @@ impl> GstBinExt for O { connect_raw( self.as_ptr() as *mut _, b"deep-element-removed\0".as_ptr() as *const _, - Some(transmute( - deep_element_removed_trampoline:: as usize, - )), + Some(*(&deep_element_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -397,7 +394,7 @@ impl> GstBinExt for O { connect_raw( self.as_ptr() as *mut _, b"element-added\0".as_ptr() as *const _, - Some(transmute(element_added_trampoline:: as usize)), + Some(*(&element_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -428,7 +425,7 @@ impl> GstBinExt for O { connect_raw( self.as_ptr() as *mut _, b"element-removed\0".as_ptr() as *const _, - Some(transmute(element_removed_trampoline:: as usize)), + Some(*(&element_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -456,9 +453,7 @@ impl> GstBinExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::async-handling\0".as_ptr() as *const _, - Some(transmute( - notify_async_handling_trampoline:: as usize, - )), + Some(*(¬ify_async_handling_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -486,9 +481,7 @@ impl> GstBinExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::message-forward\0".as_ptr() as *const _, - Some(transmute( - notify_message_forward_trampoline:: as usize, - )), + Some(*(¬ify_message_forward_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 79802f170..f11ad4f3e 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -10,7 +10,6 @@ use glib::translate::*; use glib_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use ClockTime; use Message; use Object; @@ -125,7 +124,7 @@ impl Bus { connect_raw( self.as_ptr() as *mut _, b"message\0".as_ptr() as *const _, - Some(transmute(message_trampoline:: as usize)), + Some(*(&message_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -150,7 +149,7 @@ impl Bus { connect_raw( self.as_ptr() as *mut _, b"sync-message\0".as_ptr() as *const _, - Some(transmute(sync_message_trampoline:: as usize)), + Some(*(&sync_message_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index 628ef577c..fdbf7561a 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -14,7 +14,6 @@ use gobject_sys; use gst_sys; use libc; use std::boxed::Box as Box_; -use std::mem::transmute; glib_wrapper! { pub struct ChildProxy(Interface); @@ -163,7 +162,7 @@ impl> ChildProxyExt for O { connect_raw( self.as_ptr() as *mut _, b"child-added\0".as_ptr() as *const _, - Some(transmute(child_added_trampoline:: as usize)), + Some(*(&child_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -196,7 +195,7 @@ impl> ChildProxyExt for O { connect_raw( self.as_ptr() as *mut _, b"child-removed\0".as_ptr() as *const _, - Some(transmute(child_removed_trampoline:: as usize)), + Some(*(&child_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 5e78a27c7..708e71869 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -15,7 +15,6 @@ use gobject_sys; use gst_sys; use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use ClockTime; use Object; @@ -439,7 +438,7 @@ impl> ClockExt for O { connect_raw( self.as_ptr() as *mut _, b"synced\0".as_ptr() as *const _, - Some(transmute(synced_trampoline:: as usize)), + Some(*(&synced_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -464,7 +463,7 @@ impl> ClockExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::timeout\0".as_ptr() as *const _, - Some(transmute(notify_timeout_trampoline:: as usize)), + Some(*(¬ify_timeout_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -489,7 +488,7 @@ impl> ClockExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::window-size\0".as_ptr() as *const _, - Some(transmute(notify_window_size_trampoline:: as usize)), + Some(*(¬ify_window_size_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -517,9 +516,7 @@ impl> ClockExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::window-threshold\0".as_ptr() as *const _, - Some(transmute( - notify_window_threshold_trampoline:: as usize, - )), + Some(*(¬ify_window_threshold_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index 4e820065e..1db45cdbb 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -12,7 +12,6 @@ use glib::GString; use glib_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Caps; use Element; use Object; @@ -141,7 +140,7 @@ impl> DeviceExt for O { connect_raw( self.as_ptr() as *mut _, b"removed\0".as_ptr() as *const _, - Some(transmute(removed_trampoline:: as usize)), + Some(*(&removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 3b2dc1db1..fadaf6eb3 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -15,7 +15,6 @@ use glib_sys; use gobject_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Bus; use Device; use Object; @@ -159,7 +158,7 @@ impl> DeviceMonitorExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::show-all\0".as_ptr() as *const _, - Some(transmute(notify_show_all_trampoline:: as usize)), + Some(*(¬ify_show_all_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 5a43d6107..444a93f1d 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -13,7 +13,6 @@ use glib_sys; use gst_sys; use libc; use std::boxed::Box as Box_; -use std::mem::transmute; use Bus; use Device; use DeviceProviderFactory; @@ -197,7 +196,7 @@ impl> DeviceProviderExt for O { connect_raw( self.as_ptr() as *mut _, b"provider-hidden\0".as_ptr() as *const _, - Some(transmute(provider_hidden_trampoline:: as usize)), + Some(*(&provider_hidden_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -228,7 +227,7 @@ impl> DeviceProviderExt for O { connect_raw( self.as_ptr() as *mut _, b"provider-unhidden\0".as_ptr() as *const _, - Some(transmute(provider_unhidden_trampoline:: as usize)), + Some(*(&provider_unhidden_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 310139362..946b33d4d 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -11,7 +11,6 @@ use glib::translate::*; use glib_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use std::ptr; use Bus; use Caps; @@ -677,7 +676,7 @@ impl> ElementExt for O { connect_raw( self.as_ptr() as *mut _, b"no-more-pads\0".as_ptr() as *const _, - Some(transmute(no_more_pads_trampoline:: as usize)), + Some(*(&no_more_pads_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -705,7 +704,7 @@ impl> ElementExt for O { connect_raw( self.as_ptr() as *mut _, b"pad-added\0".as_ptr() as *const _, - Some(transmute(pad_added_trampoline:: as usize)), + Some(*(&pad_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -733,7 +732,7 @@ impl> ElementExt for O { connect_raw( self.as_ptr() as *mut _, b"pad-removed\0".as_ptr() as *const _, - Some(transmute(pad_removed_trampoline:: as usize)), + Some(*(&pad_removed_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 5028f28c4..e298ee0d4 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -15,6 +15,7 @@ use gobject_sys; use gst_sys; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum BufferingMode { Stream, Download, @@ -78,6 +79,7 @@ impl SetValue for BufferingMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum BusSyncReply { Drop, Pass, @@ -138,6 +140,7 @@ impl SetValue for BusSyncReply { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum CapsIntersectMode { ZigZag, First, @@ -195,6 +198,7 @@ impl SetValue for CapsIntersectMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum ClockEntryType { Single, Periodic, @@ -253,6 +257,7 @@ impl SetValue for ClockEntryType { #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum ClockReturn { Ok, Early, @@ -328,6 +333,7 @@ impl SetValue for ClockReturn { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum ClockType { Realtime, Monotonic, @@ -388,6 +394,7 @@ impl SetValue for ClockType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum CoreError { Failed, TooLazy, @@ -517,6 +524,7 @@ impl SetValue for CoreError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum DebugLevel { None, Error, @@ -598,6 +606,7 @@ impl SetValue for DebugLevel { } #[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] +#[non_exhaustive] pub enum EventType { Unknown, FlushStart, @@ -740,6 +749,7 @@ impl SetValue for EventType { #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum FlowReturn { CustomSuccess2, CustomSuccess1, @@ -831,6 +841,7 @@ impl SetValue for FlowReturn { #[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] +#[non_exhaustive] pub enum Format { Undefined, Default, @@ -900,6 +911,7 @@ impl SetValue for Format { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum LibraryError { Failed, TooLazy, @@ -997,6 +1009,7 @@ impl SetValue for LibraryError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PadDirection { Unknown, Src, @@ -1058,6 +1071,7 @@ impl SetValue for PadDirection { #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PadLinkReturn { Ok, WrongHierarchy, @@ -1130,6 +1144,7 @@ impl SetValue for PadLinkReturn { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PadMode { None, Push, @@ -1190,6 +1205,7 @@ impl SetValue for PadMode { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PadPresence { Always, Sometimes, @@ -1250,6 +1266,7 @@ impl SetValue for PadPresence { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PadProbeReturn { Drop, Ok, @@ -1316,6 +1333,7 @@ impl SetValue for PadProbeReturn { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum ParseError { Syntax, NoSuchElement, @@ -1417,6 +1435,7 @@ impl SetValue for ParseError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PluginError { Module, Dependencies, @@ -1498,6 +1517,7 @@ impl SetValue for PluginError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum ProgressType { Start, Continue, @@ -1565,6 +1585,7 @@ impl SetValue for ProgressType { #[cfg(any(feature = "v1_14", feature = "dox"))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum PromiseResult { Pending, Interrupted, @@ -1634,6 +1655,7 @@ impl SetValue for PromiseResult { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum QOSType { Overflow, Underflow, @@ -1694,6 +1716,7 @@ impl SetValue for QOSType { } #[derive(Debug, Clone, Copy)] +#[non_exhaustive] pub enum Rank { None, Marginal, @@ -1757,6 +1780,7 @@ impl SetValue for Rank { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum ResourceError { Failed, TooLazy, @@ -1890,6 +1914,7 @@ impl SetValue for ResourceError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum SeekType { None, Set, @@ -1950,6 +1975,7 @@ impl SetValue for SeekType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum State { VoidPending, Null, @@ -2016,6 +2042,7 @@ impl SetValue for State { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum StateChange { NullToReady, ReadyToPaused, @@ -2098,6 +2125,7 @@ impl SetValue for StateChange { #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum StateChangeReturn { Failure, Success, @@ -2161,6 +2189,7 @@ impl SetValue for StateChangeReturn { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum StreamError { Failed, TooLazy, @@ -2286,6 +2315,7 @@ impl SetValue for StreamError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum StreamStatusType { Create, Enter, @@ -2358,6 +2388,7 @@ impl SetValue for StreamStatusType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum StructureChangeType { Link, Unlink, @@ -2415,6 +2446,7 @@ impl SetValue for StructureChangeType { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum TagFlag { Undefined, Meta, @@ -2481,6 +2513,7 @@ impl SetValue for TagFlag { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum TagMergeMode { Undefined, ReplaceAll, @@ -2557,6 +2590,7 @@ impl SetValue for TagMergeMode { #[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] +#[non_exhaustive] pub enum TagScope { Stream, Global, @@ -2614,6 +2648,7 @@ impl SetValue for TagScope { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum TaskState { Started, Stopped, @@ -2675,6 +2710,7 @@ impl SetValue for TaskState { #[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] +#[non_exhaustive] pub enum TocEntryType { Angle, Version, @@ -2748,6 +2784,7 @@ impl SetValue for TocEntryType { #[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] +#[non_exhaustive] pub enum TocLoopType { None, Forward, @@ -2812,6 +2849,7 @@ impl SetValue for TocLoopType { #[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] +#[non_exhaustive] pub enum TocScope { Global, Current, @@ -2869,6 +2907,7 @@ impl SetValue for TocScope { } #[derive(Debug, Clone, Copy)] +#[non_exhaustive] pub enum TypeFindProbability { None, Minimum, @@ -2938,6 +2977,7 @@ impl SetValue for TypeFindProbability { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum URIError { UnsupportedProtocol, BadUri, @@ -3023,6 +3063,7 @@ impl SetValue for URIError { } #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] +#[non_exhaustive] pub enum URIType { Unknown, Sink, diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index 365ca3a55..300f0c19f 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -12,7 +12,6 @@ use glib::GString; use glib_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use ClockTime; glib_wrapper! { @@ -308,7 +307,7 @@ impl> GstObjectExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::name\0".as_ptr() as *const _, - Some(transmute(notify_name_trampoline:: as usize)), + Some(*(¬ify_name_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -333,7 +332,7 @@ impl> GstObjectExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::parent\0".as_ptr() as *const _, - Some(transmute(notify_parent_trampoline:: as usize)), + Some(*(¬ify_parent_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index c967115f1..bd77f9aac 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -15,7 +15,6 @@ use glib_sys; use gobject_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Caps; use Element; use Event; @@ -582,7 +581,7 @@ impl> PadExt for O { connect_raw( self.as_ptr() as *mut _, b"linked\0".as_ptr() as *const _, - Some(transmute(linked_trampoline:: as usize)), + Some(*(&linked_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -610,7 +609,7 @@ impl> PadExt for O { connect_raw( self.as_ptr() as *mut _, b"unlinked\0".as_ptr() as *const _, - Some(transmute(unlinked_trampoline:: as usize)), + Some(*(&unlinked_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -635,7 +634,7 @@ impl> PadExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::caps\0".as_ptr() as *const _, - Some(transmute(notify_caps_trampoline:: as usize)), + Some(*(¬ify_caps_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -660,7 +659,7 @@ impl> PadExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::offset\0".as_ptr() as *const _, - Some(transmute(notify_offset_trampoline:: as usize)), + Some(*(¬ify_offset_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -685,7 +684,7 @@ impl> PadExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::template\0".as_ptr() as *const _, - Some(transmute(notify_template_trampoline:: as usize)), + Some(*(¬ify_template_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 6e6651cad..278da6b48 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -15,7 +15,6 @@ use glib_sys; use gobject_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Caps; use Object; use Pad; @@ -162,7 +161,7 @@ impl PadTemplate { connect_raw( self.as_ptr() as *mut _, b"pad-created\0".as_ptr() as *const _, - Some(transmute(pad_created_trampoline:: as usize)), + Some(*(&pad_created_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index 3b3e5e927..b96de3585 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -10,7 +10,6 @@ use glib::translate::*; use glib_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Bin; use ChildProxy; use Clock; @@ -166,9 +165,7 @@ impl> PipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::auto-flush-bus\0".as_ptr() as *const _, - Some(transmute( - notify_auto_flush_bus_trampoline:: as usize, - )), + Some(*(¬ify_auto_flush_bus_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -193,7 +190,7 @@ impl> PipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::delay\0".as_ptr() as *const _, - Some(transmute(notify_delay_trampoline:: as usize)), + Some(*(¬ify_delay_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -218,7 +215,7 @@ impl> PipelineExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::latency\0".as_ptr() as *const _, - Some(transmute(notify_latency_trampoline:: as usize)), + Some(*(¬ify_latency_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/registry.rs b/gstreamer/src/auto/registry.rs index 9c5d805a8..d86a4dfbc 100644 --- a/gstreamer/src/auto/registry.rs +++ b/gstreamer/src/auto/registry.rs @@ -12,7 +12,6 @@ use glib_sys; use gst_sys; use std; use std::boxed::Box as Box_; -use std::mem::transmute; use Object; use Plugin; use PluginFeature; @@ -233,7 +232,7 @@ impl Registry { connect_raw( self.as_ptr() as *mut _, b"feature-added\0".as_ptr() as *const _, - Some(transmute(feature_added_trampoline:: as usize)), + Some(*(&feature_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -258,7 +257,7 @@ impl Registry { connect_raw( self.as_ptr() as *mut _, b"plugin-added\0".as_ptr() as *const _, - Some(transmute(plugin_added_trampoline:: as usize)), + Some(*(&plugin_added_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index cc7d6b4d7..9e92223c2 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -13,7 +13,6 @@ use glib_sys; use gobject_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Caps; use Object; use StreamFlags; @@ -211,7 +210,7 @@ impl Stream { connect_raw( self.as_ptr() as *mut _, b"notify::caps\0".as_ptr() as *const _, - Some(transmute(notify_caps_trampoline:: as usize)), + Some(*(¬ify_caps_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -236,7 +235,7 @@ impl Stream { connect_raw( self.as_ptr() as *mut _, b"notify::stream-flags\0".as_ptr() as *const _, - Some(transmute(notify_stream_flags_trampoline:: as usize)), + Some(*(¬ify_stream_flags_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -261,7 +260,7 @@ impl Stream { connect_raw( self.as_ptr() as *mut _, b"notify::stream-type\0".as_ptr() as *const _, - Some(transmute(notify_stream_type_trampoline:: as usize)), + Some(*(¬ify_stream_type_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } @@ -284,7 +283,7 @@ impl Stream { connect_raw( self.as_ptr() as *mut _, b"notify::tags\0".as_ptr() as *const _, - Some(transmute(notify_tags_trampoline:: as usize)), + Some(*(¬ify_tags_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index 2b9de5552..c897e7380 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -13,7 +13,6 @@ use glib_sys; use gobject_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Object; #[cfg(any(feature = "v1_10", feature = "dox"))] use Stream; @@ -98,7 +97,7 @@ impl StreamCollection { connect_raw( self.as_ptr() as *mut _, b"notify::upstream-id\0".as_ptr() as *const _, - Some(transmute(notify_upstream_id_trampoline:: as usize)), + Some(*(¬ify_upstream_id_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index 3d669c5fd..de3f0b69b 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -13,7 +13,6 @@ use glib_sys; use gobject_sys; use gst_sys; use std::boxed::Box as Box_; -use std::mem::transmute; use Clock; use ClockType; use Object; @@ -101,7 +100,7 @@ impl> SystemClockExt for O { connect_raw( self.as_ptr() as *mut _, b"notify::clock-type\0".as_ptr() as *const _, - Some(transmute(notify_clock_type_trampoline:: as usize)), + Some(*(¬ify_clock_type_trampoline:: as *const _ as *const _)), Box_::into_raw(f), ) } diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index bb127cbf0..c2176ab7e 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 @ 997cbcb) -from gir-files (https://github.com/gtk-rs/gir-files @ a57b90d4) +Generated by gir (https://github.com/gtk-rs/gir @ 5231cae) +from gir-files (https://github.com/gtk-rs/gir-files @ 83f2748e)