diff --git a/gstreamer-allocators/src/auto/versions.txt b/gstreamer-allocators/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-allocators/src/auto/versions.txt +++ b/gstreamer-allocators/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-allocators/sys/src/auto/versions.txt b/gstreamer-allocators/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-allocators/sys/src/auto/versions.txt +++ b/gstreamer-allocators/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-allocators/sys/src/lib.rs b/gstreamer-allocators/sys/src/lib.rs index 10bdf4880..a38814696 100644 --- a/gstreamer-allocators/sys/src/lib.rs +++ b/gstreamer-allocators/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gobject_sys as gobject; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -117,6 +118,7 @@ impl ::std::fmt::Debug for GstShmAllocatorClass { // Classes #[repr(C)] +#[allow(dead_code)] pub struct GstDRMDumbAllocator { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -159,6 +161,7 @@ impl ::std::fmt::Debug for GstFdAllocator { } #[repr(C)] +#[allow(dead_code)] pub struct GstShmAllocator { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -173,6 +176,7 @@ impl ::std::fmt::Debug for GstShmAllocator { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstPhysMemoryAllocator { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -184,7 +188,6 @@ impl ::std::fmt::Debug for GstPhysMemoryAllocator { } } -#[link(name = "gstallocators-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-analytics/src/auto/versions.txt b/gstreamer-analytics/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-analytics/src/auto/versions.txt +++ b/gstreamer-analytics/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-analytics/sys/src/auto/versions.txt b/gstreamer-analytics/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-analytics/sys/src/auto/versions.txt +++ b/gstreamer-analytics/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-analytics/sys/src/lib.rs b/gstreamer-analytics/sys/src/lib.rs index 1ea7176f9..fb52c031a 100644 --- a/gstreamer-analytics/sys/src/lib.rs +++ b/gstreamer-analytics/sys/src/lib.rs @@ -15,14 +15,15 @@ use glib_sys as glib; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -118,6 +119,7 @@ impl ::std::fmt::Debug for GstAnalyticsODMtd { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAnalyticsRelationMeta { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -157,7 +159,6 @@ impl ::std::fmt::Debug for GstAnalyticsTrackingMtd { } } -#[link(name = "gstanalytics-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-app/sys/src/auto/versions.txt b/gstreamer-app/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-app/sys/src/auto/versions.txt +++ b/gstreamer-app/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 881625f07..6799055cd 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gstreamer_base_sys as gst_base; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -99,6 +100,7 @@ impl ::std::fmt::Debug for GstAppSinkClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAppSinkPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -158,6 +160,7 @@ impl ::std::fmt::Debug for GstAppSrcClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAppSrcPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -198,7 +201,6 @@ impl ::std::fmt::Debug for GstAppSrc { } } -#[link(name = "gstapp-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-audio/sys/src/auto/versions.txt b/gstreamer-audio/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-audio/sys/src/auto/versions.txt +++ b/gstreamer-audio/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index d892b9bf8..045163489 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -17,14 +17,15 @@ use gobject_sys as gobject; use gstreamer_base_sys as gst_base; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -376,6 +377,7 @@ impl ::std::fmt::Debug for GstAudioAggregatorConvertPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioAggregatorConvertPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -410,6 +412,7 @@ impl ::std::fmt::Debug for GstAudioAggregatorPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioAggregatorPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -418,6 +421,7 @@ pub struct _GstAudioAggregatorPadPrivate { pub type GstAudioAggregatorPadPrivate = _GstAudioAggregatorPadPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioAggregatorPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -448,6 +452,7 @@ impl ::std::fmt::Debug for GstAudioBaseSinkClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioBaseSinkPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -474,6 +479,7 @@ impl ::std::fmt::Debug for GstAudioBaseSrcClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioBaseSrcPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -529,6 +535,7 @@ impl ::std::fmt::Debug for GstAudioCdSrcClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioCdSrcPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -561,6 +568,7 @@ impl ::std::fmt::Debug for GstAudioCdSrcTrack { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioChannelMixer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -604,6 +612,7 @@ impl ::std::fmt::Debug for GstAudioClockClass { } #[repr(C)] +#[allow(dead_code)] pub struct GstAudioConverter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -694,6 +703,7 @@ impl ::std::fmt::Debug for GstAudioDecoderClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioDecoderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -794,6 +804,7 @@ impl ::std::fmt::Debug for GstAudioEncoderClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioEncoderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -920,6 +931,7 @@ impl ::std::fmt::Debug for GstAudioMeta { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioQuantize { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -928,6 +940,7 @@ pub struct _GstAudioQuantize { pub type GstAudioQuantize = _GstAudioQuantize; #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioResampler { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -986,6 +999,7 @@ impl ::std::fmt::Debug for GstAudioRingBufferClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioRingBufferPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1121,6 +1135,7 @@ impl ::std::fmt::Debug for GstAudioSrcClass { } #[repr(C)] +#[allow(dead_code)] pub struct GstAudioStreamAlign { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1495,6 +1510,7 @@ impl ::std::fmt::Debug for GstAudioSrc { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstStreamVolume { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1506,7 +1522,6 @@ impl ::std::fmt::Debug for GstStreamVolume { } } -#[link(name = "gstaudio-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index dc4443cc0..9433b3bf7 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -758,10 +758,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(guint) GST_AUDIO_FLAG_NONE", "0"), ("(guint) GST_AUDIO_FLAG_UNPOSITIONED", "1"), ("(gint) GST_AUDIO_FORMAT_ENCODED", "1"), - ("(gint) GST_AUDIO_FORMAT_F32", "28"), ("(gint) GST_AUDIO_FORMAT_F32BE", "29"), ("(gint) GST_AUDIO_FORMAT_F32LE", "28"), - ("(gint) GST_AUDIO_FORMAT_F64", "30"), ("(gint) GST_AUDIO_FORMAT_F64BE", "31"), ("(gint) GST_AUDIO_FORMAT_F64LE", "30"), ("(guint) GST_AUDIO_FORMAT_FLAG_COMPLEX", "16"), @@ -770,41 +768,29 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(guint) GST_AUDIO_FORMAT_FLAG_SIGNED", "4"), ("(guint) GST_AUDIO_FORMAT_FLAG_UNPACK", "32"), ("GST_AUDIO_FORMAT_LAST", "32"), - ("(gint) GST_AUDIO_FORMAT_S16", "4"), ("(gint) GST_AUDIO_FORMAT_S16BE", "5"), ("(gint) GST_AUDIO_FORMAT_S16LE", "4"), - ("(gint) GST_AUDIO_FORMAT_S18", "24"), ("(gint) GST_AUDIO_FORMAT_S18BE", "25"), ("(gint) GST_AUDIO_FORMAT_S18LE", "24"), - ("(gint) GST_AUDIO_FORMAT_S20", "20"), ("(gint) GST_AUDIO_FORMAT_S20BE", "21"), ("(gint) GST_AUDIO_FORMAT_S20LE", "20"), - ("(gint) GST_AUDIO_FORMAT_S24", "16"), ("(gint) GST_AUDIO_FORMAT_S24BE", "17"), ("(gint) GST_AUDIO_FORMAT_S24LE", "16"), - ("(gint) GST_AUDIO_FORMAT_S24_32", "8"), ("(gint) GST_AUDIO_FORMAT_S24_32BE", "9"), ("(gint) GST_AUDIO_FORMAT_S24_32LE", "8"), - ("(gint) GST_AUDIO_FORMAT_S32", "12"), ("(gint) GST_AUDIO_FORMAT_S32BE", "13"), ("(gint) GST_AUDIO_FORMAT_S32LE", "12"), ("(gint) GST_AUDIO_FORMAT_S8", "2"), - ("(gint) GST_AUDIO_FORMAT_U16", "6"), ("(gint) GST_AUDIO_FORMAT_U16BE", "7"), ("(gint) GST_AUDIO_FORMAT_U16LE", "6"), - ("(gint) GST_AUDIO_FORMAT_U18", "26"), ("(gint) GST_AUDIO_FORMAT_U18BE", "27"), ("(gint) GST_AUDIO_FORMAT_U18LE", "26"), - ("(gint) GST_AUDIO_FORMAT_U20", "22"), ("(gint) GST_AUDIO_FORMAT_U20BE", "23"), ("(gint) GST_AUDIO_FORMAT_U20LE", "22"), - ("(gint) GST_AUDIO_FORMAT_U24", "18"), ("(gint) GST_AUDIO_FORMAT_U24BE", "19"), ("(gint) GST_AUDIO_FORMAT_U24LE", "18"), - ("(gint) GST_AUDIO_FORMAT_U24_32", "10"), ("(gint) GST_AUDIO_FORMAT_U24_32BE", "11"), ("(gint) GST_AUDIO_FORMAT_U24_32LE", "10"), - ("(gint) GST_AUDIO_FORMAT_U32", "14"), ("(gint) GST_AUDIO_FORMAT_U32BE", "15"), ("(gint) GST_AUDIO_FORMAT_U32LE", "14"), ("(gint) GST_AUDIO_FORMAT_U8", "3"), diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 2069ec507..30e38bf5e 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -106,10 +106,8 @@ int main() { PRINT_CONSTANT((guint) GST_AUDIO_FLAG_NONE); PRINT_CONSTANT((guint) GST_AUDIO_FLAG_UNPOSITIONED); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_ENCODED); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_F32); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_F32BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_F32LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_F64); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_F64BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_F64LE); PRINT_CONSTANT((guint) GST_AUDIO_FORMAT_FLAG_COMPLEX); @@ -118,41 +116,29 @@ int main() { PRINT_CONSTANT((guint) GST_AUDIO_FORMAT_FLAG_SIGNED); PRINT_CONSTANT((guint) GST_AUDIO_FORMAT_FLAG_UNPACK); PRINT_CONSTANT(GST_AUDIO_FORMAT_LAST); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S16); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S16BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S16LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S18); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S18BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S18LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S20); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S20BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S20LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S24); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S24BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S24LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S24_32); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S24_32BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S24_32LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S32); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S32BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S32LE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_S8); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U16); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U16BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U16LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U18); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U18BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U18LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U20); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U20BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U20LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U24); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U24BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U24LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U24_32); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U24_32BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U24_32LE); - PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U32); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U32BE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U32LE); PRINT_CONSTANT((gint) GST_AUDIO_FORMAT_U8); diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-base/sys/src/auto/versions.txt b/gstreamer-base/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-base/sys/src/auto/versions.txt +++ b/gstreamer-base/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index 4f0d39a4c..cedd32bc0 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gobject_sys as gobject; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -141,6 +142,7 @@ pub type GstTypeFindHelperGetRangeFunction = Option< // Records #[repr(C)] +#[allow(dead_code)] pub struct _GstAdapterClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -296,6 +298,7 @@ impl ::std::fmt::Debug for GstAggregatorPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAggregatorPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -304,6 +307,7 @@ pub struct _GstAggregatorPadPrivate { pub type GstAggregatorPadPrivate = _GstAggregatorPadPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstAggregatorPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -396,6 +400,7 @@ impl ::std::fmt::Debug for GstBaseParseFrame { } #[repr(C)] +#[allow(dead_code)] pub struct _GstBaseParsePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -473,6 +478,7 @@ impl ::std::fmt::Debug for GstBaseSinkClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstBaseSinkPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -567,6 +573,7 @@ impl ::std::fmt::Debug for GstBaseSrcClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstBaseSrcPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -735,6 +742,7 @@ impl ::std::fmt::Debug for GstBaseTransformClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstBaseTransformPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -850,6 +858,7 @@ impl ::std::fmt::Debug for GstCollectData { } #[repr(C)] +#[allow(dead_code)] pub struct _GstCollectDataPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -887,6 +896,7 @@ impl ::std::fmt::Debug for GstCollectPadsClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstCollectPadsPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -938,6 +948,7 @@ impl ::std::fmt::Debug for GstDataQueueItem { } #[repr(C)] +#[allow(dead_code)] pub struct _GstDataQueuePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -964,6 +975,7 @@ impl ::std::fmt::Debug for GstDataQueueSize { } #[repr(C)] +#[allow(dead_code)] pub struct GstFlowCombiner { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1001,6 +1013,7 @@ impl ::std::fmt::Debug for GstPushSrcClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstQueueArray { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1009,6 +1022,7 @@ pub struct _GstQueueArray { pub type GstQueueArray = _GstQueueArray; #[repr(C)] +#[allow(dead_code)] pub struct _GstTypeFindData { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1018,6 +1032,7 @@ pub type GstTypeFindData = _GstTypeFindData; // Classes #[repr(C)] +#[allow(dead_code)] pub struct GstAdapter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1261,7 +1276,6 @@ impl ::std::fmt::Debug for GstPushSrc { } } -#[link(name = "gstbase-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-check/sys/src/auto/versions.txt b/gstreamer-check/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-check/sys/src/auto/versions.txt +++ b/gstreamer-check/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index a8a552c2d..c2a191405 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gobject_sys as gobject; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -59,6 +60,7 @@ impl ::std::fmt::Debug for GstHarness { } #[repr(C)] +#[allow(dead_code)] pub struct _GstHarnessPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -67,6 +69,7 @@ pub struct _GstHarnessPrivate { pub type GstHarnessPrivate = _GstHarnessPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstHarnessThread { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -75,6 +78,7 @@ pub struct _GstHarnessThread { pub type GstHarnessThread = _GstHarnessThread; #[repr(C)] +#[allow(dead_code)] pub struct _GstStreamConsistency { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -97,6 +101,7 @@ impl ::std::fmt::Debug for GstTestClockClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTestClockPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -120,7 +125,6 @@ impl ::std::fmt::Debug for GstTestClock { } } -#[link(name = "gstcheck-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-controller/sys/src/auto/versions.txt b/gstreamer-controller/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-controller/sys/src/auto/versions.txt +++ b/gstreamer-controller/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index 75f8bc3db..de83796bc 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gobject_sys as gobject; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -195,6 +196,7 @@ impl ::std::fmt::Debug for GstInterpolationControlSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstInterpolationControlSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -218,6 +220,7 @@ impl ::std::fmt::Debug for GstLFOControlSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstLFOControlSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -255,6 +258,7 @@ impl ::std::fmt::Debug for GstTimedValueControlSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTimedValueControlSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -278,6 +282,7 @@ impl ::std::fmt::Debug for GstTriggerControlSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTriggerControlSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -418,7 +423,6 @@ impl ::std::fmt::Debug for GstTriggerControlSource { } } -#[link(name = "gstcontroller-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-editing-services/src/auto/discoverer_manager.rs b/gstreamer-editing-services/src/auto/discoverer_manager.rs index 3142c8854..754008762 100644 --- a/gstreamer-editing-services/src/auto/discoverer_manager.rs +++ b/gstreamer-editing-services/src/auto/discoverer_manager.rs @@ -135,7 +135,7 @@ impl DiscovererManager { F: Fn(&DiscovererManager, &str) -> Option + 'static, >( this: *mut ffi::GESDiscovererManager, - uri: *mut libc::c_char, + uri: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) -> *mut gst_pbutils::ffi::GstDiscovererInfo { let f: &F = &*(f as *const F); diff --git a/gstreamer-editing-services/src/auto/meta_container.rs b/gstreamer-editing-services/src/auto/meta_container.rs index 5bf0a60bf..9b2cc1a2a 100644 --- a/gstreamer-editing-services/src/auto/meta_container.rs +++ b/gstreamer-editing-services/src/auto/meta_container.rs @@ -70,7 +70,7 @@ pub trait MetaContainerExt: IsA + sealed::Sealed + 'static { let func_data: P = func; unsafe extern "C" fn func_func( container: *const ffi::GESMetaContainer, - key: *const libc::c_char, + key: *const std::ffi::c_char, value: *const glib::gobject_ffi::GValue, user_data: glib::ffi::gpointer, ) { @@ -598,7 +598,7 @@ pub trait MetaContainerExt: IsA + sealed::Sealed + 'static { F: Fn(&P, &str, Option<&glib::Value>) + 'static, >( this: *mut ffi::GESMetaContainer, - key: *mut libc::c_char, + key: *mut std::ffi::c_char, value: *mut glib::gobject_ffi::GValue, f: glib::ffi::gpointer, ) { diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index 85000b658..452958a20 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -351,7 +351,7 @@ pub trait ProjectExt: IsA + sealed::Sealed + 'static { >( this: *mut ffi::GESProject, error: *mut glib::ffi::GError, - id: *mut libc::c_char, + id: *mut std::ffi::c_char, extractable_type: glib::ffi::GType, f: glib::ffi::gpointer, ) { @@ -445,7 +445,7 @@ pub trait ProjectExt: IsA + sealed::Sealed + 'static { error: *mut glib::ffi::GError, wrong_asset: *mut ffi::GESAsset, f: glib::ffi::gpointer, - ) -> *mut libc::c_char { + ) -> *mut std::ffi::c_char { let f: &F = &*(f as *const F); f( Project::from_glib_borrow(this).unsafe_cast_ref(), diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-editing-services/sys/src/auto/versions.txt b/gstreamer-editing-services/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-editing-services/sys/src/auto/versions.txt +++ b/gstreamer-editing-services/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index e9403875d..2788b6b11 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -18,14 +18,15 @@ use gobject_sys as gobject; use gstreamer_pbutils_sys as gst_pbutils; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -348,6 +349,7 @@ impl ::std::fmt::Debug for GESAssetClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESAssetPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -372,6 +374,7 @@ impl ::std::fmt::Debug for GESAudioSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESAudioSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -394,6 +397,7 @@ impl ::std::fmt::Debug for GESAudioTestSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESAudioTestSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -418,6 +422,7 @@ impl ::std::fmt::Debug for GESAudioTrackClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESAudioTrackPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -442,6 +447,7 @@ impl ::std::fmt::Debug for GESAudioTransitionClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESAudioTransitionPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -464,6 +470,7 @@ impl ::std::fmt::Debug for GESAudioUriSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESAudioUriSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -500,6 +507,7 @@ impl ::std::fmt::Debug for GESBaseEffectClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESBaseEffectClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -508,6 +516,7 @@ pub struct _GESBaseEffectClipPrivate { pub type GESBaseEffectClipPrivate = _GESBaseEffectClipPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESBaseEffectPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -530,6 +539,7 @@ impl ::std::fmt::Debug for GESBaseTransitionClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESBaseTransitionClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -564,6 +574,7 @@ impl ::std::fmt::Debug for GESBaseXmlFormatterClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESBaseXmlFormatterPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -591,6 +602,7 @@ impl ::std::fmt::Debug for GESClipAssetClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESClipAssetPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -632,6 +644,7 @@ impl ::std::fmt::Debug for GESClipClass_ABI_abi { } #[repr(C)] +#[allow(dead_code)] pub struct _GESClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -654,6 +667,7 @@ impl ::std::fmt::Debug for GESCommandLineFormatterClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESCommandLineFormatterPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -702,6 +716,7 @@ impl ::std::fmt::Debug for GESContainerClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESContainerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -724,6 +739,7 @@ impl ::std::fmt::Debug for GESDiscovererManagerClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESDiscovererManagerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -748,6 +764,7 @@ impl ::std::fmt::Debug for GESEffectAssetClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESEffectAssetPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -785,6 +802,7 @@ impl ::std::fmt::Debug for GESEffectClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESEffectClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -793,6 +811,7 @@ pub struct _GESEffectClipPrivate { pub type GESEffectClipPrivate = _GESEffectClipPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESEffectPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -870,6 +889,7 @@ impl ::std::fmt::Debug for GESFormatterClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESFormatterPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -922,6 +942,7 @@ impl ::std::fmt::Debug for GESGroupClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESGroupPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -946,6 +967,7 @@ impl ::std::fmt::Debug for GESImageSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESImageSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -974,6 +996,7 @@ impl ::std::fmt::Debug for GESLayerClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESLayerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1042,6 +1065,7 @@ impl ::std::fmt::Debug for GESMultiFileSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESMultiFileSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1078,6 +1102,7 @@ impl ::std::fmt::Debug for GESOperationClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESOperationClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1086,6 +1111,7 @@ pub struct _GESOperationClipPrivate { pub type GESOperationClipPrivate = _GESOperationClipPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESOperationPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1109,6 +1135,7 @@ impl ::std::fmt::Debug for GESOverlayClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESOverlayClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1131,6 +1158,7 @@ impl ::std::fmt::Debug for GESPipelineClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESPipelinePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1139,6 +1167,7 @@ pub struct _GESPipelinePrivate { pub type GESPipelinePrivate = _GESPipelinePrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESPitiviFormatterPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1181,6 +1210,7 @@ impl ::std::fmt::Debug for GESProjectClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESProjectPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1235,6 +1265,7 @@ impl ::std::fmt::Debug for GESSourceClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESSourceClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1243,6 +1274,7 @@ pub struct _GESSourceClipPrivate { pub type GESSourceClipPrivate = _GESSourceClipPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1265,6 +1297,7 @@ impl ::std::fmt::Debug for GESTestClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTestClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1302,6 +1335,7 @@ impl ::std::fmt::Debug for GESTextOverlayClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTextOverlayClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1310,6 +1344,7 @@ pub struct _GESTextOverlayClipPrivate { pub type GESTextOverlayClipPrivate = _GESTextOverlayClipPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESTextOverlayPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1438,6 +1473,7 @@ impl ::std::fmt::Debug for GESTimelineElementClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTimelineElementPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1446,6 +1482,7 @@ pub struct _GESTimelineElementPrivate { pub type GESTimelineElementPrivate = _GESTimelineElementPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESTimelinePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1468,6 +1505,7 @@ impl ::std::fmt::Debug for GESTitleClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTitleClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1491,6 +1529,7 @@ impl ::std::fmt::Debug for GESTitleSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTitleSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1534,6 +1573,7 @@ impl ::std::fmt::Debug for GESTrackElementAssetClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTrackElementAssetPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1600,6 +1640,7 @@ impl ::std::fmt::Debug for GESTrackElementClass_ABI_abi { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTrackElementPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1608,6 +1649,7 @@ pub struct _GESTrackElementPrivate { pub type GESTrackElementPrivate = _GESTrackElementPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESTrackPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1644,6 +1686,7 @@ impl ::std::fmt::Debug for GESTransitionClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESTransitionClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1652,6 +1695,7 @@ pub struct _GESTransitionClipPrivate { pub type GESTransitionClipPrivate = _GESTransitionClipPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESTransitionPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1686,6 +1730,7 @@ impl ::std::fmt::Debug for GESUriClipAssetClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESUriClipAssetPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1708,6 +1753,7 @@ impl ::std::fmt::Debug for GESUriClipClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESUriClipPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1716,6 +1762,7 @@ pub struct _GESUriClipPrivate { pub type GESUriClipPrivate = _GESUriClipPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GESUriSource { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1740,6 +1787,7 @@ impl ::std::fmt::Debug for GESUriSourceAssetClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESUriSourceAssetPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1791,6 +1839,7 @@ impl ::std::fmt::Debug for GESVideoSourceClass_ABI_abi { } #[repr(C)] +#[allow(dead_code)] pub struct _GESVideoSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1815,6 +1864,7 @@ impl ::std::fmt::Debug for GESVideoTestSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESVideoTestSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1839,6 +1889,7 @@ impl ::std::fmt::Debug for GESVideoTrackClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESVideoTrackPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1862,6 +1913,7 @@ impl ::std::fmt::Debug for GESVideoTransitionClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESVideoTransitionPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1884,6 +1936,7 @@ impl ::std::fmt::Debug for GESVideoUriSourceClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESVideoUriSourcePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1908,6 +1961,7 @@ impl ::std::fmt::Debug for GESXmlFormatterClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GESXmlFormatterPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2146,6 +2200,7 @@ impl ::std::fmt::Debug for GESContainer { } #[repr(C)] +#[allow(dead_code)] pub struct GESDiscovererManager { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2280,6 +2335,7 @@ impl ::std::fmt::Debug for GESLayer { } #[repr(C)] +#[allow(dead_code)] pub struct GESMarker { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2292,6 +2348,7 @@ impl ::std::fmt::Debug for GESMarker { } #[repr(C)] +#[allow(dead_code)] pub struct GESMarkerList { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2802,6 +2859,7 @@ impl ::std::fmt::Debug for GESXmlFormatter { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GESExtractable { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2814,6 +2872,7 @@ impl ::std::fmt::Debug for GESExtractable { } #[repr(C)] +#[allow(dead_code)] pub struct GESMetaContainer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2825,7 +2884,6 @@ impl ::std::fmt::Debug for GESMetaContainer { } } -#[link(name = "ges-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/egl/sys/src/auto/versions.txt b/gstreamer-gl/egl/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/egl/sys/src/auto/versions.txt +++ b/gstreamer-gl/egl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index 77b3313d4..e5e86937a 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -15,14 +15,15 @@ use glib_sys as glib; use gstreamer_gl_sys as gst_gl; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -65,7 +66,6 @@ impl ::std::fmt::Debug for GstGLDisplayEGL { } } -#[link(name = "gstgl-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 91786483c..8bef5fa75 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -216,8 +216,8 @@ pub trait GLWindowExt: IsA + sealed::Sealed + 'static { F: Fn(&P, &str, &str) + Send + Sync + 'static, >( this: *mut ffi::GstGLWindow, - id: *mut libc::c_char, - key: *mut libc::c_char, + id: *mut std::ffi::c_char, + key: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -250,10 +250,10 @@ pub trait GLWindowExt: IsA + sealed::Sealed + 'static { F: Fn(&P, &str, i32, f64, f64) + Send + Sync + 'static, >( this: *mut ffi::GstGLWindow, - id: *mut libc::c_char, - button: libc::c_int, - x: libc::c_double, - y: libc::c_double, + id: *mut std::ffi::c_char, + button: std::ffi::c_int, + x: std::ffi::c_double, + y: std::ffi::c_double, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -290,10 +290,10 @@ pub trait GLWindowExt: IsA + sealed::Sealed + 'static { F: Fn(&P, f64, f64, f64, f64) + Send + Sync + 'static, >( this: *mut ffi::GstGLWindow, - x: libc::c_double, - y: libc::c_double, - delta_x: libc::c_double, - delta_y: libc::c_double, + x: std::ffi::c_double, + y: std::ffi::c_double, + delta_x: std::ffi::c_double, + delta_y: std::ffi::c_double, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/sys/src/auto/versions.txt b/gstreamer-gl/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/sys/src/auto/versions.txt +++ b/gstreamer-gl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index c5039a4b6..a8ec10337 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -22,14 +22,15 @@ mod manual; pub use manual::*; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -343,6 +344,7 @@ impl ::std::fmt::Debug for GstGLBaseFilterClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLBaseFilterPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -447,6 +449,7 @@ impl ::std::fmt::Debug for GstGLBaseMixerPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLBaseMixerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -479,6 +482,7 @@ impl ::std::fmt::Debug for GstGLBaseSrcClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLBaseSrcPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -556,6 +560,7 @@ impl ::std::fmt::Debug for GstGLBufferPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLBufferPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -578,6 +583,7 @@ impl ::std::fmt::Debug for GstGLColorConvertClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLColorConvertPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -639,6 +645,7 @@ impl ::std::fmt::Debug for GstGLContextClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLContextPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -666,6 +673,7 @@ impl ::std::fmt::Debug for GstGLDisplayClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLDisplayPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -730,6 +738,7 @@ impl ::std::fmt::Debug for GstGLFramebufferClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLFramebufferPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -738,6 +747,7 @@ pub struct _GstGLFramebufferPrivate { pub type GstGLFramebufferPrivate = _GstGLFramebufferPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstGLFuncs { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -867,6 +877,7 @@ impl ::std::fmt::Debug for GstGLMixerPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLMixerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -981,6 +992,7 @@ impl ::std::fmt::Debug for GstGLSLStageClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLSLStagePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1002,6 +1014,7 @@ impl ::std::fmt::Debug for GstGLShaderClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLShaderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1068,6 +1081,7 @@ impl ::std::fmt::Debug for GstGLUploadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLUploadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1115,6 +1129,7 @@ impl ::std::fmt::Debug for GstGLViewConvertClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLViewConvertPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1175,6 +1190,7 @@ impl ::std::fmt::Debug for GstGLWindowClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGLWindowPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1658,7 +1674,6 @@ impl ::std::fmt::Debug for GstGLWindow { } } -#[link(name = "gstgl-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/wayland/sys/src/auto/versions.txt b/gstreamer-gl/wayland/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/wayland/sys/src/auto/versions.txt +++ b/gstreamer-gl/wayland/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index 3434fe7c1..45e188d58 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -15,14 +15,15 @@ use glib_sys as glib; use gstreamer_gl_sys as gst_gl; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -71,7 +72,6 @@ impl ::std::fmt::Debug for GstGLDisplayWayland { } } -#[link(name = "gstgl-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/x11/sys/src/auto/versions.txt b/gstreamer-gl/x11/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-gl/x11/sys/src/auto/versions.txt +++ b/gstreamer-gl/x11/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index 325085c91..09301a254 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -15,14 +15,15 @@ use glib_sys as glib; use gstreamer_gl_sys as gst_gl; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -63,7 +64,6 @@ impl ::std::fmt::Debug for GstGLDisplayX11 { } } -#[link(name = "gstgl-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-mpegts/src/auto/versions.txt b/gstreamer-mpegts/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-mpegts/src/auto/versions.txt +++ b/gstreamer-mpegts/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-mpegts/sys/src/auto/versions.txt b/gstreamer-mpegts/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-mpegts/sys/src/auto/versions.txt +++ b/gstreamer-mpegts/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 6cf86215a..ae078d4fb 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -15,14 +15,15 @@ use glib_sys as glib; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -2084,7 +2085,6 @@ impl ::std::fmt::Debug for GstMpegtsTerrestrialDeliverySystemDescriptor { } } -#[link(name = "gstmpegts-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-net/sys/src/auto/versions.txt b/gstreamer-net/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-net/sys/src/auto/versions.txt +++ b/gstreamer-net/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index 2cd4f1ebe..d7c3c4551 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -16,14 +16,15 @@ use gio_sys as gio; use glib_sys as glib; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -74,6 +75,7 @@ impl ::std::fmt::Debug for GstNetClientClockClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstNetClientClockPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -130,6 +132,7 @@ impl ::std::fmt::Debug for GstNetTimeProviderClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstNetTimeProviderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -168,6 +171,7 @@ impl ::std::fmt::Debug for GstPtpClockClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstPtpClockPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -240,7 +244,6 @@ impl ::std::fmt::Debug for GstPtpClock { } } -#[link(name = "gstnet-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 137063652..7390589a3 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -162,7 +162,7 @@ impl Discoverer { F: Fn(&Discoverer, &str) -> Option + Send + Sync + 'static, >( this: *mut ffi::GstDiscoverer, - uri: *mut libc::c_char, + uri: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) -> *mut ffi::GstDiscovererInfo { let f: &F = &*(f as *const F); diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-pbutils/sys/src/auto/versions.txt b/gstreamer-pbutils/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-pbutils/sys/src/auto/versions.txt +++ b/gstreamer-pbutils/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 92bc5c5e5..3768362ab 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -18,14 +18,15 @@ use gstreamer_audio_sys as gst_audio; use gstreamer_sys as gst; use gstreamer_video_sys as gst_video; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -139,6 +140,7 @@ impl ::std::fmt::Debug for GstAudioVisualizerClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAudioVisualizerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -176,6 +178,7 @@ impl ::std::fmt::Debug for GstDiscovererClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstDiscovererPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -184,6 +187,7 @@ pub struct _GstDiscovererPrivate { pub type GstDiscovererPrivate = _GstDiscovererPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstEncodingAudioProfileClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -192,6 +196,7 @@ pub struct _GstEncodingAudioProfileClass { pub type GstEncodingAudioProfileClass = _GstEncodingAudioProfileClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstEncodingContainerProfileClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -200,6 +205,7 @@ pub struct _GstEncodingContainerProfileClass { pub type GstEncodingContainerProfileClass = _GstEncodingContainerProfileClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstEncodingProfileClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -208,6 +214,7 @@ pub struct _GstEncodingProfileClass { pub type GstEncodingProfileClass = _GstEncodingProfileClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstEncodingVideoProfileClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -216,6 +223,7 @@ pub struct _GstEncodingVideoProfileClass { pub type GstEncodingVideoProfileClass = _GstEncodingVideoProfileClass; #[repr(C)] +#[allow(dead_code)] pub struct GstInstallPluginsContext { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -267,6 +275,7 @@ impl ::std::fmt::Debug for GstDiscoverer { } #[repr(C)] +#[allow(dead_code)] pub struct GstDiscovererAudioInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -280,6 +289,7 @@ impl ::std::fmt::Debug for GstDiscovererAudioInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstDiscovererContainerInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -293,6 +303,7 @@ impl ::std::fmt::Debug for GstDiscovererContainerInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstDiscovererInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -306,6 +317,7 @@ impl ::std::fmt::Debug for GstDiscovererInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstDiscovererStreamInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -319,6 +331,7 @@ impl ::std::fmt::Debug for GstDiscovererStreamInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstDiscovererSubtitleInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -332,6 +345,7 @@ impl ::std::fmt::Debug for GstDiscovererSubtitleInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstDiscovererVideoInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -345,6 +359,7 @@ impl ::std::fmt::Debug for GstDiscovererVideoInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstEncodingAudioProfile { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -358,6 +373,7 @@ impl ::std::fmt::Debug for GstEncodingAudioProfile { } #[repr(C)] +#[allow(dead_code)] pub struct GstEncodingContainerProfile { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -371,6 +387,7 @@ impl ::std::fmt::Debug for GstEncodingContainerProfile { } #[repr(C)] +#[allow(dead_code)] pub struct GstEncodingProfile { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -384,6 +401,7 @@ impl ::std::fmt::Debug for GstEncodingProfile { } #[repr(C)] +#[allow(dead_code)] pub struct GstEncodingTarget { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -397,6 +415,7 @@ impl ::std::fmt::Debug for GstEncodingTarget { } #[repr(C)] +#[allow(dead_code)] pub struct GstEncodingVideoProfile { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -409,7 +428,6 @@ impl ::std::fmt::Debug for GstEncodingVideoProfile { } } -#[link(name = "gstpbutils-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-play/src/auto/play_signal_adapter.rs b/gstreamer-play/src/auto/play_signal_adapter.rs index c5f475670..762b6e7d8 100644 --- a/gstreamer-play/src/auto/play_signal_adapter.rs +++ b/gstreamer-play/src/auto/play_signal_adapter.rs @@ -61,7 +61,7 @@ impl PlaySignalAdapter { F: Fn(&PlaySignalAdapter, i32) + Send + 'static, >( this: *mut ffi::GstPlaySignalAdapter, - object: libc::c_int, + object: std::ffi::c_int, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -229,7 +229,7 @@ impl PlaySignalAdapter { F: Fn(&PlaySignalAdapter, &str) + Send + 'static, >( this: *mut ffi::GstPlaySignalAdapter, - object: *mut libc::c_char, + object: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -260,8 +260,8 @@ impl PlaySignalAdapter { F: Fn(&PlaySignalAdapter, u32, u32) + Send + 'static, >( this: *mut ffi::GstPlaySignalAdapter, - object: libc::c_uint, - p0: libc::c_uint, + object: std::ffi::c_uint, + p0: std::ffi::c_uint, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -289,7 +289,7 @@ impl PlaySignalAdapter { F: Fn(&PlaySignalAdapter, f64) + Send + 'static, >( this: *mut ffi::GstPlaySignalAdapter, - object: libc::c_double, + object: std::ffi::c_double, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-play/src/auto/versions.txt b/gstreamer-play/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-play/src/auto/versions.txt +++ b/gstreamer-play/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-play/sys/src/auto/versions.txt b/gstreamer-play/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-play/sys/src/auto/versions.txt +++ b/gstreamer-play/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-play/sys/src/lib.rs b/gstreamer-play/sys/src/lib.rs index e9c6a897f..c3b006b6e 100644 --- a/gstreamer-play/sys/src/lib.rs +++ b/gstreamer-play/sys/src/lib.rs @@ -17,14 +17,15 @@ use gobject_sys as gobject; use gstreamer_sys as gst; use gstreamer_video_sys as gst_video; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -69,6 +70,7 @@ pub const GST_PLAY_STATE_PLAYING: GstPlayState = 3; // Records #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayAudioInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -77,6 +79,7 @@ pub struct _GstPlayAudioInfoClass { pub type GstPlayAudioInfoClass = _GstPlayAudioInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -85,6 +88,7 @@ pub struct _GstPlayClass { pub type GstPlayClass = _GstPlayClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayMediaInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -93,6 +97,7 @@ pub struct _GstPlayMediaInfoClass { pub type GstPlayMediaInfoClass = _GstPlayMediaInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlaySignalAdapterClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -101,6 +106,7 @@ pub struct _GstPlaySignalAdapterClass { pub type GstPlaySignalAdapterClass = _GstPlaySignalAdapterClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayStreamInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -109,6 +115,7 @@ pub struct _GstPlayStreamInfoClass { pub type GstPlayStreamInfoClass = _GstPlayStreamInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlaySubtitleInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -117,6 +124,7 @@ pub struct _GstPlaySubtitleInfoClass { pub type GstPlaySubtitleInfoClass = _GstPlaySubtitleInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayVideoInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -125,6 +133,7 @@ pub struct _GstPlayVideoInfoClass { pub type GstPlayVideoInfoClass = _GstPlayVideoInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayVideoOverlayVideoRendererClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -168,6 +177,7 @@ impl ::std::fmt::Debug for GstPlayVisualization { // Classes #[repr(C)] +#[allow(dead_code)] pub struct GstPlay { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -180,6 +190,7 @@ impl ::std::fmt::Debug for GstPlay { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayAudioInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -193,6 +204,7 @@ impl ::std::fmt::Debug for GstPlayAudioInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayMediaInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -206,6 +218,7 @@ impl ::std::fmt::Debug for GstPlayMediaInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlaySignalAdapter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -219,6 +232,7 @@ impl ::std::fmt::Debug for GstPlaySignalAdapter { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayStreamInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -232,6 +246,7 @@ impl ::std::fmt::Debug for GstPlayStreamInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlaySubtitleInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -245,6 +260,7 @@ impl ::std::fmt::Debug for GstPlaySubtitleInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayVideoInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -258,6 +274,7 @@ impl ::std::fmt::Debug for GstPlayVideoInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayVideoOverlayVideoRenderer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -272,6 +289,7 @@ impl ::std::fmt::Debug for GstPlayVideoOverlayVideoRenderer { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstPlayVideoRenderer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -283,7 +301,6 @@ impl ::std::fmt::Debug for GstPlayVideoRenderer { } } -#[link(name = "gstplay-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 87ebb004f..9fb48fca8 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -429,7 +429,7 @@ impl Player { pub fn connect_buffering(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn buffering_trampoline( this: *mut ffi::GstPlayer, - object: libc::c_int, + object: std::ffi::c_int, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -578,7 +578,7 @@ impl Player { pub fn connect_uri_loaded(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn uri_loaded_trampoline( this: *mut ffi::GstPlayer, - object: *mut libc::c_char, + object: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -609,8 +609,8 @@ impl Player { F: Fn(&Player, i32, i32) + Send + 'static, >( this: *mut ffi::GstPlayer, - object: libc::c_int, - p0: libc::c_int, + object: std::ffi::c_int, + p0: std::ffi::c_int, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-player/sys/src/auto/versions.txt b/gstreamer-player/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-player/sys/src/auto/versions.txt +++ b/gstreamer-player/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index b6574bccb..80e49d215 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -17,14 +17,15 @@ use gobject_sys as gobject; use gstreamer_sys as gst; use gstreamer_video_sys as gst_video; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -57,6 +58,7 @@ pub type GstPlayerSignalDispatcherFunc = Option; // Records #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerAudioInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -65,6 +67,7 @@ pub struct _GstPlayerAudioInfoClass { pub type GstPlayerAudioInfoClass = _GstPlayerAudioInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -73,6 +76,7 @@ pub struct _GstPlayerClass { pub type GstPlayerClass = _GstPlayerClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerGMainContextSignalDispatcherClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -81,6 +85,7 @@ pub struct _GstPlayerGMainContextSignalDispatcherClass { pub type GstPlayerGMainContextSignalDispatcherClass = _GstPlayerGMainContextSignalDispatcherClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerMediaInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -113,6 +118,7 @@ impl ::std::fmt::Debug for GstPlayerSignalDispatcherInterface { } #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerStreamInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -121,6 +127,7 @@ pub struct _GstPlayerStreamInfoClass { pub type GstPlayerStreamInfoClass = _GstPlayerStreamInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerSubtitleInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -129,6 +136,7 @@ pub struct _GstPlayerSubtitleInfoClass { pub type GstPlayerSubtitleInfoClass = _GstPlayerSubtitleInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerVideoInfoClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -137,6 +145,7 @@ pub struct _GstPlayerVideoInfoClass { pub type GstPlayerVideoInfoClass = _GstPlayerVideoInfoClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPlayerVideoOverlayVideoRendererClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -180,6 +189,7 @@ impl ::std::fmt::Debug for GstPlayerVisualization { // Classes #[repr(C)] +#[allow(dead_code)] pub struct GstPlayer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -192,6 +202,7 @@ impl ::std::fmt::Debug for GstPlayer { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerAudioInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -205,6 +216,7 @@ impl ::std::fmt::Debug for GstPlayerAudioInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerGMainContextSignalDispatcher { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -218,6 +230,7 @@ impl ::std::fmt::Debug for GstPlayerGMainContextSignalDispatcher { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerMediaInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -231,6 +244,7 @@ impl ::std::fmt::Debug for GstPlayerMediaInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerStreamInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -244,6 +258,7 @@ impl ::std::fmt::Debug for GstPlayerStreamInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerSubtitleInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -257,6 +272,7 @@ impl ::std::fmt::Debug for GstPlayerSubtitleInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerVideoInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -270,6 +286,7 @@ impl ::std::fmt::Debug for GstPlayerVideoInfo { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerVideoOverlayVideoRenderer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -284,6 +301,7 @@ impl ::std::fmt::Debug for GstPlayerVideoOverlayVideoRenderer { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerSignalDispatcher { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -296,6 +314,7 @@ impl ::std::fmt::Debug for GstPlayerSignalDispatcher { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlayerVideoRenderer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -307,7 +326,6 @@ impl ::std::fmt::Debug for GstPlayerVideoRenderer { } } -#[link(name = "gstplayer-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-rtp/src/auto/rtp_base_depayload.rs b/gstreamer-rtp/src/auto/rtp_base_depayload.rs index 6befd2582..e6828a2f4 100644 --- a/gstreamer-rtp/src/auto/rtp_base_depayload.rs +++ b/gstreamer-rtp/src/auto/rtp_base_depayload.rs @@ -272,8 +272,8 @@ pub trait RTPBaseDepayloadExt: IsA + sealed::Sealed + 'static F: Fn(&P, u32, Option<&str>) -> Option + Send + Sync + 'static, >( this: *mut ffi::GstRTPBaseDepayload, - ext_id: libc::c_uint, - ext_uri: *mut libc::c_char, + ext_id: std::ffi::c_uint, + ext_uri: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) -> *mut ffi::GstRTPHeaderExtension { let f: &F = &*(f as *const F); diff --git a/gstreamer-rtp/src/auto/rtp_base_payload.rs b/gstreamer-rtp/src/auto/rtp_base_payload.rs index ba19acd7f..064c00291 100644 --- a/gstreamer-rtp/src/auto/rtp_base_payload.rs +++ b/gstreamer-rtp/src/auto/rtp_base_payload.rs @@ -380,8 +380,8 @@ pub trait RTPBasePayloadExt: IsA + sealed::Sealed + 'static { F: Fn(&P, u32, &str) -> Option + Send + Sync + 'static, >( this: *mut ffi::GstRTPBasePayload, - ext_id: libc::c_uint, - ext_uri: *mut libc::c_char, + ext_id: std::ffi::c_uint, + ext_uri: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) -> *mut ffi::GstRTPHeaderExtension { let f: &F = &*(f as *const F); diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-rtp/sys/src/auto/versions.txt b/gstreamer-rtp/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-rtp/sys/src/auto/versions.txt +++ b/gstreamer-rtp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index 157a44dae..b202fcc4c 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gstreamer_base_sys as gst_base; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -265,6 +266,7 @@ impl ::std::fmt::Debug for GstRTPBaseAudioPayloadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTPBaseAudioPayloadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -305,6 +307,7 @@ impl ::std::fmt::Debug for GstRTPBaseDepayloadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTPBaseDepayloadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -357,6 +360,7 @@ impl ::std::fmt::Debug for GstRTPBasePayloadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTPBasePayloadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -596,7 +600,6 @@ impl ::std::fmt::Debug for GstRTPHeaderExtension { } } -#[link(name = "gstrtp-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 770c4ff8c..f8e6b46cb 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -889,7 +889,7 @@ pub trait RTSPMediaExt: IsA + sealed::Sealed + 'static { F: Fn(&P, i32) + Send + Sync + 'static, >( this: *mut ffi::GstRTSPMedia, - object: libc::c_int, + object: std::ffi::c_int, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -1007,7 +1007,7 @@ pub trait RTSPMediaExt: IsA + sealed::Sealed + 'static { F: Fn(&P, i32) + Send + Sync + 'static, >( this: *mut ffi::GstRTSPMedia, - object: libc::c_int, + object: std::ffi::c_int, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-rtsp-server/sys/src/auto/versions.txt b/gstreamer-rtsp-server/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-rtsp-server/sys/src/auto/versions.txt +++ b/gstreamer-rtsp-server/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index 891b06ab5..d8a0ede0c 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -20,14 +20,15 @@ use gstreamer_rtsp_sys as gst_rtsp; use gstreamer_sdp_sys as gst_sdp; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -193,6 +194,7 @@ impl ::std::fmt::Debug for GstRTSPAddressPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPAddressPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -238,6 +240,7 @@ impl ::std::fmt::Debug for GstRTSPAuthClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPAuthPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -455,6 +458,7 @@ impl ::std::fmt::Debug for GstRTSPClientClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPClientPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -616,6 +620,7 @@ impl ::std::fmt::Debug for GstRTSPMediaFactoryClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPMediaFactoryPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -639,6 +644,7 @@ impl ::std::fmt::Debug for GstRTSPMediaFactoryURIClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPMediaFactoryURIPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -647,6 +653,7 @@ pub struct _GstRTSPMediaFactoryURIPrivate { pub type GstRTSPMediaFactoryURIPrivate = _GstRTSPMediaFactoryURIPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPMediaPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -674,6 +681,7 @@ impl ::std::fmt::Debug for GstRTSPMountPointsClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPMountPointsPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -730,6 +738,7 @@ impl ::std::fmt::Debug for GstRTSPOnvifMediaFactoryClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPOnvifMediaFactoryPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -738,6 +747,7 @@ pub struct _GstRTSPOnvifMediaFactoryPrivate { pub type GstRTSPOnvifMediaFactoryPrivate = _GstRTSPOnvifMediaFactoryPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPOnvifMediaPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -794,6 +804,7 @@ impl ::std::fmt::Debug for GstRTSPServerClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPServerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -832,6 +843,7 @@ impl ::std::fmt::Debug for GstRTSPSessionMediaClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPSessionMediaPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -862,6 +874,7 @@ impl ::std::fmt::Debug for GstRTSPSessionPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPSessionPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -870,6 +883,7 @@ pub struct _GstRTSPSessionPoolPrivate { pub type GstRTSPSessionPoolPrivate = _GstRTSPSessionPoolPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPSessionPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -893,6 +907,7 @@ impl ::std::fmt::Debug for GstRTSPStreamClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPStreamPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -916,6 +931,7 @@ impl ::std::fmt::Debug for GstRTSPStreamTransportClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPStreamTransportPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -977,6 +993,7 @@ impl ::std::fmt::Debug for GstRTSPThreadPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPThreadPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1303,7 +1320,6 @@ impl ::std::fmt::Debug for GstRTSPThreadPool { } } -#[link(name = "gstrtspserver-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-rtsp/sys/src/auto/versions.txt b/gstreamer-rtsp/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-rtsp/sys/src/auto/versions.txt +++ b/gstreamer-rtsp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 1096f72bf..e45b27006 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -18,14 +18,15 @@ use gobject_sys as gobject; use gstreamer_sdp_sys as gst_sdp; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -355,6 +356,7 @@ impl ::std::fmt::Debug for GstRTSPAuthParam { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPConnection { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -645,6 +647,7 @@ impl ::std::fmt::Debug for GstRTSPUrl { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRTSPWatch { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -705,6 +708,7 @@ impl ::std::fmt::Debug for GstRTSPWatchFuncs { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstRTSPExtension { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -716,7 +720,6 @@ impl ::std::fmt::Debug for GstRTSPExtension { } } -#[link(name = "gstrtsp-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-sdp/sys/src/auto/versions.txt b/gstreamer-sdp/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-sdp/sys/src/auto/versions.txt +++ b/gstreamer-sdp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index a82da6f30..d0e56970f 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -15,14 +15,15 @@ use glib_sys as glib; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -124,6 +125,7 @@ pub const GST_SDP_BWTYPE_TIAS: &[u8] = b"TIAS\0"; // Records #[repr(C)] +#[allow(dead_code)] pub struct _GstMIKEYDecryptInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -132,6 +134,7 @@ pub struct _GstMIKEYDecryptInfo { pub type GstMIKEYDecryptInfo = _GstMIKEYDecryptInfo; #[repr(C)] +#[allow(dead_code)] pub struct _GstMIKEYEncryptInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -547,7 +550,6 @@ impl ::std::fmt::Debug for GstSDPZone { } } -#[link(name = "gstsdp-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-tag/sys/src/auto/versions.txt b/gstreamer-tag/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-tag/sys/src/auto/versions.txt +++ b/gstreamer-tag/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index e88d6475d..58ca88c51 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gobject_sys as gobject; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -162,6 +163,7 @@ impl ::std::fmt::Debug for GstTagDemuxClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTagDemuxPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -191,6 +193,7 @@ impl ::std::fmt::Debug for GstTagMuxClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTagMuxPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -247,6 +250,7 @@ impl ::std::fmt::Debug for GstTagMux { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstTagXmpWriter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -258,7 +262,6 @@ impl ::std::fmt::Debug for GstTagXmpWriter { } } -#[link(name = "gsttag-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-validate/src/auto/versions.txt b/gstreamer-validate/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-validate/src/auto/versions.txt +++ b/gstreamer-validate/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-validate/sys/src/auto/versions.txt b/gstreamer-validate/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-validate/sys/src/auto/versions.txt +++ b/gstreamer-validate/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-validate/sys/src/lib.rs b/gstreamer-validate/sys/src/lib.rs index fb94c63cc..60f85bf35 100644 --- a/gstreamer-validate/sys/src/lib.rs +++ b/gstreamer-validate/sys/src/lib.rs @@ -17,14 +17,15 @@ use glib_sys as glib; use gobject_sys as gobject; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -221,6 +222,7 @@ impl ::std::fmt::Debug for GstValidateActionParameter { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateActionPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -264,6 +266,7 @@ impl ::std::fmt::Debug for GstValidateActionType { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateActionTypePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -362,6 +365,7 @@ impl ::std::fmt::Debug for GstValidateMediaDescriptorParserClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateMediaDescriptorParserPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -370,6 +374,7 @@ pub struct _GstValidateMediaDescriptorParserPrivate { pub type GstValidateMediaDescriptorParserPrivate = _GstValidateMediaDescriptorParserPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateMediaDescriptorPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -393,6 +398,7 @@ impl ::std::fmt::Debug for GstValidateMediaDescriptorWriterClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateMediaDescriptorWriterPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -475,6 +481,7 @@ impl ::std::fmt::Debug for GstValidateOverrideClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateOverridePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -519,6 +526,7 @@ impl ::std::fmt::Debug for GstValidatePadMonitorClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidatePadSeekData { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -627,6 +635,7 @@ impl ::std::fmt::Debug for GstValidateRunnerClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateRunnerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -650,6 +659,7 @@ impl ::std::fmt::Debug for GstValidateScenarioClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateScenarioPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -658,6 +668,7 @@ pub struct _GstValidateScenarioPrivate { pub type GstValidateScenarioPrivate = _GstValidateScenarioPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstValidateStreamInfo { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -952,6 +963,7 @@ impl ::std::fmt::Debug for GstValidateScenario { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstValidateReporter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -963,7 +975,6 @@ impl ::std::fmt::Debug for GstValidateReporter { } } -#[link(name = "gstvalidate-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-video/src/auto/color_balance.rs b/gstreamer-video/src/auto/color_balance.rs index 0a3070afc..d9896b8b1 100644 --- a/gstreamer-video/src/auto/color_balance.rs +++ b/gstreamer-video/src/auto/color_balance.rs @@ -96,7 +96,7 @@ pub trait ColorBalanceExt: IsA + sealed::Sealed + 'static { >( this: *mut ffi::GstColorBalance, channel: *mut ffi::GstColorBalanceChannel, - value: libc::c_int, + value: std::ffi::c_int, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-video/src/auto/color_balance_channel.rs b/gstreamer-video/src/auto/color_balance_channel.rs index ad035abc7..0738fe02b 100644 --- a/gstreamer-video/src/auto/color_balance_channel.rs +++ b/gstreamer-video/src/auto/color_balance_channel.rs @@ -43,7 +43,7 @@ pub trait ColorBalanceChannelExt: IsA + sealed::Sealed + 's F: Fn(&P, i32) + Send + Sync + 'static, >( this: *mut ffi::GstColorBalanceChannel, - value: libc::c_int, + value: std::ffi::c_int, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-video/sys/src/auto/versions.txt b/gstreamer-video/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-video/sys/src/auto/versions.txt +++ b/gstreamer-video/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index 992ed7383..e11d94341 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -17,14 +17,15 @@ use gobject_sys as gobject; use gstreamer_base_sys as gst_base; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -1019,6 +1020,7 @@ impl ::std::fmt::Debug for GstVideoAggregatorConvertPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoAggregatorConvertPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1079,6 +1081,7 @@ impl ::std::fmt::Debug for GstVideoAggregatorPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoAggregatorPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1104,6 +1107,7 @@ impl ::std::fmt::Debug for GstVideoAggregatorParallelConvertPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoAggregatorPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1190,6 +1194,7 @@ impl ::std::fmt::Debug for GstVideoBufferPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoBufferPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1218,6 +1223,7 @@ impl ::std::fmt::Debug for GstVideoCaptionMeta { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoChromaResample { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1391,6 +1397,7 @@ impl ::std::fmt::Debug for GstVideoContentLightLevel { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoConverter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1506,6 +1513,7 @@ impl ::std::fmt::Debug for GstVideoDecoderClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoDecoderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1528,6 +1536,7 @@ impl ::std::fmt::Debug for GstVideoDirectionInterface { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoDither { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1606,6 +1615,7 @@ impl ::std::fmt::Debug for GstVideoEncoderClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoEncoderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1978,6 +1988,7 @@ impl ::std::fmt::Debug for GstVideoOrientationInterface { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoOverlayComposition { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2030,6 +2041,7 @@ impl ::std::fmt::Debug for GstVideoOverlayInterface { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoOverlayRectangle { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2142,6 +2154,7 @@ impl ::std::fmt::Debug for GstVideoSEIUserDataUnregisteredMeta { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoScaler { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2172,6 +2185,7 @@ impl ::std::fmt::Debug for GstVideoSinkClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVideoSinkPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2281,6 +2295,7 @@ impl ::std::fmt::Debug for GstVideoTimeCodeMeta { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoVBIEncoder { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2294,6 +2309,7 @@ impl ::std::fmt::Debug for GstVideoVBIEncoder { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoVBIParser { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2471,6 +2487,7 @@ impl ::std::fmt::Debug for GstVideoFilter { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoMultiviewFlagsSet { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2505,6 +2522,7 @@ impl ::std::fmt::Debug for GstVideoSink { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstColorBalance { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2517,6 +2535,7 @@ impl ::std::fmt::Debug for GstColorBalance { } #[repr(C)] +#[allow(dead_code)] pub struct GstNavigation { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2529,6 +2548,7 @@ impl ::std::fmt::Debug for GstNavigation { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoDirection { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2541,6 +2561,7 @@ impl ::std::fmt::Debug for GstVideoDirection { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoOrientation { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2553,6 +2574,7 @@ impl ::std::fmt::Debug for GstVideoOrientation { } #[repr(C)] +#[allow(dead_code)] pub struct GstVideoOverlay { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2564,7 +2586,6 @@ impl ::std::fmt::Debug for GstVideoOverlay { } } -#[link(name = "gstvideo-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index 97cc894cc..e7de35a5f 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -287,7 +287,7 @@ impl WebRTCDataChannel { F: Fn(&WebRTCDataChannel, Option<&str>) + Send + Sync + 'static, >( this: *mut ffi::GstWebRTCDataChannel, - data: *mut libc::c_char, + data: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -382,7 +382,7 @@ impl WebRTCDataChannel { F: Fn(&WebRTCDataChannel, Option<&str>) + Send + Sync + 'static, >( this: *mut ffi::GstWebRTCDataChannel, - data: *mut libc::c_char, + data: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-webrtc/src/auto/web_rtcice.rs b/gstreamer-webrtc/src/auto/web_rtcice.rs index c8342954b..e99bfb8cc 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice.rs @@ -220,8 +220,8 @@ pub trait WebRTCICEExt: IsA + sealed::Sealed + 'static { let func_data: Box_

= Box_::new(func); unsafe extern "C" fn func_func( ice: *mut ffi::GstWebRTCICE, - stream_id: libc::c_uint, - candidate: *const libc::c_char, + stream_id: std::ffi::c_uint, + candidate: *const std::ffi::c_char, user_data: glib::ffi::gpointer, ) { let ice = from_glib_borrow(ice); @@ -333,7 +333,7 @@ pub trait WebRTCICEExt: IsA + sealed::Sealed + 'static { F: Fn(&P, &str) -> bool + Send + Sync + 'static, >( this: *mut ffi::GstWebRTCICE, - address: *mut libc::c_char, + address: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) -> glib::ffi::gboolean { let f: &F = &*(f as *const F); diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 067391b5d..288555973 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -82,7 +82,7 @@ impl WebRTCICETransport { F: Fn(&WebRTCICETransport, &str) + Send + Sync + 'static, >( this: *mut ffi::GstWebRTCICETransport, - object: *mut libc::c_char, + object: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer-webrtc/sys/src/auto/versions.txt b/gstreamer-webrtc/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer-webrtc/sys/src/auto/versions.txt +++ b/gstreamer-webrtc/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index ef83f272b..d070cc63c 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -16,14 +16,15 @@ use glib_sys as glib; use gstreamer_sdp_sys as gst_sdp; use gstreamer_sys as gst; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -169,6 +170,7 @@ pub type GstWebRTCICEOnCandidateFunc = // Records #[repr(C)] +#[allow(dead_code)] pub struct _GstWebRTCDTLSTransportClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -177,6 +179,7 @@ pub struct _GstWebRTCDTLSTransportClass { pub type GstWebRTCDTLSTransportClass = _GstWebRTCDTLSTransportClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstWebRTCDataChannelClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -367,6 +370,7 @@ impl ::std::fmt::Debug for GstWebRTCICETransportClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstWebRTCRTPReceiverClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -375,6 +379,7 @@ pub struct _GstWebRTCRTPReceiverClass { pub type GstWebRTCRTPReceiverClass = _GstWebRTCRTPReceiverClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstWebRTCRTPSenderClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -383,6 +388,7 @@ pub struct _GstWebRTCRTPSenderClass { pub type GstWebRTCRTPSenderClass = _GstWebRTCRTPSenderClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstWebRTCRTPTransceiverClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -391,6 +397,7 @@ pub struct _GstWebRTCRTPTransceiverClass { pub type GstWebRTCRTPTransceiverClass = _GstWebRTCRTPTransceiverClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstWebRTCSCTPTransportClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -416,6 +423,7 @@ impl ::std::fmt::Debug for GstWebRTCSessionDescription { // Classes #[repr(C)] +#[allow(dead_code)] pub struct GstWebRTCDTLSTransport { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -429,6 +437,7 @@ impl ::std::fmt::Debug for GstWebRTCDTLSTransport { } #[repr(C)] +#[allow(dead_code)] pub struct GstWebRTCDataChannel { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -510,6 +519,7 @@ impl ::std::fmt::Debug for GstWebRTCICETransport { } #[repr(C)] +#[allow(dead_code)] pub struct GstWebRTCRTPReceiver { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -523,6 +533,7 @@ impl ::std::fmt::Debug for GstWebRTCRTPReceiver { } #[repr(C)] +#[allow(dead_code)] pub struct GstWebRTCRTPSender { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -536,6 +547,7 @@ impl ::std::fmt::Debug for GstWebRTCRTPSender { } #[repr(C)] +#[allow(dead_code)] pub struct GstWebRTCRTPTransceiver { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -549,6 +561,7 @@ impl ::std::fmt::Debug for GstWebRTCRTPTransceiver { } #[repr(C)] +#[allow(dead_code)] pub struct GstWebRTCSCTPTransport { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -561,7 +574,6 @@ impl ::std::fmt::Debug for GstWebRTCSCTPTransport { } } -#[link(name = "gstwebrtc-1.0")] extern "C" { //========================================================================= diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index d1ef20e96..1ac22990e 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -128,7 +128,7 @@ pub trait ChildProxyExt: IsA + sealed::Sealed + 'static { >( this: *mut ffi::GstChildProxy, object: *mut glib::gobject_ffi::GObject, - name: *mut libc::c_char, + name: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -162,7 +162,7 @@ pub trait ChildProxyExt: IsA + sealed::Sealed + 'static { >( this: *mut ffi::GstChildProxy, object: *mut glib::gobject_ffi::GObject, - name: *mut libc::c_char, + name: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 69e19ecc9..65b15babe 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -163,7 +163,7 @@ pub trait DeviceProviderExt: IsA + sealed::Sealed + 'static { F: Fn(&P, &str) + Send + Sync + 'static, >( this: *mut ffi::GstDeviceProvider, - object: *mut libc::c_char, + object: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); @@ -195,7 +195,7 @@ pub trait DeviceProviderExt: IsA + sealed::Sealed + 'static { F: Fn(&P, &str) + Send + Sync + 'static, >( this: *mut ffi::GstDeviceProvider, - object: *mut libc::c_char, + object: *mut std::ffi::c_char, f: glib::ffi::gpointer, ) { let f: &F = &*(f as *const F); diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer/sys/src/auto/versions.txt b/gstreamer/sys/src/auto/versions.txt index 9cac8295e..1bb510768 100644 --- a/gstreamer/sys/src/auto/versions.txt +++ b/gstreamer/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) +Generated by gir (https://github.com/gtk-rs/gir @ f7d2061cc781) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ db97a3ad67f5) diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index 4be6dcf5e..cd44f2021 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -15,14 +15,15 @@ use glib_sys as glib; use gobject_sys as gobject; -#[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; +#[allow(unused_imports)] +use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; +#[allow(unused_imports)] +use std::ffi::{ + c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, +}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -1223,6 +1224,7 @@ impl ::std::fmt::Debug for GstAllocatorClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstAllocatorPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1231,6 +1233,7 @@ pub struct _GstAllocatorPrivate { pub type GstAllocatorPrivate = _GstAllocatorPrivate; #[repr(C)] +#[allow(dead_code)] pub struct GstAtomicQueue { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1277,6 +1280,7 @@ impl ::std::fmt::Debug for GstBinClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstBinPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1311,6 +1315,7 @@ impl ::std::fmt::Debug for GstBuffer { } #[repr(C)] +#[allow(dead_code)] pub struct GstBufferList { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1394,6 +1399,7 @@ impl ::std::fmt::Debug for GstBufferPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstBufferPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1421,6 +1427,7 @@ impl ::std::fmt::Debug for GstBusClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstBusPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1462,6 +1469,7 @@ impl ::std::fmt::Debug for GstCaps { } #[repr(C)] +#[allow(dead_code)] pub struct GstCapsFeatures { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1564,6 +1572,7 @@ impl ::std::fmt::Debug for GstClockEntry { } #[repr(C)] +#[allow(dead_code)] pub struct _GstClockPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1572,6 +1581,7 @@ pub struct _GstClockPrivate { pub type GstClockPrivate = _GstClockPrivate; #[repr(C)] +#[allow(dead_code)] pub struct GstContext { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1631,6 +1641,7 @@ impl ::std::fmt::Debug for GstControlBindingClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstControlBindingPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1683,6 +1694,7 @@ impl ::std::fmt::Debug for GstCustomMeta { } #[repr(C)] +#[allow(dead_code)] pub struct GstDateTime { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1711,6 +1723,7 @@ impl ::std::fmt::Debug for GstDebugCategory { } #[repr(C)] +#[allow(dead_code)] pub struct _GstDebugMessage { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1755,6 +1768,7 @@ impl ::std::fmt::Debug for GstDeviceMonitorClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstDeviceMonitorPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1763,6 +1777,7 @@ pub struct _GstDeviceMonitorPrivate { pub type GstDeviceMonitorPrivate = _GstDeviceMonitorPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstDevicePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1795,6 +1810,7 @@ impl ::std::fmt::Debug for GstDeviceProviderClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstDeviceProviderFactoryClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1803,6 +1819,7 @@ pub struct _GstDeviceProviderFactoryClass { pub type GstDeviceProviderFactoryClass = _GstDeviceProviderFactoryClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstDeviceProviderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1811,6 +1828,7 @@ pub struct _GstDeviceProviderPrivate { pub type GstDeviceProviderPrivate = _GstDeviceProviderPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstDynamicTypeFactoryClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1891,6 +1909,7 @@ impl ::std::fmt::Debug for GstElementClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstElementFactoryClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1954,6 +1973,7 @@ impl ::std::fmt::Debug for GstGhostPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstGhostPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2203,6 +2223,7 @@ impl ::std::fmt::Debug for GstPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2356,6 +2377,7 @@ impl ::std::fmt::Debug for GstParentBufferMeta { } #[repr(C)] +#[allow(dead_code)] pub struct GstParseContext { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2384,6 +2406,7 @@ impl ::std::fmt::Debug for GstPipelineClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstPipelinePrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2392,6 +2415,7 @@ pub struct _GstPipelinePrivate { pub type GstPipelinePrivate = _GstPipelinePrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstPluginClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2435,6 +2459,7 @@ impl ::std::fmt::Debug for GstPluginDesc { } #[repr(C)] +#[allow(dead_code)] pub struct _GstPluginFeatureClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2443,6 +2468,7 @@ pub struct _GstPluginFeatureClass { pub type GstPluginFeatureClass = _GstPluginFeatureClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstPoll { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2557,6 +2583,7 @@ impl ::std::fmt::Debug for GstProxyPadClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstProxyPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2615,6 +2642,7 @@ impl ::std::fmt::Debug for GstRegistryClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstRegistryPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2623,6 +2651,7 @@ pub struct _GstRegistryPrivate { pub type GstRegistryPrivate = _GstRegistryPrivate; #[repr(C)] +#[allow(dead_code)] pub struct GstSample { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2685,6 +2714,7 @@ impl ::std::fmt::Debug for GstSharedTaskPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstSharedTaskPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2764,6 +2794,7 @@ impl ::std::fmt::Debug for GstStreamCollectionClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstStreamCollectionPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2772,6 +2803,7 @@ pub struct _GstStreamCollectionPrivate { pub type GstStreamCollectionPrivate = _GstStreamCollectionPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstStreamPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2810,6 +2842,7 @@ impl ::std::fmt::Debug for GstSystemClockClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstSystemClockPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2894,6 +2927,7 @@ impl ::std::fmt::Debug for GstTaskPoolClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTaskPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2918,6 +2952,7 @@ impl ::std::fmt::Debug for GstTimedValue { } #[repr(C)] +#[allow(dead_code)] pub struct GstToc { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2930,6 +2965,7 @@ impl ::std::fmt::Debug for GstToc { } #[repr(C)] +#[allow(dead_code)] pub struct GstTocEntry { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2971,6 +3007,7 @@ impl ::std::fmt::Debug for GstTracerClass { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTracerFactoryClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2979,6 +3016,7 @@ pub struct _GstTracerFactoryClass { pub type GstTracerFactoryClass = _GstTracerFactoryClass; #[repr(C)] +#[allow(dead_code)] pub struct _GstTracerPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -2987,6 +3025,7 @@ pub struct _GstTracerPrivate { pub type GstTracerPrivate = _GstTracerPrivate; #[repr(C)] +#[allow(dead_code)] pub struct _GstTracerRecordClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3016,6 +3055,7 @@ impl ::std::fmt::Debug for GstTypeFind { } #[repr(C)] +#[allow(dead_code)] pub struct _GstTypeFindFactoryClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3048,6 +3088,7 @@ impl ::std::fmt::Debug for GstURIHandlerInterface { } #[repr(C)] +#[allow(dead_code)] pub struct GstUri { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3083,6 +3124,7 @@ impl ::std::fmt::Debug for GstValueTable { } #[repr(C)] +#[allow(dead_code)] pub struct _GstVecDeque { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3160,6 +3202,7 @@ impl ::std::fmt::Debug for GstBin { } #[repr(C)] +#[allow(dead_code)] pub struct GstBitmask { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3313,6 +3356,7 @@ impl ::std::fmt::Debug for GstDeviceProvider { } #[repr(C)] +#[allow(dead_code)] pub struct GstDeviceProviderFactory { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3326,6 +3370,7 @@ impl ::std::fmt::Debug for GstDeviceProviderFactory { } #[repr(C)] +#[allow(dead_code)] pub struct GstDoubleRange { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3339,6 +3384,7 @@ impl ::std::fmt::Debug for GstDoubleRange { } #[repr(C)] +#[allow(dead_code)] pub struct GstDynamicTypeFactory { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3407,6 +3453,7 @@ impl ::std::fmt::Debug for GstElement { } #[repr(C)] +#[allow(dead_code)] pub struct GstElementFactory { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3420,6 +3467,7 @@ impl ::std::fmt::Debug for GstElementFactory { } #[repr(C)] +#[allow(dead_code)] pub struct GstFlagSet { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3432,6 +3480,7 @@ impl ::std::fmt::Debug for GstFlagSet { } #[repr(C)] +#[allow(dead_code)] pub struct GstFraction { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3444,6 +3493,7 @@ impl ::std::fmt::Debug for GstFraction { } #[repr(C)] +#[allow(dead_code)] pub struct GstFractionRange { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3472,6 +3522,7 @@ impl ::std::fmt::Debug for GstGhostPad { } #[repr(C)] +#[allow(dead_code)] pub struct GstInt64Range { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3485,6 +3536,7 @@ impl ::std::fmt::Debug for GstInt64Range { } #[repr(C)] +#[allow(dead_code)] pub struct GstIntRange { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3609,6 +3661,7 @@ impl ::std::fmt::Debug for GstPadTemplate { } #[repr(C)] +#[allow(dead_code)] pub struct GstParamArray { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3622,6 +3675,7 @@ impl ::std::fmt::Debug for GstParamArray { } #[repr(C)] +#[allow(dead_code)] pub struct GstParamFraction { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3657,6 +3711,7 @@ impl ::std::fmt::Debug for GstPipeline { } #[repr(C)] +#[allow(dead_code)] pub struct GstPlugin { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3669,6 +3724,7 @@ impl ::std::fmt::Debug for GstPlugin { } #[repr(C)] +#[allow(dead_code)] pub struct GstPluginFeature { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3840,6 +3896,7 @@ impl ::std::fmt::Debug for GstTracer { } #[repr(C)] +#[allow(dead_code)] pub struct GstTracerFactory { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3853,6 +3910,7 @@ impl ::std::fmt::Debug for GstTracerFactory { } #[repr(C)] +#[allow(dead_code)] pub struct GstTracerRecord { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3866,6 +3924,7 @@ impl ::std::fmt::Debug for GstTracerRecord { } #[repr(C)] +#[allow(dead_code)] pub struct GstTypeFindFactory { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3879,6 +3938,7 @@ impl ::std::fmt::Debug for GstTypeFindFactory { } #[repr(C)] +#[allow(dead_code)] pub struct GstValueArray { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3892,6 +3952,7 @@ impl ::std::fmt::Debug for GstValueArray { } #[repr(C)] +#[allow(dead_code)] pub struct GstValueList { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3905,6 +3966,7 @@ impl ::std::fmt::Debug for GstValueList { // Interfaces #[repr(C)] +#[allow(dead_code)] pub struct GstChildProxy { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3917,6 +3979,7 @@ impl ::std::fmt::Debug for GstChildProxy { } #[repr(C)] +#[allow(dead_code)] pub struct GstPreset { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3929,6 +3992,7 @@ impl ::std::fmt::Debug for GstPreset { } #[repr(C)] +#[allow(dead_code)] pub struct GstTagSetter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3941,6 +4005,7 @@ impl ::std::fmt::Debug for GstTagSetter { } #[repr(C)] +#[allow(dead_code)] pub struct GstTocSetter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3953,6 +4018,7 @@ impl ::std::fmt::Debug for GstTocSetter { } #[repr(C)] +#[allow(dead_code)] pub struct GstURIHandler { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -3964,7 +4030,6 @@ impl ::std::fmt::Debug for GstURIHandler { } } -#[link(name = "gstreamer-1.0")] extern "C" { //=========================================================================