Regenerate with latest GStreamer gir files

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1729>
This commit is contained in:
Sebastian Dröge 2025-05-13 13:26:38 +03:00 committed by GStreamer Marge Bot
parent 6ac6535c75
commit 80241b1d21
74 changed files with 879 additions and 163 deletions

View file

@ -14,7 +14,9 @@ glib::wrapper! {
}
}
impl ShmAllocator {}
impl ShmAllocator {
pub const NONE: Option<&'static ShmAllocator> = None;
}
unsafe impl Send for ShmAllocator {}
unsafe impl Sync for ShmAllocator {}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -160,16 +160,16 @@ impl ::std::fmt::Debug for GstFdAllocator {
}
}
#[derive(Copy, Clone)]
#[repr(C)]
#[allow(dead_code)]
pub struct GstShmAllocator {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
pub parent_instance: GstFdAllocator,
}
impl ::std::fmt::Debug for GstShmAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstShmAllocator @ {self:p}"))
.field("parent_instance", &self.parent_instance)
.finish()
}
}
@ -248,6 +248,16 @@ extern "C" {
size: size_t,
flags: GstFdMemoryFlags,
) -> *mut gst::GstMemory;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_fd_allocator_alloc_full(
allocator: *mut gst::GstAllocator,
fd: c_int,
maxsize: size_t,
offset: size_t,
size: size_t,
flags: GstFdMemoryFlags,
) -> *mut gst::GstMemory;
//=========================================================================
// GstShmAllocator

View file

@ -251,6 +251,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstPhysMemoryAllocatorInterface>(),
},
),
(
"GstShmAllocator",
Layout {
size: size_of::<GstShmAllocator>(),
alignment: align_of::<GstShmAllocator>(),
},
),
(
"GstShmAllocatorClass",
Layout {

View file

@ -15,6 +15,7 @@ int main() {
printf("%s;%zu;%zu\n", "GstFdAllocatorClass", sizeof(GstFdAllocatorClass), alignof(GstFdAllocatorClass));
printf("%s;%zu;%zu\n", "GstFdMemoryFlags", sizeof(GstFdMemoryFlags), alignof(GstFdMemoryFlags));
printf("%s;%zu;%zu\n", "GstPhysMemoryAllocatorInterface", sizeof(GstPhysMemoryAllocatorInterface), alignof(GstPhysMemoryAllocatorInterface));
printf("%s;%zu;%zu\n", "GstShmAllocator", sizeof(GstShmAllocator), alignof(GstShmAllocator));
printf("%s;%zu;%zu\n", "GstShmAllocatorClass", sizeof(GstShmAllocatorClass), alignof(GstShmAllocatorClass));
return 0;
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -504,6 +504,12 @@ extern "C" {
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_get(tmeta: *mut GstTensorMeta, index: size_t) -> *const GstTensor;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_tensor_meta_get_by_id(
tmeta: *mut GstTensorMeta,
id: glib::GQuark,
) -> *const GstTensor;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_tensor_meta_get_index_from_id(meta: *mut GstTensorMeta, id: glib::GQuark) -> c_int;
@ -537,6 +543,30 @@ extern "C" {
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub fn gst_buffer_get_tensor_meta(buffer: *mut gst::GstBuffer) -> *mut GstTensorMeta;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_analytics_image_util_iou_float(
bb1_x: c_float,
bb1_y: c_float,
bb1_w: c_float,
bb1_h: c_float,
bb2_x: c_float,
bb2_y: c_float,
bb2_w: c_float,
bb2_h: c_float,
) -> c_float;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_analytics_image_util_iou_int(
bb1_x: c_int,
bb1_y: c_int,
bb1_w: c_int,
bb1_h: c_int,
bb2_x: c_int,
bb2_y: c_int,
bb2_w: c_int,
bb2_h: c_int,
) -> c_float;
pub fn gst_analytics_relation_get_length(instance: *const GstAnalyticsRelationMeta) -> size_t;
pub fn gst_analytics_relation_meta_api_get_type() -> GType;
#[cfg(feature = "v1_26")]

View file

@ -2,8 +2,12 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
#![allow(deprecated)]
use crate::ffi;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
use crate::AppLeakyType;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
@ -37,6 +41,39 @@ impl AppSink {
unsafe { from_glib_full(ffi::gst_app_sink_get_caps(self.to_glib_none().0)) }
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "gst_app_sink_get_current_level_buffers")]
#[doc(alias = "get_current_level_buffers")]
#[doc(alias = "current-level-buffers")]
pub fn current_level_buffers(&self) -> u64 {
unsafe { ffi::gst_app_sink_get_current_level_buffers(self.to_glib_none().0) }
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "gst_app_sink_get_current_level_bytes")]
#[doc(alias = "get_current_level_bytes")]
#[doc(alias = "current-level-bytes")]
pub fn current_level_bytes(&self) -> u64 {
unsafe { ffi::gst_app_sink_get_current_level_bytes(self.to_glib_none().0) }
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "gst_app_sink_get_current_level_time")]
#[doc(alias = "get_current_level_time")]
#[doc(alias = "current-level-time")]
pub fn current_level_time(&self) -> Option<gst::ClockTime> {
unsafe {
from_glib(ffi::gst_app_sink_get_current_level_time(
self.to_glib_none().0,
))
}
}
#[cfg_attr(feature = "v1_28", deprecated = "Since 1.28")]
#[allow(deprecated)]
#[doc(alias = "gst_app_sink_get_drop")]
#[doc(alias = "get_drop")]
#[doc(alias = "drop")]
@ -44,6 +81,15 @@ impl AppSink {
unsafe { from_glib(ffi::gst_app_sink_get_drop(self.to_glib_none().0)) }
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "gst_app_sink_get_leaky_type")]
#[doc(alias = "get_leaky_type")]
#[doc(alias = "leaky-type")]
pub fn leaky_type(&self) -> AppLeakyType {
unsafe { from_glib(ffi::gst_app_sink_get_leaky_type(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_sink_get_max_buffers")]
#[doc(alias = "get_max_buffers")]
#[doc(alias = "max-buffers")]
@ -131,6 +177,8 @@ impl AppSink {
}
}
#[cfg_attr(feature = "v1_28", deprecated = "Since 1.28")]
#[allow(deprecated)]
#[doc(alias = "gst_app_sink_set_drop")]
#[doc(alias = "drop")]
pub fn set_drop(&self, drop: bool) {
@ -139,6 +187,16 @@ impl AppSink {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "gst_app_sink_set_leaky_type")]
#[doc(alias = "leaky-type")]
pub fn set_leaky_type(&self, leaky: AppLeakyType) {
unsafe {
ffi::gst_app_sink_set_leaky_type(self.to_glib_none().0, leaky.into_glib());
}
}
#[doc(alias = "gst_app_sink_set_max_buffers")]
#[doc(alias = "max-buffers")]
pub fn set_max_buffers(&self, max: u32) {
@ -226,6 +284,37 @@ impl AppSink {
ObjectExt::set_property(self, "buffer-list", buffer_list)
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn dropped(&self) -> u64 {
ObjectExt::property(self, "dropped")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "in")]
pub fn get_in(&self) -> u64 {
ObjectExt::property(self, "in")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn out(&self) -> u64 {
ObjectExt::property(self, "out")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn is_silent(&self) -> bool {
ObjectExt::property(self, "silent")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn set_silent(&self, silent: bool) {
ObjectExt::set_property(self, "silent", silent)
}
#[doc(alias = "buffer-list")]
pub fn connect_buffer_list_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -280,6 +369,97 @@ impl AppSink {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "current-level-buffers")]
pub fn connect_current_level_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_current_level_buffers_trampoline<
F: Fn(&AppSink) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::current-level-buffers".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_current_level_buffers_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "current-level-bytes")]
pub fn connect_current_level_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_current_level_bytes_trampoline<
F: Fn(&AppSink) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::current-level-bytes".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_current_level_bytes_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "current-level-time")]
pub fn connect_current_level_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_current_level_time_trampoline<
F: Fn(&AppSink) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::current-level-time".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_current_level_time_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg_attr(feature = "v1_28", deprecated = "Since 1.28")]
#[doc(alias = "drop")]
pub fn connect_drop_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -306,6 +486,34 @@ impl AppSink {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "dropped")]
pub fn connect_dropped_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_dropped_trampoline<F: Fn(&AppSink) + Send + Sync + 'static>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::dropped".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_dropped_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "eos")]
pub fn connect_eos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -332,6 +540,61 @@ impl AppSink {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "in")]
pub fn connect_in_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_in_trampoline<F: Fn(&AppSink) + Send + Sync + 'static>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::in".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_in_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "leaky-type")]
pub fn connect_leaky_type_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_leaky_type_trampoline<
F: Fn(&AppSink) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::leaky-type".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_leaky_type_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "max-buffers")]
pub fn connect_max_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -418,6 +681,62 @@ impl AppSink {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "out")]
pub fn connect_out_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_out_trampoline<F: Fn(&AppSink) + Send + Sync + 'static>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::out".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_out_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "silent")]
pub fn connect_silent_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_silent_trampoline<F: Fn(&AppSink) + Send + Sync + 'static>(
this: *mut ffi::GstAppSink,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::silent".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_silent_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "wait-on-eos")]
pub fn connect_wait_on_eos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,

View file

@ -233,6 +233,12 @@ impl AppSrc {
ObjectExt::set_property(self, "block", block)
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn dropped(&self) -> u64 {
ObjectExt::property(self, "dropped")
}
pub fn format(&self) -> gst::Format {
ObjectExt::property(self, "format")
}
@ -255,6 +261,13 @@ impl AppSrc {
ObjectExt::set_property(self, "handle-segment-change", handle_segment_change)
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "in")]
pub fn get_in(&self) -> u64 {
ObjectExt::property(self, "in")
}
#[doc(alias = "is-live")]
pub fn is_live(&self) -> bool {
ObjectExt::property(self, "is-live")
@ -295,6 +308,24 @@ impl AppSrc {
ObjectExt::set_property(self, "min-percent", min_percent)
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn out(&self) -> u64 {
ObjectExt::property(self, "out")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn is_silent(&self) -> bool {
ObjectExt::property(self, "silent")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn set_silent(&self, silent: bool) {
ObjectExt::set_property(self, "silent", silent)
}
#[doc(alias = "block")]
pub fn connect_block_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -435,6 +466,34 @@ impl AppSrc {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "dropped")]
pub fn connect_dropped_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_dropped_trampoline<F: Fn(&AppSrc) + Send + Sync + 'static>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::dropped".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_dropped_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "duration")]
pub fn connect_duration_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -517,6 +576,31 @@ impl AppSrc {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "in")]
pub fn connect_in_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_in_trampoline<F: Fn(&AppSrc) + Send + Sync + 'static>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::in".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_in_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "is-live")]
pub fn connect_is_live_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -741,6 +825,62 @@ impl AppSrc {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "out")]
pub fn connect_out_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_out_trampoline<F: Fn(&AppSrc) + Send + Sync + 'static>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::out".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_out_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "silent")]
pub fn connect_silent_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_silent_trampoline<F: Fn(&AppSrc) + Send + Sync + 'static>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::silent".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_silent_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "size")]
pub fn connect_size_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -221,8 +221,20 @@ extern "C" {
pub fn gst_app_sink_get_type() -> GType;
pub fn gst_app_sink_get_buffer_list_support(appsink: *mut GstAppSink) -> gboolean;
pub fn gst_app_sink_get_caps(appsink: *mut GstAppSink) -> *mut gst::GstCaps;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_app_sink_get_current_level_buffers(appsink: *mut GstAppSink) -> u64;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_app_sink_get_current_level_bytes(appsink: *mut GstAppSink) -> u64;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_app_sink_get_current_level_time(appsink: *mut GstAppSink) -> gst::GstClockTime;
pub fn gst_app_sink_get_drop(appsink: *mut GstAppSink) -> gboolean;
pub fn gst_app_sink_get_emit_signals(appsink: *mut GstAppSink) -> gboolean;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_app_sink_get_leaky_type(appsink: *mut GstAppSink) -> GstAppLeakyType;
pub fn gst_app_sink_get_max_buffers(appsink: *mut GstAppSink) -> c_uint;
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
@ -247,6 +259,9 @@ extern "C" {
pub fn gst_app_sink_set_caps(appsink: *mut GstAppSink, caps: *const gst::GstCaps);
pub fn gst_app_sink_set_drop(appsink: *mut GstAppSink, drop: gboolean);
pub fn gst_app_sink_set_emit_signals(appsink: *mut GstAppSink, emit: gboolean);
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_app_sink_set_leaky_type(appsink: *mut GstAppSink, leaky: GstAppLeakyType);
pub fn gst_app_sink_set_max_buffers(appsink: *mut GstAppSink, max: c_uint);
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -87,6 +87,20 @@ pub trait AggregatorPadExt: IsA<AggregatorPad> + 'static {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "current-level-buffers")]
fn current_level_buffers(&self) -> u64 {
ObjectExt::property(self.as_ref(), "current-level-buffers")
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "current-level-bytes")]
fn current_level_bytes(&self) -> u64 {
ObjectExt::property(self.as_ref(), "current-level-bytes")
}
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "emit-signals")]
@ -133,6 +147,68 @@ pub trait AggregatorPadExt: IsA<AggregatorPad> + 'static {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "current-level-buffers")]
fn connect_current_level_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_current_level_buffers_trampoline<
P: IsA<AggregatorPad>,
F: Fn(&P) + Send + Sync + 'static,
>(
this: *mut ffi::GstAggregatorPad,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(AggregatorPad::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::current-level-buffers".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_current_level_buffers_trampoline::<Self, F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "current-level-bytes")]
fn connect_current_level_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_current_level_bytes_trampoline<
P: IsA<AggregatorPad>,
F: Fn(&P) + Send + Sync + 'static,
>(
this: *mut ffi::GstAggregatorPad,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(AggregatorPad::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"notify::current-level-bytes".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_current_level_bytes_trampoline::<Self, F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "emit-signals")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -2591,6 +2591,10 @@ pub enum VideoFormat {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
#[doc(alias = "GST_VIDEO_FORMAT_GRAY10_LE16")]
Gray10Le16,
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(alias = "GST_VIDEO_FORMAT_NV16_10LE40")]
Nv1610le40,
#[doc(hidden)]
__Unknown(i32),
}
@ -2831,6 +2835,8 @@ impl IntoGlib for VideoFormat {
Self::Y416Be => ffi::GST_VIDEO_FORMAT_Y416_BE,
#[cfg(feature = "v1_26")]
Self::Gray10Le16 => ffi::GST_VIDEO_FORMAT_GRAY10_LE16,
#[cfg(feature = "v1_28")]
Self::Nv1610le40 => ffi::GST_VIDEO_FORMAT_NV16_10LE40,
Self::__Unknown(value) => value,
}
}
@ -3039,6 +3045,8 @@ impl FromGlib<ffi::GstVideoFormat> for VideoFormat {
ffi::GST_VIDEO_FORMAT_Y416_BE => Self::Y416Be,
#[cfg(feature = "v1_26")]
ffi::GST_VIDEO_FORMAT_GRAY10_LE16 => Self::Gray10Le16,
#[cfg(feature = "v1_28")]
ffi::GST_VIDEO_FORMAT_NV16_10LE40 => Self::Nv1610le40,
value => Self::__Unknown(value),
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -423,6 +423,9 @@ pub const GST_VIDEO_FORMAT_Y416_BE: GstVideoFormat = 137;
#[cfg(feature = "v1_26")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
pub const GST_VIDEO_FORMAT_GRAY10_LE16: GstVideoFormat = 138;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub const GST_VIDEO_FORMAT_NV16_10LE40: GstVideoFormat = 139;
pub type GstVideoGLTextureOrientation = c_int;
pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL: GstVideoGLTextureOrientation = 0;
@ -610,7 +613,7 @@ pub const GST_VIDEO_DECODER_SINK_NAME: &[u8] = b"sink\0";
pub const GST_VIDEO_DECODER_SRC_NAME: &[u8] = b"src\0";
pub const GST_VIDEO_ENCODER_SINK_NAME: &[u8] = b"sink\0";
pub const GST_VIDEO_ENCODER_SRC_NAME: &[u8] = b"src\0";
pub const GST_VIDEO_FORMAT_LAST: c_int = 139;
pub const GST_VIDEO_FORMAT_LAST: c_int = 140;
pub const GST_VIDEO_FPS_RANGE: &[u8] = b"(fraction) [ 0, max ]\0";
pub const GST_VIDEO_MAX_COMPONENTS: c_int = 4;
pub const GST_VIDEO_MAX_PLANES: c_int = 4;

View file

@ -1385,7 +1385,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_I422_12LE", "75"),
("(gint) GST_VIDEO_FORMAT_IYU1", "38"),
("(gint) GST_VIDEO_FORMAT_IYU2", "63"),
("GST_VIDEO_FORMAT_LAST", "139"),
("GST_VIDEO_FORMAT_LAST", "140"),
("(gint) GST_VIDEO_FORMAT_MT2110R", "116"),
("(gint) GST_VIDEO_FORMAT_MT2110T", "115"),
("(gint) GST_VIDEO_FORMAT_NV12", "23"),
@ -1400,6 +1400,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_VIDEO_FORMAT_NV12_8L128", "111"),
("(gint) GST_VIDEO_FORMAT_NV16", "51"),
("(gint) GST_VIDEO_FORMAT_NV16_10LE32", "80"),
("(gint) GST_VIDEO_FORMAT_NV16_10LE40", "139"),
("(gint) GST_VIDEO_FORMAT_NV21", "24"),
("(gint) GST_VIDEO_FORMAT_NV24", "52"),
("(gint) GST_VIDEO_FORMAT_NV61", "60"),

View file

@ -350,6 +350,7 @@ int main() {
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_8L128);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV16);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV16_10LE32);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV16_10LE40);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV21);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV24);
PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV61);

View file

@ -1171,6 +1171,128 @@ impl From<WebRTCICERole> for glib::Value {
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
#[doc(alias = "GstWebRTCICETcpCandidateType")]
pub enum WebRTCICETcpCandidateType {
#[doc(alias = "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_ACTIVE")]
Active,
#[doc(alias = "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_PASSIVE")]
Passive,
#[doc(alias = "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_SO")]
So,
#[doc(alias = "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_NONE")]
None,
#[doc(hidden)]
__Unknown(i32),
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(hidden)]
impl IntoGlib for WebRTCICETcpCandidateType {
type GlibType = ffi::GstWebRTCICETcpCandidateType;
#[inline]
fn into_glib(self) -> ffi::GstWebRTCICETcpCandidateType {
match self {
Self::Active => ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_ACTIVE,
Self::Passive => ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_PASSIVE,
Self::So => ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_SO,
Self::None => ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_NONE,
Self::__Unknown(value) => value,
}
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
#[doc(hidden)]
impl FromGlib<ffi::GstWebRTCICETcpCandidateType> for WebRTCICETcpCandidateType {
#[inline]
unsafe fn from_glib(value: ffi::GstWebRTCICETcpCandidateType) -> Self {
skip_assert_initialized!();
match value {
ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_ACTIVE => Self::Active,
ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_PASSIVE => Self::Passive,
ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_SO => Self::So,
ffi::GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_NONE => Self::None,
value => Self::__Unknown(value),
}
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
impl StaticType for WebRTCICETcpCandidateType {
#[inline]
#[doc(alias = "gst_webrtc_ice_tcp_candidate_type_get_type")]
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gst_webrtc_ice_tcp_candidate_type_get_type()) }
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
impl glib::HasParamSpec for WebRTCICETcpCandidateType {
type ParamSpec = glib::ParamSpecEnum;
type SetValue = Self;
type BuilderFn = fn(&str, Self) -> glib::ParamSpecEnumBuilder<Self>;
fn param_spec_builder() -> Self::BuilderFn {
Self::ParamSpec::builder_with_default
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
impl glib::value::ValueType for WebRTCICETcpCandidateType {
type Type = Self;
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
unsafe impl<'a> glib::value::FromValue<'a> for WebRTCICETcpCandidateType {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
impl ToValue for WebRTCICETcpCandidateType {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
}
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
impl From<WebRTCICETcpCandidateType> for glib::Value {
#[inline]
fn from(v: WebRTCICETcpCandidateType) -> Self {
skip_assert_initialized!();
ToValue::to_value(&v)
}
}
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]

View file

@ -75,6 +75,9 @@ pub use self::enums::WebRTCICEComponent;
pub use self::enums::WebRTCICEConnectionState;
pub use self::enums::WebRTCICEGatheringState;
pub use self::enums::WebRTCICERole;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub use self::enums::WebRTCICETcpCandidateType;
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use self::enums::WebRTCICETransportPolicy;

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
#![allow(deprecated)]
use crate::{ffi, WebRTCDataChannelState, WebRTCPriorityType};
use glib::{
@ -29,6 +30,8 @@ impl WebRTCDataChannel {
}
}
#[cfg_attr(feature = "v1_22", deprecated = "Since 1.22")]
#[allow(deprecated)]
#[doc(alias = "gst_webrtc_data_channel_send_data")]
pub fn send_data(&self, data: Option<&glib::Bytes>) {
unsafe {
@ -56,6 +59,8 @@ impl WebRTCDataChannel {
}
}
#[cfg_attr(feature = "v1_22", deprecated = "Since 1.22")]
#[allow(deprecated)]
#[doc(alias = "gst_webrtc_data_channel_send_string")]
pub fn send_string(&self, str: Option<&str>) {
unsafe {
@ -141,32 +146,6 @@ impl WebRTCDataChannel {
ObjectExt::property(self, "ready-state")
}
#[doc(alias = "close")]
pub fn connect_close<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn close_trampoline<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
this: *mut ffi::GstWebRTCDataChannel,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"close".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
close_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
pub fn emit_close(&self) {
self.emit_by_name::<()>("close", &[]);
}
#[doc(alias = "on-buffered-amount-low")]
pub fn connect_on_buffered_amount_low<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -337,81 +316,6 @@ impl WebRTCDataChannel {
}
}
#[doc(alias = "send-data")]
pub fn connect_send_data<F: Fn(&Self, Option<&glib::Bytes>) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn send_data_trampoline<
F: Fn(&WebRTCDataChannel, Option<&glib::Bytes>) + Send + Sync + 'static,
>(
this: *mut ffi::GstWebRTCDataChannel,
data: *mut glib::ffi::GBytes,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(
&from_glib_borrow(this),
Option::<glib::Bytes>::from_glib_borrow(data)
.as_ref()
.as_ref(),
)
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"send-data".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
send_data_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
pub fn emit_send_data(&self, data: Option<&glib::Bytes>) {
self.emit_by_name::<()>("send-data", &[&data]);
}
#[doc(alias = "send-string")]
pub fn connect_send_string<F: Fn(&Self, Option<&str>) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn send_string_trampoline<
F: Fn(&WebRTCDataChannel, Option<&str>) + Send + Sync + 'static,
>(
this: *mut ffi::GstWebRTCDataChannel,
data: *mut std::ffi::c_char,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(
&from_glib_borrow(this),
Option::<glib::GString>::from_glib_borrow(data)
.as_ref()
.as_ref()
.map(|s| s.as_str()),
)
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
c"send-string".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
send_string_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
pub fn emit_send_string(&self, data: Option<&str>) {
self.emit_by_name::<()>("send-string", &[&data]);
}
#[doc(alias = "buffered-amount")]
pub fn connect_buffered_amount_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -98,6 +98,12 @@ pub type GstWebRTCICERole = c_int;
pub const GST_WEBRTC_ICE_ROLE_CONTROLLED: GstWebRTCICERole = 0;
pub const GST_WEBRTC_ICE_ROLE_CONTROLLING: GstWebRTCICERole = 1;
pub type GstWebRTCICETcpCandidateType = c_int;
pub const GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_ACTIVE: GstWebRTCICETcpCandidateType = 0;
pub const GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_PASSIVE: GstWebRTCICETcpCandidateType = 1;
pub const GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_SO: GstWebRTCICETcpCandidateType = 2;
pub const GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_NONE: GstWebRTCICETcpCandidateType = 3;
pub type GstWebRTCICETransportPolicy = c_int;
pub const GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL: GstWebRTCICETransportPolicy = 0;
pub const GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY: GstWebRTCICETransportPolicy = 1;
@ -164,6 +170,22 @@ pub const GST_WEBRTC_STATS_LOCAL_CANDIDATE: GstWebRTCStatsType = 12;
pub const GST_WEBRTC_STATS_REMOTE_CANDIDATE: GstWebRTCStatsType = 13;
pub const GST_WEBRTC_STATS_CERTIFICATE: GstWebRTCStatsType = 14;
// Unions
#[derive(Copy, Clone)]
#[repr(C)]
pub union GstWebRTCICECandidateStats_ABI {
pub abi: GstWebRTCICECandidateStats_ABI_abi,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstWebRTCICECandidateStats_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstWebRTCICECandidateStats_ABI @ {self:p}"))
.field("abi", unsafe { &self.abi })
.finish()
}
}
// Callbacks
pub type GstWebRTCICEOnCandidateFunc =
Option<unsafe extern "C" fn(*mut GstWebRTCICE, c_uint, *const c_char, gpointer)>;
@ -198,7 +220,7 @@ pub struct GstWebRTCICECandidateStats {
pub relay_proto: *const c_char,
pub prio: c_uint,
pub url: *mut c_char,
pub _gst_reserved: [gpointer; 20],
pub ABI: GstWebRTCICECandidateStats_ABI,
}
impl ::std::fmt::Debug for GstWebRTCICECandidateStats {
@ -212,7 +234,29 @@ impl ::std::fmt::Debug for GstWebRTCICECandidateStats {
.field("relay_proto", &self.relay_proto)
.field("prio", &self.prio)
.field("url", &self.url)
.field("_gst_reserved", &self._gst_reserved)
.field("ABI", &self.ABI)
.finish()
}
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstWebRTCICECandidateStats_ABI_abi {
pub foundation: *mut c_char,
pub related_address: *mut c_char,
pub related_port: c_uint,
pub username_fragment: *mut c_char,
pub tcp_type: GstWebRTCICETcpCandidateType,
}
impl ::std::fmt::Debug for GstWebRTCICECandidateStats_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstWebRTCICECandidateStats_ABI_abi @ {self:p}"))
.field("foundation", &self.foundation)
.field("related_address", &self.related_address)
.field("related_port", &self.related_port)
.field("username_fragment", &self.username_fragment)
.field("tcp_type", &self.tcp_type)
.finish()
}
}
@ -637,6 +681,13 @@ extern "C" {
//=========================================================================
pub fn gst_webrtc_ice_role_get_type() -> GType;
//=========================================================================
// GstWebRTCICETcpCandidateType
//=========================================================================
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_webrtc_ice_tcp_candidate_type_get_type() -> GType;
//=========================================================================
// GstWebRTCICETransportPolicy
//=========================================================================

View file

@ -307,6 +307,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstWebRTCICEStreamClass>(),
},
),
(
"GstWebRTCICETcpCandidateType",
Layout {
size: size_of::<GstWebRTCICETcpCandidateType>(),
alignment: align_of::<GstWebRTCICETcpCandidateType>(),
},
),
(
"GstWebRTCICETransport",
Layout {
@ -441,6 +448,10 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_WEBRTC_ICE_GATHERING_STATE_NEW", "0"),
("(gint) GST_WEBRTC_ICE_ROLE_CONTROLLED", "0"),
("(gint) GST_WEBRTC_ICE_ROLE_CONTROLLING", "1"),
("(gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_ACTIVE", "0"),
("(gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_NONE", "3"),
("(gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_PASSIVE", "1"),
("(gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_SO", "2"),
("(gint) GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL", "0"),
("(gint) GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY", "1"),
("(gint) GST_WEBRTC_KIND_AUDIO", "1"),

View file

@ -73,6 +73,10 @@ int main() {
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_GATHERING_STATE_NEW);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_ROLE_CONTROLLED);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_ROLE_CONTROLLING);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_ACTIVE);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_NONE);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_PASSIVE);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_SO);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL);
PRINT_CONSTANT((gint) GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY);
PRINT_CONSTANT((gint) GST_WEBRTC_KIND_AUDIO);

View file

@ -23,6 +23,7 @@ int main() {
printf("%s;%zu;%zu\n", "GstWebRTCICERole", sizeof(GstWebRTCICERole), alignof(GstWebRTCICERole));
printf("%s;%zu;%zu\n", "GstWebRTCICEStream", sizeof(GstWebRTCICEStream), alignof(GstWebRTCICEStream));
printf("%s;%zu;%zu\n", "GstWebRTCICEStreamClass", sizeof(GstWebRTCICEStreamClass), alignof(GstWebRTCICEStreamClass));
printf("%s;%zu;%zu\n", "GstWebRTCICETcpCandidateType", sizeof(GstWebRTCICETcpCandidateType), alignof(GstWebRTCICETcpCandidateType));
printf("%s;%zu;%zu\n", "GstWebRTCICETransport", sizeof(GstWebRTCICETransport), alignof(GstWebRTCICETransport));
printf("%s;%zu;%zu\n", "GstWebRTCICETransportClass", sizeof(GstWebRTCICETransportClass), alignof(GstWebRTCICETransportClass));
printf("%s;%zu;%zu\n", "GstWebRTCICETransportPolicy", sizeof(GstWebRTCICETransportPolicy), alignof(GstWebRTCICETransportPolicy));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d0807e9c5bc)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 76115738678a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ e6171642918d)

View file

@ -1194,6 +1194,8 @@ pub type GstValueDeserializeFunc =
pub type GstValueDeserializeWithPSpecFunc = Option<
unsafe extern "C" fn(*mut gobject::GValue, *const c_char, *mut gobject::GParamSpec) -> gboolean,
>;
pub type GstValueHashFunc =
Option<unsafe extern "C" fn(*const gobject::GValue, *mut c_uint) -> gboolean>;
pub type GstValueSerializeFunc =
Option<unsafe extern "C" fn(*const gobject::GValue) -> *mut c_char>;
@ -3125,7 +3127,8 @@ pub struct GstValueTable {
pub serialize: GstValueSerializeFunc,
pub deserialize: GstValueDeserializeFunc,
pub deserialize_with_pspec: GstValueDeserializeWithPSpecFunc,
pub _gst_reserved: [gpointer; 3],
pub hash: GstValueHashFunc,
pub _gst_reserved: [gpointer; 2],
}
impl ::std::fmt::Debug for GstValueTable {
@ -3136,6 +3139,7 @@ impl ::std::fmt::Debug for GstValueTable {
.field("serialize", &self.serialize)
.field("deserialize", &self.deserialize)
.field("deserialize_with_pspec", &self.deserialize_with_pspec)
.field("hash", &self.hash)
.finish()
}
}
@ -9911,6 +9915,9 @@ extern "C" {
pub fn gst_value_get_int_range_min(value: *const gobject::GValue) -> c_int;
pub fn gst_value_get_int_range_step(value: *const gobject::GValue) -> c_int;
pub fn gst_value_get_structure(value: *const gobject::GValue) -> *const GstStructure;
#[cfg(feature = "v1_28")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))]
pub fn gst_value_hash(value: *const gobject::GValue, res: *mut c_uint) -> gboolean;
pub fn gst_value_init_and_copy(dest: *mut gobject::GValue, src: *const gobject::GValue);
pub fn gst_value_intersect(
dest: *mut gobject::GValue,