update gir generator and regenerate

This commit is contained in:
Guillaume Desmottes 2020-06-11 12:27:43 +02:00
parent 6cd711cfdf
commit 7b2fe31cc1
30 changed files with 55 additions and 55 deletions

2
gir

@ -1 +1 @@
Subproject commit 2ec58ef60208c53e10d22dadf89fa95b80e1f945 Subproject commit 882e09b8a2e68300689d215a2333d5e8747b60d9

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -30,7 +30,7 @@ impl TestClock {
unsafe { gst::Clock::from_glib_full(gst_check_sys::gst_test_clock_new()).unsafe_cast() } unsafe { gst::Clock::from_glib_full(gst_check_sys::gst_test_clock_new()).unsafe_cast() }
} }
pub fn new_with_start_time(start_time: gst::ClockTime) -> TestClock { pub fn with_start_time(start_time: gst::ClockTime) -> TestClock {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { unsafe {
gst::Clock::from_glib_full(gst_check_sys::gst_test_clock_new_with_start_time( gst::Clock::from_glib_full(gst_check_sys::gst_test_clock_new_with_start_time(

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -42,7 +42,7 @@ impl Timeline {
unsafe { from_glib_none(ges_sys::ges_timeline_new_audio_video()) } unsafe { from_glib_none(ges_sys::ges_timeline_new_audio_video()) }
} }
pub fn new_from_uri(uri: &str) -> Result<Option<Timeline>, glib::Error> { pub fn from_uri(uri: &str) -> Result<Option<Timeline>, glib::Error> {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -21,7 +21,7 @@ impl GLDisplayEGL {
unsafe { from_glib_full(gst_gl_sys::gst_gl_display_egl_new()) } unsafe { from_glib_full(gst_gl_sys::gst_gl_display_egl_new()) }
} }
//pub fn new_with_egl_display(display: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLDisplayEGL { //pub fn with_egl_display(display: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLDisplayEGL {
// unsafe { TODO: call gst_gl_sys:gst_gl_display_egl_new_with_egl_display() } // unsafe { TODO: call gst_gl_sys:gst_gl_display_egl_new_with_egl_display() }
//} //}

View file

@ -25,7 +25,7 @@ impl GLDisplayWayland {
} }
} }
//pub fn new_with_display(display: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLDisplayWayland { //pub fn with_display(display: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLDisplayWayland {
// unsafe { TODO: call gst_gl_sys:gst_gl_display_wayland_new_with_display() } // unsafe { TODO: call gst_gl_sys:gst_gl_display_wayland_new_with_display() }
//} //}
} }

View file

@ -21,7 +21,7 @@ impl GLDisplayX11 {
unsafe { from_glib_full(gst_gl_sys::gst_gl_display_x11_new(name.to_glib_none().0)) } unsafe { from_glib_full(gst_gl_sys::gst_gl_display_x11_new(name.to_glib_none().0)) }
} }
//pub fn new_with_display(display: /*Unimplemented*/Fundamental: Pointer) -> GLDisplayX11 { //pub fn with_display(display: /*Unimplemented*/Fundamental: Pointer) -> GLDisplayX11 {
// unsafe { TODO: call gst_gl_sys:gst_gl_display_x11_new_with_display() } // unsafe { TODO: call gst_gl_sys:gst_gl_display_x11_new_with_display() }
//} //}
} }

View file

@ -27,7 +27,7 @@ impl GLFramebuffer {
} }
} }
pub fn new_with_default_depth<P: IsA<GLContext>>( pub fn with_default_depth<P: IsA<GLContext>>(
context: &P, context: &P,
width: u32, width: u32,
height: u32, height: u32,

View file

@ -64,7 +64,7 @@ impl GLShader {
// unsafe { TODO: call gst_gl_sys:gst_gl_shader_new_link_with_stages() } // unsafe { TODO: call gst_gl_sys:gst_gl_shader_new_link_with_stages() }
//} //}
//pub fn new_with_stages<P: IsA<GLContext>>(context: &P, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader { //pub fn with_stages<P: IsA<GLContext>>(context: &P, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader {
// unsafe { TODO: call gst_gl_sys:gst_gl_shader_new_with_stages() } // unsafe { TODO: call gst_gl_sys:gst_gl_shader_new_with_stages() }
//} //}

View file

@ -49,7 +49,7 @@ impl GLSLStage {
} }
} }
pub fn new_with_string<P: IsA<GLContext>>( pub fn with_string<P: IsA<GLContext>>(
context: &P, context: &P,
type_: u32, type_: u32,
version: GLSLVersion, version: GLSLVersion,
@ -68,7 +68,7 @@ impl GLSLStage {
} }
} }
pub fn new_with_strings<P: IsA<GLContext>>( pub fn with_strings<P: IsA<GLContext>>(
context: &P, context: &P,
type_: u32, type_: u32,
version: GLSLVersion, version: GLSLVersion,

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -37,7 +37,7 @@ impl DateTime {
} }
} }
pub fn new_from_g_date_time(dt: &glib::DateTime) -> Result<DateTime, glib::BoolError> { pub fn from_g_date_time(dt: &glib::DateTime) -> Result<DateTime, glib::BoolError> {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { unsafe {
Option::<_>::from_glib_full(gst_sys::gst_date_time_new_from_g_date_time( Option::<_>::from_glib_full(gst_sys::gst_date_time_new_from_g_date_time(
@ -47,7 +47,7 @@ impl DateTime {
} }
} }
pub fn new_from_iso8601_string(string: &str) -> Result<DateTime, glib::BoolError> { pub fn from_iso8601_string(string: &str) -> Result<DateTime, glib::BoolError> {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { unsafe {
Option::<_>::from_glib_full(gst_sys::gst_date_time_new_from_iso8601_string( Option::<_>::from_glib_full(gst_sys::gst_date_time_new_from_iso8601_string(
@ -57,13 +57,13 @@ impl DateTime {
} }
} }
pub fn new_from_unix_epoch_local_time(secs: i64) -> DateTime { pub fn from_unix_epoch_local_time(secs: i64) -> DateTime {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_local_time(secs)) } unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_local_time(secs)) }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn new_from_unix_epoch_local_time_usecs(usecs: i64) -> DateTime { pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> DateTime {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { unsafe {
from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_local_time_usecs( from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_local_time_usecs(
@ -72,13 +72,13 @@ impl DateTime {
} }
} }
pub fn new_from_unix_epoch_utc(secs: i64) -> DateTime { pub fn from_unix_epoch_utc(secs: i64) -> DateTime {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_utc(secs)) } unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_utc(secs)) }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
pub fn new_from_unix_epoch_utc_usecs(usecs: i64) -> DateTime { pub fn from_unix_epoch_utc_usecs(usecs: i64) -> DateTime {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_utc_usecs(usecs)) } unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_utc_usecs(usecs)) }
} }

View file

@ -50,7 +50,7 @@ impl Pad {
} }
} }
pub fn new_from_template(templ: &PadTemplate, name: Option<&str>) -> Pad { pub fn from_template(templ: &PadTemplate, name: Option<&str>) -> Pad {
skip_assert_initialized!(); skip_assert_initialized!();
unsafe { unsafe {
from_glib_none(gst_sys::gst_pad_new_from_template( from_glib_none(gst_sys::gst_pad_new_from_template(

View file

@ -50,7 +50,7 @@ impl PadTemplate {
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", feature = "dox"))]
pub fn new_with_gtype( pub fn with_gtype(
name_template: &str, name_template: &str,
direction: PadDirection, direction: PadDirection,
presence: PadPresence, presence: PadPresence,

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef) Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7) from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)

View file

@ -30,7 +30,7 @@ impl DateTime {
d.to_utc() d.to_utc()
.ok_or_else(|| glib_bool_error!("Can't convert datetime to UTC")) .ok_or_else(|| glib_bool_error!("Can't convert datetime to UTC"))
}) })
.and_then(|d| DateTime::new_from_g_date_time(&d)) .and_then(|d| DateTime::from_g_date_time(&d))
} else { } else {
// It would be cheaper to build a `glib::DateTime` direcly, unfortunetaly // It would be cheaper to build a `glib::DateTime` direcly, unfortunetaly
// this would require using `glib::TimeZone::new_offset` which is feature-gated // this would require using `glib::TimeZone::new_offset` which is feature-gated
@ -235,7 +235,7 @@ impl<'a> convert::TryFrom<&'a glib::DateTime> for DateTime {
fn try_from(v: &'a glib::DateTime) -> Result<DateTime, glib::BoolError> { fn try_from(v: &'a glib::DateTime) -> Result<DateTime, glib::BoolError> {
skip_assert_initialized!(); skip_assert_initialized!();
DateTime::new_from_g_date_time(v) DateTime::from_g_date_time(v)
} }
} }
@ -244,7 +244,7 @@ impl convert::TryFrom<glib::DateTime> for DateTime {
fn try_from(v: glib::DateTime) -> Result<DateTime, glib::BoolError> { fn try_from(v: glib::DateTime) -> Result<DateTime, glib::BoolError> {
skip_assert_initialized!(); skip_assert_initialized!();
DateTime::new_from_g_date_time(&v) DateTime::from_g_date_time(&v)
} }
} }

View file

@ -609,9 +609,9 @@ mod tests {
fn new_with_class(klass: &subclass::simple::ClassStruct<Self>) -> Self { fn new_with_class(klass: &subclass::simple::ClassStruct<Self>) -> Self {
let templ = klass.get_pad_template("sink").unwrap(); let templ = klass.get_pad_template("sink").unwrap();
let sinkpad = ::Pad::new_from_template(&templ, Some("sink")); let sinkpad = ::Pad::from_template(&templ, Some("sink"));
let templ = klass.get_pad_template("src").unwrap(); let templ = klass.get_pad_template("src").unwrap();
let srcpad = ::Pad::new_from_template(&templ, Some("src")); let srcpad = ::Pad::from_template(&templ, Some("src"));
TestElement::set_pad_functions(&sinkpad, &srcpad); TestElement::set_pad_functions(&sinkpad, &srcpad);