Commit 5c93e134 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Regenerate everything with new version of gir

parent fa988fe7
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -7,6 +7,7 @@ target_path = "gstreamer-editing-services" ...@@ -7,6 +7,7 @@ target_path = "gstreamer-editing-services"
work_mode = "normal" work_mode = "normal"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
...@@ -169,4 +170,4 @@ trait_name = "GESTrackExt" ...@@ -169,4 +170,4 @@ trait_name = "GESTrackExt"
[[object.function]] [[object.function]]
name = "remove_element" name = "remove_element"
[object.function.return] [object.function.return]
bool_return_is_error = "Failed to remove element" bool_return_is_error = "Failed to remove element"
\ No newline at end of file
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -9,6 +9,7 @@ concurrency = "send+sync" ...@@ -9,6 +9,7 @@ concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
doc_target_path = "docs/gstreamer-rtsp/docs.md" doc_target_path = "docs/gstreamer-rtsp/docs.md"
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -9,6 +9,7 @@ concurrency = "send+sync" ...@@ -9,6 +9,7 @@ concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
doc_target_path = "docs/gstreamer-rtsp-server/docs.md" doc_target_path = "docs/gstreamer-rtsp-server/docs.md"
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -9,6 +9,7 @@ concurrency = "send" ...@@ -9,6 +9,7 @@ concurrency = "send"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
doc_target_path = "docs/gstreamer-sdp/docs.md" doc_target_path = "docs/gstreamer-sdp/docs.md"
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -8,6 +8,7 @@ work_mode = "normal" ...@@ -8,6 +8,7 @@ work_mode = "normal"
concurrency = "send+sync" concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false
external_libraries = [ external_libraries = [
"GLib", "GLib",
......
...@@ -6,7 +6,7 @@ use ffi; ...@@ -6,7 +6,7 @@ use ffi;
use glib::StaticType; use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect_raw;
use glib::translate::*; use glib::translate::*;
use glib_ffi; use glib_ffi;
use gobject_ffi; use gobject_ffi;
...@@ -15,9 +15,7 @@ use gst_base; ...@@ -15,9 +15,7 @@ use gst_base;
use gst_base_ffi; use gst_base_ffi;
use gst_ffi; use gst_ffi;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute; use std::mem::transmute;
use std::ptr;
glib_wrapper! { glib_wrapper! {
pub struct AppSink(Object<ffi::GstAppSink, ffi::GstAppSinkClass>): [ pub struct AppSink(Object<ffi::GstAppSink, ffi::GstAppSinkClass>): [
...@@ -148,21 +146,21 @@ impl AppSink { ...@@ -148,21 +146,21 @@ impl AppSink {
pub fn get_property_buffer_list(&self) -> bool { pub fn get_property_buffer_list(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "buffer-list".to_glib_none().0, value.to_glib_none_mut().0); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"buffer-list\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap() value.get().unwrap()
} }
} }
pub fn set_property_buffer_list(&self, buffer_list: bool) { pub fn set_property_buffer_list(&self, buffer_list: bool) {
unsafe { unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "buffer-list".to_glib_none().0, Value::from(&buffer_list).to_glib_none().0); gobject_ffi::g_object_set_property(self.to_glib_none().0, b"buffer-list\0".as_ptr() as *const _, Value::from(&buffer_list).to_glib_none().0);
} }
} }
pub fn get_property_eos(&self) -> bool { pub fn get_property_eos(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "eos".to_glib_none().0, value.to_glib_none_mut().0); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"eos\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap() value.get().unwrap()
} }
} }
...@@ -170,7 +168,7 @@ impl AppSink { ...@@ -170,7 +168,7 @@ impl AppSink {
pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "eos", connect_raw(self.to_glib_none().0, b"eos\0".as_ptr() as *const _,
transmute(eos_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(eos_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -178,7 +176,7 @@ impl AppSink { ...@@ -178,7 +176,7 @@ impl AppSink {
pub fn connect_new_preroll<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_new_preroll<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "new-preroll", connect_raw(self.to_glib_none().0, b"new-preroll\0".as_ptr() as *const _,
transmute(new_preroll_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(new_preroll_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -186,7 +184,7 @@ impl AppSink { ...@@ -186,7 +184,7 @@ impl AppSink {
pub fn connect_new_sample<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_new_sample<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "new-sample", connect_raw(self.to_glib_none().0, b"new-sample\0".as_ptr() as *const _,
transmute(new_sample_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(new_sample_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -194,7 +192,7 @@ impl AppSink { ...@@ -194,7 +192,7 @@ impl AppSink {
pub fn connect_property_buffer_list_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_buffer_list_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::buffer-list", connect_raw(self.to_glib_none().0, b"notify::buffer-list\0".as_ptr() as *const _,
transmute(notify_buffer_list_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(notify_buffer_list_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -202,7 +200,7 @@ impl AppSink { ...@@ -202,7 +200,7 @@ impl AppSink {
pub fn connect_property_caps_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_caps_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::caps", connect_raw(self.to_glib_none().0, b"notify::caps\0".as_ptr() as *const _,
transmute(notify_caps_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(notify_caps_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -210,7 +208,7 @@ impl AppSink { ...@@ -210,7 +208,7 @@ impl AppSink {
pub fn connect_property_drop_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_drop_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::drop", connect_raw(self.to_glib_none().0, b"notify::drop\0".as_ptr() as *const _,
transmute(notify_drop_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(notify_drop_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -218,7 +216,7 @@ impl AppSink { ...@@ -218,7 +216,7 @@ impl AppSink {
pub fn connect_property_emit_signals_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_emit_signals_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::emit-signals", connect_raw(self.to_glib_none().0, b"notify::emit-signals\0".as_ptr() as *const _,
transmute(notify_emit_signals_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(notify_emit_signals_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -226,7 +224,7 @@ impl AppSink { ...@@ -226,7 +224,7 @@ impl AppSink {
pub fn connect_property_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::eos", connect_raw(self.to_glib_none().0, b"notify::eos\0".as_ptr() as *const _,
transmute(notify_eos_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(notify_eos_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -234,7 +232,7 @@ impl AppSink { ...@@ -234,7 +232,7 @@ impl AppSink {
pub fn connect_property_max_buffers_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_max_buffers_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::max-buffers", connect_raw(self.to_glib_none().0, b"notify::max-buffers\0".as_ptr() as *const _,
transmute(notify_max_buffers_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(notify_max_buffers_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
...@@ -242,7 +240,7 @@ impl AppSink { ...@@ -242,7 +240,7 @@ impl AppSink {
pub fn connect_property_wait_on_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_wait_on_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f)); let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::wait-on-eos", connect_raw(self.to_glib_none().0, b"notify::wait-on-eos\0".as_ptr() as *const _,
transmute(notify_wait_on_eos_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(notify_wait_on_eos_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
......
...@@ -7,7 +7,7 @@ use ffi; ...@@ -7,7 +7,7 @@ use ffi;
use glib::StaticType; use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect_raw;
use glib::translate::*; use glib::translate::*;
use glib_ffi; use glib_ffi;
use gobject_ffi; use gobject_ffi;
...@@ -17,9 +17,7 @@ use gst_base_ffi; ...@@ -17,9 +17,7 @@ use gst_base_ffi;
use gst_ffi; use gst_ffi;
use libc; use libc;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute; use std::mem::transmute;
use std::ptr;
glib_wrapper! { glib_wrapper! {
pub struct AppSrc(Object<ffi::GstAppSrc, ffi::GstAppSrcClass>): [ pub struct AppSrc(Object<ffi::GstAppSrc, ffi::GstAppSrcClass>): [
...@@ -136,105 +134,105 @@ impl AppSrc { ...@@ -136,105 +134,105 @@ impl AppSrc {
pub fn get_property_block(&self) -> bool { pub fn get_property_block(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "block".to_glib_none().0, value.to_glib_none_mut().0); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"block\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap() value.get().unwrap()
} }
} }
pub fn set_property_block(&self, block: bool) { pub fn set_property_block(&self, block: bool) {
unsafe { unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "block".to_glib_none().0, Value::from(&block).to_glib_none().0); gobject_ffi::g_object_set_property(self.to_glib_none().0, b"block\0".as_ptr() as *const _, Value::from(&block).to_glib_none().0);
} }
} }
pub fn get_property_duration(&self) -> u64 { pub fn get_property_duration(&self) -> u64 {
unsafe { unsafe {
let mut value = Value::from_type(<u64 as StaticType>::static_type()); let mut value = Value::from_type(<u64 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "duration".to_glib_none().0, value.to_glib_none_mut().0); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"duration\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap() value.get().unwrap()
} }
} }
pub fn set_property_duration(&self, duration: u64) { pub fn set_property_duration(&self, duration: u64) {
unsafe { unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "duration".to_glib_none().0, Value::from(&duration).to_glib_none().0); gobject_ffi::g_object_set_property(self.to_glib_none().0, b"duration\0".as_ptr() as *const _, Value::from(&duration).to_glib_none().0);
} }
} }
pub fn get_property_format(&self) -> gst::Format { pub fn get_property_format(&self) -> gst::Format {
unsafe { unsafe {
let mut value = Value::from_type(<gst::Format as StaticType>::static_type()); let mut value = Value::from_type(<gst::Format as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "format".to_glib_none().0, value.to_glib_none_mut().0); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"format\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap() value.get().unwrap()
} }
} }
pub fn set_property_format(&self, format: gst::Format) { pub fn set_property_format(&self, format: gst::Format) {
unsafe { unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "format".to_glib_none().0, Value::from(&format).to_glib_none().0); gobject_ffi::g_object_set_property(self.to_glib_none().0, b"format\0".as_ptr() as *const _, Value::from(&format).to_glib_none().0);
} }
} }