mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
update gir generator and regenerate
This commit is contained in:
parent
6cd711cfdf
commit
7b2fe31cc1
30 changed files with 55 additions and 55 deletions
2
gir
2
gir
|
@ -1 +1 @@
|
|||
Subproject commit 2ec58ef60208c53e10d22dadf89fa95b80e1f945
|
||||
Subproject commit 882e09b8a2e68300689d215a2333d5e8747b60d9
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -30,7 +30,7 @@ impl TestClock {
|
|||
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!();
|
||||
unsafe {
|
||||
gst::Clock::from_glib_full(gst_check_sys::gst_test_clock_new_with_start_time(
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -42,7 +42,7 @@ impl Timeline {
|
|||
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!();
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -21,7 +21,7 @@ impl GLDisplayEGL {
|
|||
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() }
|
||||
//}
|
||||
|
||||
|
|
|
@ -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() }
|
||||
//}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ impl GLDisplayX11 {
|
|||
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() }
|
||||
//}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
width: u32,
|
||||
height: u32,
|
||||
|
|
|
@ -64,7 +64,7 @@ impl GLShader {
|
|||
// 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() }
|
||||
//}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ impl GLSLStage {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new_with_string<P: IsA<GLContext>>(
|
||||
pub fn with_string<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
type_: u32,
|
||||
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,
|
||||
type_: u32,
|
||||
version: GLSLVersion,
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -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!();
|
||||
unsafe {
|
||||
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!();
|
||||
unsafe {
|
||||
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!();
|
||||
unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_local_time(secs)) }
|
||||
}
|
||||
|
||||
#[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!();
|
||||
unsafe {
|
||||
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!();
|
||||
unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_utc(secs)) }
|
||||
}
|
||||
|
||||
#[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!();
|
||||
unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_utc_usecs(usecs)) }
|
||||
}
|
||||
|
|
|
@ -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!();
|
||||
unsafe {
|
||||
from_glib_none(gst_sys::gst_pad_new_from_template(
|
||||
|
|
|
@ -50,7 +50,7 @@ impl PadTemplate {
|
|||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
pub fn new_with_gtype(
|
||||
pub fn with_gtype(
|
||||
name_template: &str,
|
||||
direction: PadDirection,
|
||||
presence: PadPresence,
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2ec58ef)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9cf46cf7)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 38361831)
|
||||
|
|
|
@ -30,7 +30,7 @@ impl DateTime {
|
|||
d.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 {
|
||||
// It would be cheaper to build a `glib::DateTime` direcly, unfortunetaly
|
||||
// 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> {
|
||||
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> {
|
||||
skip_assert_initialized!();
|
||||
DateTime::new_from_g_date_time(&v)
|
||||
DateTime::from_g_date_time(&v)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -609,9 +609,9 @@ mod tests {
|
|||
|
||||
fn new_with_class(klass: &subclass::simple::ClassStruct<Self>) -> Self {
|
||||
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 srcpad = ::Pad::new_from_template(&templ, Some("src"));
|
||||
let srcpad = ::Pad::from_template(&templ, Some("src"));
|
||||
|
||||
TestElement::set_pad_functions(&sinkpad, &srcpad);
|
||||
|
||||
|
|
Loading…
Reference in a new issue