mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-28 20:41:31 +00:00
Regenerate with latest gir
This commit is contained in:
parent
83f2748eb9
commit
d1665b8114
96 changed files with 471 additions and 595 deletions
|
@ -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<gst_app_sys::GstAppSink, gst_app_sys::GstAppSinkClass, AppSinkClass>) @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::<F> as usize)),
|
||||
Some(*(&eos_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_buffer_list_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_caps_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_drop_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_emit_signals_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_eos_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_max_buffers_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_wait_on_eos_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(&enough_data_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&need_data_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&seek_data_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_block_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_caps_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_current_level_bytes_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_duration_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_emit_signals_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_format_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_is_live_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_max_bytes_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_max_latency_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_min_latency_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_min_percent_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_size_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_stream_type_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<gst_audio_sys::GstAudioBaseSink, gst_audio_sys::GstAudioBaseSinkClass, AudioBaseSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object;
|
||||
|
@ -298,9 +297,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_alignment_threshold_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -325,7 +322,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_buffer_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -353,9 +350,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_can_activate_pull_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -380,9 +375,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_discont_wait_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -410,9 +403,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_drift_tolerance_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -437,9 +428,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_latency_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -464,9 +453,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_provide_clock_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -491,9 +478,7 @@ impl<O: IsA<AudioBaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_slave_method_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_audio_sys::GstAudioBaseSrc, gst_audio_sys::GstAudioBaseSrcClass, AudioBaseSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object;
|
||||
|
@ -216,9 +215,7 @@ impl<O: IsA<AudioBaseSrc>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_actual_buffer_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -246,9 +243,7 @@ impl<O: IsA<AudioBaseSrc>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_actual_latency_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -273,7 +268,7 @@ impl<O: IsA<AudioBaseSrc>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_buffer_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -298,9 +293,7 @@ impl<O: IsA<AudioBaseSrc>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_latency_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -325,9 +318,7 @@ impl<O: IsA<AudioBaseSrc>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_provide_clock_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -352,9 +343,7 @@ impl<O: IsA<AudioBaseSrc>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_slave_method_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<AudioDecoder>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_min_latency_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -368,7 +367,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::plc\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_plc_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_plc_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -393,7 +392,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::tolerance\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_tolerance_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_tolerance_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<AudioEncoder>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_hard_resync_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -369,9 +368,7 @@ impl<O: IsA<AudioEncoder>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_mark_granule_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -399,9 +396,7 @@ impl<O: IsA<AudioEncoder>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_perfect_timestamp_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -426,7 +421,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::tolerance\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_tolerance_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_tolerance_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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<O: IsA<StreamVolume>> StreamVolumeExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::mute\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_mute_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_mute_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -136,7 +135,7 @@ impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::volume\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_volume_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_volume_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<gst_base_sys::GstAggregator, gst_base_sys::GstAggregatorClass, AggregatorClass>) @extends gst::Element, gst::Object;
|
||||
|
@ -163,7 +162,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::latency\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_latency_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_latency_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -188,7 +187,7 @@ impl<O: IsA<Aggregator>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_start_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_base_sys::GstAggregatorPad, gst_base_sys::GstAggregatorPadClass, AggregatorPadClass>) @extends gst::Pad, gst::Object;
|
||||
|
@ -165,7 +164,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"buffer-consumed\0".as_ptr() as *const _,
|
||||
Some(transmute(buffer_consumed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&buffer_consumed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -191,9 +190,7 @@ impl<O: IsA<AggregatorPad>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_emit_signals_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_base_sys::GstBaseParse, gst_base_sys::GstBaseParseClass, BaseParseClass>) @extends gst::Element, gst::Object;
|
||||
|
@ -221,9 +220,7 @@ impl<O: IsA<BaseParse>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_disable_passthrough_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_base_sys::GstBaseSink, gst_base_sys::GstBaseSinkClass, BaseSinkClass>) @extends gst::Element, gst::Object;
|
||||
|
@ -453,7 +452,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::async\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_async_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_async_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -478,7 +477,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::blocksize\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_blocksize_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_blocksize_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -506,9 +505,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_enable_last_sample_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -533,7 +530,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_last_sample_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -558,7 +555,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_max_bitrate_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -583,9 +580,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_max_lateness_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -614,9 +609,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_processing_deadline_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -641,7 +634,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::qos\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_qos_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_qos_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -666,9 +659,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_render_delay_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -693,7 +684,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::sync\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_sync_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_sync_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -718,9 +709,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_throttle_time_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -745,7 +734,7 @@ impl<O: IsA<BaseSink>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_ts_offset_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_base_sys::GstBaseSrc, gst_base_sys::GstBaseSrcClass, BaseSrcClass>) @extends gst::Element, gst::Object;
|
||||
|
@ -274,7 +273,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::blocksize\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_blocksize_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_blocksize_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -299,9 +298,7 @@ impl<O: IsA<BaseSrc>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_do_timestamp_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -326,7 +323,7 @@ impl<O: IsA<BaseSrc>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_num_buffers_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -351,7 +348,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::typefind\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_typefind_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_typefind_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_base_sys::GstBaseTransform, gst_base_sys::GstBaseTransformClass, BaseTransformClass>) @extends gst::Element, gst::Object;
|
||||
|
@ -230,7 +229,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::qos\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_qos_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_qos_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<gst_check_sys::GstTestClock, gst_check_sys::GstTestClockClass, TestClockClass>) @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::<F> as usize)),
|
||||
Some(*(¬ify_clock_type_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<O: IsA<Asset>> AssetExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::proxy\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_proxy_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_proxy_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -218,9 +214,7 @@ impl<O: IsA<Asset>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_proxy_target_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Clip>> ClipExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::layer\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_layer_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_layer_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -269,9 +268,7 @@ impl<O: IsA<Clip>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_supported_formats_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Container>> GESContainerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"child-added\0".as_ptr() as *const _,
|
||||
Some(transmute(child_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&child_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -202,7 +201,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"child-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(child_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&child_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -224,7 +223,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::height\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_height_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_height_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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<O: IsA<Group>> GroupExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::duration\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_duration_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_duration_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -238,7 +237,7 @@ impl<O: IsA<Group>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_in_point_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -263,9 +262,7 @@ impl<O: IsA<Group>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_max_duration_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -287,7 +284,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::priority\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_priority_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_priority_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -309,7 +306,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::start\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_start_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_start_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Layer>> LayerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"clip-added\0".as_ptr() as *const _,
|
||||
Some(transmute(clip_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&clip_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -254,7 +253,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"clip-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(clip_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&clip_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -279,9 +278,7 @@ impl<O: IsA<Layer>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_auto_transition_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -303,7 +300,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::priority\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_priority_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_priority_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Pipeline>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_audio_filter_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -413,7 +410,7 @@ impl<O: IsA<Pipeline>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_audio_sink_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -435,7 +432,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::mode\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_mode_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_mode_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -457,7 +454,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::timeline\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_timeline_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_timeline_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -482,9 +479,7 @@ impl<O: IsA<Pipeline>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_video_filter_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -506,7 +501,7 @@ impl<O: IsA<Pipeline>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_video_sink_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Project>> ProjectExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"asset-added\0".as_ptr() as *const _,
|
||||
Some(transmute(asset_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&asset_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -285,7 +284,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"asset-loading\0".as_ptr() as *const _,
|
||||
Some(transmute(asset_loading_trampoline::<Self, F> as usize)),
|
||||
Some(*(&asset_loading_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -310,7 +309,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"asset-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(asset_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&asset_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -347,9 +346,7 @@ impl<O: IsA<Project>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&error_loading_asset_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -374,7 +371,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"loaded\0".as_ptr() as *const _,
|
||||
Some(transmute(loaded_trampoline::<Self, F> as usize)),
|
||||
Some(*(&loaded_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -409,7 +406,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"missing-uri\0".as_ptr() as *const _,
|
||||
Some(transmute(missing_uri_trampoline::<Self, F> as usize)),
|
||||
Some(*(&missing_uri_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"commited\0".as_ptr() as *const _,
|
||||
Some(transmute(commited_trampoline::<Self, F> as usize)),
|
||||
Some(*(&commited_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -458,7 +457,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"group-added\0".as_ptr() as *const _,
|
||||
Some(transmute(group_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&group_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -487,7 +486,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"layer-added\0".as_ptr() as *const _,
|
||||
Some(transmute(layer_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&layer_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -512,7 +511,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"layer-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(layer_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&layer_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -551,7 +550,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"snapping-ended\0".as_ptr() as *const _,
|
||||
Some(transmute(snapping_ended_trampoline::<Self, F> as usize)),
|
||||
Some(*(&snapping_ended_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -586,7 +585,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"snapping-started\0".as_ptr() as *const _,
|
||||
Some(transmute(snapping_started_trampoline::<Self, F> as usize)),
|
||||
Some(*(&snapping_started_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -611,7 +610,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"track-added\0".as_ptr() as *const _,
|
||||
Some(transmute(track_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&track_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -636,7 +635,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"track-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(track_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&track_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -661,9 +660,7 @@ impl<O: IsA<Timeline>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_auto_transition_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -685,7 +682,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::duration\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_duration_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_duration_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -710,9 +707,7 @@ impl<O: IsA<Timeline>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_snapping_distance_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::duration\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_duration_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_duration_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -523,7 +522,7 @@ impl<O: IsA<TimelineElement>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_in_point_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -548,9 +547,7 @@ impl<O: IsA<TimelineElement>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_max_duration_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -572,7 +569,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::name\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_name_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_name_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -594,7 +591,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::parent\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_parent_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_parent_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -616,7 +613,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::priority\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_priority_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_priority_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -638,7 +635,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::serialize\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_serialize_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_serialize_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -660,7 +657,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::start\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_start_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_start_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -682,7 +679,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::timeline\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_timeline_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_timeline_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Track>> GESTrackExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"commited\0".as_ptr() as *const _,
|
||||
Some(transmute(commited_trampoline::<Self, F> as usize)),
|
||||
Some(*(&commited_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -277,9 +276,7 @@ impl<O: IsA<Track>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&track_element_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -310,9 +307,7 @@ impl<O: IsA<Track>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&track_element_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -334,7 +329,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::duration\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_duration_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_duration_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -356,7 +351,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::mixing\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_mixing_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_mixing_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -381,9 +376,7 @@ impl<O: IsA<Track>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_restriction_caps_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::active\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_active_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_active_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -285,7 +284,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::track\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_track_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_track_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -307,7 +306,7 @@ impl<O: IsA<TrackElement>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_track_type_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<UriClip>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_is_image_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -171,7 +170,7 @@ impl<O: IsA<UriClip>> UriClipExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::mute\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_mute_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_mute_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -196,9 +195,7 @@ impl<O: IsA<UriClip>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_supported_formats_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::duration\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_duration_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_duration_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::context\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_context_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_context_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<GLDisplay>> GLDisplayExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"create-context\0".as_ptr() as *const _,
|
||||
Some(transmute(create_context_trampoline::<Self, F> as usize)),
|
||||
Some(*(&create_context_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(¬ify_yinvert_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(¬ify_linked_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(¬ify_downmix_mode_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_input_flags_override_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_input_mode_override_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_output_flags_override_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_output_mode_override_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"key-event\0".as_ptr() as *const _,
|
||||
Some(transmute(key_event_trampoline::<Self, F> as usize)),
|
||||
Some(*(&key_event_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -285,7 +284,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"mouse-event\0".as_ptr() as *const _,
|
||||
Some(transmute(mouse_event_trampoline::<Self, F> as usize)),
|
||||
Some(*(&mouse_event_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<gst_net_sys::GstNetClientClock, gst_net_sys::GstNetClientClockClass, NetClientClockClass>) @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::<F> as usize)),
|
||||
Some(*(¬ify_address_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_bus_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_internal_clock_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_minimum_update_interval_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_port_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_qos_dscp_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_round_trip_limit_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_net_sys::GstNetTimeProvider, gst_net_sys::GstNetTimeProviderClass, NetTimeProviderClass>) @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::<F> as usize)),
|
||||
Some(*(¬ify_active_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_qos_dscp_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_net_sys::GstPtpClock, gst_net_sys::GstPtpClockClass, PtpClockClass>) @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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_grandmaster_clock_id_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_internal_clock_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_master_clock_id_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(&discovered_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&finished_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&source_setup_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&starting_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_use_cache_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<gst_player_sys::GstPlayerSnapshotFormat> for PlayerSnapshotFormat
|
|||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
pub enum PlayerState {
|
||||
Stopped,
|
||||
Buffering,
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(&buffering_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&end_of_stream_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&error_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&media_info_updated_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&mute_changed_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&state_changed_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&uri_loaded_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&video_dimensions_changed_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&volume_changed_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&warning_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_audio_video_offset_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_current_audio_track_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_current_subtitle_track_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_current_video_track_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_duration_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_media_info_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_mute_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_pipeline_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_position_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_rate_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_subtitle_video_offset_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_suburi_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_uri_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_video_multiview_flags_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_video_multiview_mode_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_volume_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(¬ify_video_sink_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_window_handle_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<gst_rtsp_server_sys::GstRTSPAddressPoolResult> for RTSPAddressPool
|
|||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
pub enum RTSPFilterResult {
|
||||
Remove,
|
||||
Keep,
|
||||
|
@ -93,6 +95,7 @@ impl FromGlib<gst_rtsp_server_sys::GstRTSPFilterResult> for RTSPFilterResult {
|
|||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
pub enum RTSPMediaStatus {
|
||||
Unprepared,
|
||||
Unpreparing,
|
||||
|
@ -138,6 +141,7 @@ impl FromGlib<gst_rtsp_server_sys::GstRTSPMediaStatus> 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,
|
||||
|
|
|
@ -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<O: IsA<RTSPAuth>> RTSPAuthExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"accept-certificate\0".as_ptr() as *const _,
|
||||
Some(transmute(accept_certificate_trampoline::<Self, F> as usize)),
|
||||
Some(*(&accept_certificate_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"announce-request\0".as_ptr() as *const _,
|
||||
Some(transmute(announce_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&announce_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -473,7 +472,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"closed\0".as_ptr() as *const _,
|
||||
Some(transmute(closed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&closed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -504,7 +503,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"describe-request\0".as_ptr() as *const _,
|
||||
Some(transmute(describe_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&describe_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -535,9 +534,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&get_parameter_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -568,7 +565,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"handle-response\0".as_ptr() as *const _,
|
||||
Some(transmute(handle_response_trampoline::<Self, F> as usize)),
|
||||
Some(*(&handle_response_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -599,7 +596,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"new-session\0".as_ptr() as *const _,
|
||||
Some(transmute(new_session_trampoline::<Self, F> as usize)),
|
||||
Some(*(&new_session_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -630,7 +627,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"options-request\0".as_ptr() as *const _,
|
||||
Some(transmute(options_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&options_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -661,7 +658,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"pause-request\0".as_ptr() as *const _,
|
||||
Some(transmute(pause_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&pause_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -692,7 +689,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"play-request\0".as_ptr() as *const _,
|
||||
Some(transmute(play_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&play_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -728,9 +725,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&pre_announce_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -766,9 +761,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&pre_describe_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -804,9 +797,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&pre_get_parameter_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -842,9 +833,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&pre_options_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -880,7 +869,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize)),
|
||||
Some(*(&pre_pause_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -916,7 +905,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize)),
|
||||
Some(*(&pre_play_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -952,7 +941,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize)),
|
||||
Some(*(&pre_record_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -988,9 +977,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&pre_set_parameter_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1026,7 +1013,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize)),
|
||||
Some(*(&pre_setup_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1062,9 +1049,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&pre_teardown_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1095,7 +1080,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"record-request\0".as_ptr() as *const _,
|
||||
Some(transmute(record_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&record_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1130,9 +1115,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&set_parameter_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1163,7 +1146,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"setup-request\0".as_ptr() as *const _,
|
||||
Some(transmute(setup_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&setup_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1194,7 +1177,7 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"teardown-request\0".as_ptr() as *const _,
|
||||
Some(transmute(teardown_request_trampoline::<Self, F> as usize)),
|
||||
Some(*(&teardown_request_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1219,9 +1202,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_drop_backlog_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1246,9 +1227,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_mount_points_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1273,9 +1252,7 @@ impl<O: IsA<RTSPClient>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_session_pool_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"new-state\0".as_ptr() as *const _,
|
||||
Some(transmute(new_state_trampoline::<Self, F> as usize)),
|
||||
Some(*(&new_state_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -966,7 +965,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"new-stream\0".as_ptr() as *const _,
|
||||
Some(transmute(new_stream_trampoline::<Self, F> as usize)),
|
||||
Some(*(&new_stream_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -987,7 +986,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"prepared\0".as_ptr() as *const _,
|
||||
Some(transmute(prepared_trampoline::<Self, F> as usize)),
|
||||
Some(*(&prepared_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1018,7 +1017,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"removed-stream\0".as_ptr() as *const _,
|
||||
Some(transmute(removed_stream_trampoline::<Self, F> as usize)),
|
||||
Some(*(&removed_stream_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1043,7 +1042,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"target-state\0".as_ptr() as *const _,
|
||||
Some(transmute(target_state_trampoline::<Self, F> as usize)),
|
||||
Some(*(&target_state_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1064,7 +1063,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"unprepared\0".as_ptr() as *const _,
|
||||
Some(transmute(unprepared_trampoline::<Self, F> as usize)),
|
||||
Some(*(&unprepared_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1092,9 +1091,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_bind_mcast_address_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1119,7 +1116,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_buffer_size_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1144,7 +1141,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::clock\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_clock_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_clock_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1169,9 +1166,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_eos_shutdown_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1196,7 +1191,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::latency\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_latency_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_latency_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1221,9 +1216,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_max_mcast_ttl_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1248,7 +1241,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::profiles\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_profiles_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_profiles_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1273,7 +1266,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::protocols\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_protocols_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_protocols_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1298,7 +1291,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::reusable\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_reusable_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_reusable_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1323,7 +1316,7 @@ impl<O: IsA<RTSPMedia>> RTSPMediaExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::shared\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_shared_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_shared_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1351,9 +1344,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_stop_on_disconnect_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1378,9 +1369,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_suspend_mode_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1405,9 +1394,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_time_provider_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1435,9 +1422,7 @@ impl<O: IsA<RTSPMedia>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_transport_mode_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"media-configure\0".as_ptr() as *const _,
|
||||
Some(transmute(media_configure_trampoline::<Self, F> as usize)),
|
||||
Some(*(&media_configure_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -764,7 +763,7 @@ impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"media-constructed\0".as_ptr() as *const _,
|
||||
Some(transmute(media_constructed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&media_constructed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -792,9 +791,7 @@ impl<O: IsA<RTSPMediaFactory>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_bind_mcast_address_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -819,7 +816,7 @@ impl<O: IsA<RTSPMediaFactory>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_buffer_size_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -844,7 +841,7 @@ impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::clock\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_clock_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_clock_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -869,9 +866,7 @@ impl<O: IsA<RTSPMediaFactory>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_eos_shutdown_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -896,7 +891,7 @@ impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::latency\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_latency_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_latency_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -921,7 +916,7 @@ impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::launch\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_launch_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_launch_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -946,9 +941,7 @@ impl<O: IsA<RTSPMediaFactory>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_max_mcast_ttl_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -973,7 +966,7 @@ impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::profiles\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_profiles_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_profiles_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -998,7 +991,7 @@ impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::protocols\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_protocols_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_protocols_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1023,7 +1016,7 @@ impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::shared\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_shared_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_shared_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1051,9 +1044,7 @@ impl<O: IsA<RTSPMediaFactory>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_stop_on_disconnect_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1078,9 +1069,7 @@ impl<O: IsA<RTSPMediaFactory>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_suspend_mode_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1108,9 +1097,7 @@ impl<O: IsA<RTSPMediaFactory>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_transport_mode_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPMediaFactoryURI>> RTSPMediaFactoryURIExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::uri\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_uri_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_uri_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -150,7 +149,7 @@ impl<O: IsA<RTSPMediaFactoryURI>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_use_gstpay_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPServer>> RTSPServerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"client-connected\0".as_ptr() as *const _,
|
||||
Some(transmute(client_connected_trampoline::<Self, F> as usize)),
|
||||
Some(*(&client_connected_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -430,7 +429,7 @@ impl<O: IsA<RTSPServer>> RTSPServerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::address\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_address_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_address_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -455,7 +454,7 @@ impl<O: IsA<RTSPServer>> RTSPServerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::backlog\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_backlog_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_backlog_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -480,7 +479,7 @@ impl<O: IsA<RTSPServer>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_bound_port_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -505,9 +504,7 @@ impl<O: IsA<RTSPServer>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_mount_points_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -532,7 +529,7 @@ impl<O: IsA<RTSPServer>> RTSPServerExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::service\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_service_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_service_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -557,9 +554,7 @@ impl<O: IsA<RTSPServer>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_session_pool_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPSession>> RTSPSessionExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::timeout\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_timeout_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_timeout_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -325,9 +324,9 @@ impl<O: IsA<RTSPSession>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(
|
||||
*(¬ify_timeout_always_visible_trampoline::<Self, F> as *const _ as *const _),
|
||||
),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPSessionPool>> RTSPSessionPoolExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"session-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(session_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&session_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -228,9 +227,7 @@ impl<O: IsA<RTSPSessionPool>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_max_sessions_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPStream>> 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::<Self, F> as usize)),
|
||||
Some(*(&new_rtcp_encoder_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1130,7 +1129,7 @@ impl<O: IsA<RTSPStream>> 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::<Self, F> as usize)),
|
||||
Some(*(&new_rtp_encoder_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1161,9 +1160,7 @@ impl<O: IsA<RTSPStream>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&new_rtp_rtcp_decoder_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1188,7 +1185,7 @@ impl<O: IsA<RTSPStream>> RTSPStreamExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::control\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_control_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_control_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1213,7 +1210,7 @@ impl<O: IsA<RTSPStream>> RTSPStreamExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::profiles\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_profiles_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_profiles_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -1238,7 +1235,7 @@ impl<O: IsA<RTSPStream>> RTSPStreamExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::protocols\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_protocols_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_protocols_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<RTSPThreadPool>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_max_threads_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<O: IsA<VideoEncoder>> VideoEncoderExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::qos\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_qos_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_qos_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(¬ify_certificate_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_client_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_remote_certificate_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_state_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_transport_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(&on_new_candidate_trampoline::<F> 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::<F> as usize,
|
||||
)),
|
||||
Some(*(&on_selected_candidate_pair_change_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_gathering_state_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_state_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Bin>> 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::<Self, F> as usize)),
|
||||
Some(*(&deep_element_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -364,9 +363,7 @@ impl<O: IsA<Bin>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(&deep_element_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -397,7 +394,7 @@ impl<O: IsA<Bin>> GstBinExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"element-added\0".as_ptr() as *const _,
|
||||
Some(transmute(element_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&element_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -428,7 +425,7 @@ impl<O: IsA<Bin>> GstBinExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"element-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(element_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&element_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -456,9 +453,7 @@ impl<O: IsA<Bin>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_async_handling_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -486,9 +481,7 @@ impl<O: IsA<Bin>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_message_forward_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(&message_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&sync_message_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<gst_sys::GstChildProxy>);
|
||||
|
@ -163,7 +162,7 @@ impl<O: IsA<ChildProxy>> ChildProxyExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"child-added\0".as_ptr() as *const _,
|
||||
Some(transmute(child_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&child_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -196,7 +195,7 @@ impl<O: IsA<ChildProxy>> ChildProxyExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"child-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(child_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&child_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Clock>> ClockExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"synced\0".as_ptr() as *const _,
|
||||
Some(transmute(synced_trampoline::<Self, F> as usize)),
|
||||
Some(*(&synced_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -464,7 +463,7 @@ impl<O: IsA<Clock>> ClockExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::timeout\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_timeout_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_timeout_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -489,7 +488,7 @@ impl<O: IsA<Clock>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_window_size_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -517,9 +516,7 @@ impl<O: IsA<Clock>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_window_threshold_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Device>> DeviceExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"removed\0".as_ptr() as *const _,
|
||||
Some(transmute(removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<DeviceMonitor>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_show_all_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<DeviceProvider>> DeviceProviderExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"provider-hidden\0".as_ptr() as *const _,
|
||||
Some(transmute(provider_hidden_trampoline::<Self, F> as usize)),
|
||||
Some(*(&provider_hidden_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -228,7 +227,7 @@ impl<O: IsA<DeviceProvider>> DeviceProviderExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"provider-unhidden\0".as_ptr() as *const _,
|
||||
Some(transmute(provider_unhidden_trampoline::<Self, F> as usize)),
|
||||
Some(*(&provider_unhidden_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Element>> 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::<Self, F> as usize)),
|
||||
Some(*(&no_more_pads_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -705,7 +704,7 @@ impl<O: IsA<Element>> ElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"pad-added\0".as_ptr() as *const _,
|
||||
Some(transmute(pad_added_trampoline::<Self, F> as usize)),
|
||||
Some(*(&pad_added_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -733,7 +732,7 @@ impl<O: IsA<Element>> ElementExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"pad-removed\0".as_ptr() as *const _,
|
||||
Some(transmute(pad_removed_trampoline::<Self, F> as usize)),
|
||||
Some(*(&pad_removed_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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<O: IsA<Object>> GstObjectExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::name\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_name_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_name_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -333,7 +332,7 @@ impl<O: IsA<Object>> GstObjectExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::parent\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_parent_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_parent_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Pad>> PadExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"linked\0".as_ptr() as *const _,
|
||||
Some(transmute(linked_trampoline::<Self, F> as usize)),
|
||||
Some(*(&linked_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -610,7 +609,7 @@ impl<O: IsA<Pad>> PadExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"unlinked\0".as_ptr() as *const _,
|
||||
Some(transmute(unlinked_trampoline::<Self, F> as usize)),
|
||||
Some(*(&unlinked_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -635,7 +634,7 @@ impl<O: IsA<Pad>> PadExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::caps\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_caps_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_caps_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -660,7 +659,7 @@ impl<O: IsA<Pad>> PadExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::offset\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_offset_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_offset_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -685,7 +684,7 @@ impl<O: IsA<Pad>> PadExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::template\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_template_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_template_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(&pad_created_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<Pipeline>> 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::<Self, F> as usize,
|
||||
)),
|
||||
Some(*(¬ify_auto_flush_bus_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -193,7 +190,7 @@ impl<O: IsA<Pipeline>> PipelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::delay\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_delay_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_delay_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
@ -218,7 +215,7 @@ impl<O: IsA<Pipeline>> PipelineExt for O {
|
|||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::latency\0".as_ptr() as *const _,
|
||||
Some(transmute(notify_latency_trampoline::<Self, F> as usize)),
|
||||
Some(*(¬ify_latency_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(&feature_added_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(&plugin_added_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(¬ify_caps_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_stream_flags_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_stream_type_trampoline::<F> 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::<F> as usize)),
|
||||
Some(*(¬ify_tags_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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::<F> as usize)),
|
||||
Some(*(¬ify_upstream_id_trampoline::<F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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<O: IsA<SystemClock>> 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::<Self, F> as usize)),
|
||||
Some(*(¬ify_clock_type_trampoline::<Self, F> as *const _ as *const _)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue