Regenerate with latest GIR to fix various issues with property getters

Get rid of unneeded transmutes and actually initialize flags/enum
GValues with the correct type instead of using integers.
This commit is contained in:
Sebastian Dröge 2017-11-27 19:16:34 +02:00
parent b198ee21da
commit 8a2e78e586
65 changed files with 211 additions and 158 deletions

View file

@ -1,7 +1,8 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
@ -144,11 +145,12 @@ impl AppSink {
}
pub fn get_property_buffer_list(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "buffer-list".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_buffer_list(&self, buffer_list: bool) {
@ -158,11 +160,12 @@ impl AppSink {
}
pub fn get_property_eos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "eos".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {

View file

@ -1,8 +1,9 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use AppStreamType;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
@ -147,11 +148,12 @@ impl AppSrc {
}
pub fn get_property_block(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "block".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_block(&self, block: bool) {
@ -161,19 +163,21 @@ impl AppSrc {
}
pub fn get_property_current_level_bytes(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "current-level-bytes".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn get_property_duration(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "duration".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_duration(&self, duration: u64) {
@ -183,26 +187,27 @@ impl AppSrc {
}
pub fn get_property_format(&self) -> gst::Format {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <gst::Format as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "format".to_glib_none().0, value.to_glib_none_mut().0);
from_glib(transmute(value.get::<i32>().unwrap()))
value.get().unwrap()
}
}
pub fn set_property_format(&self, format: gst::Format) {
let format = format.to_glib() as i32;
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "format".to_glib_none().0, Value::from(&format).to_glib_none().0);
}
}
pub fn get_property_is_live(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-live".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_is_live(&self, is_live: bool) {
@ -212,11 +217,12 @@ impl AppSrc {
}
pub fn get_property_max_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-latency".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_max_latency(&self, max_latency: i64) {
@ -226,11 +232,12 @@ impl AppSrc {
}
pub fn get_property_min_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-latency".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_min_latency(&self, min_latency: i64) {
@ -240,11 +247,12 @@ impl AppSrc {
}
pub fn get_property_min_percent(&self) -> u32 {
let mut value = Value::from(&0u32);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-percent".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_min_percent(&self, min_percent: u32) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod app_sink;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod stream_volume;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use StreamVolumeFormat;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,8 +1,9 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -313,11 +314,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_async(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "async".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_async(&self, async: bool) {
@ -327,11 +329,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_enable_last_sample(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "enable-last-sample".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_enable_last_sample(&self, enable_last_sample: bool) {
@ -341,11 +344,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "qos".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_qos(&self, qos: bool) {

View file

@ -1,8 +1,9 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -204,11 +205,12 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
}
fn get_property_num_buffers(&self) -> i32 {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "num-buffers".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_num_buffers(&self, num_buffers: i32) {
@ -218,11 +220,12 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
}
fn get_property_typefind(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "typefind".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_typefind(&self, typefind: bool) {

View file

@ -1,8 +1,9 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -150,11 +151,12 @@ impl<O: IsA<BaseTransform> + IsA<glib::object::Object>> BaseTransformExt for O {
}
fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "qos".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_qos(&self, qos: bool) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod adapter;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use BaseSrc;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod player;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Error;
@ -11,6 +11,7 @@ use PlayerSubtitleInfo;
use PlayerVideoInfo;
use PlayerVisualization;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
@ -280,11 +281,12 @@ impl Player {
}
pub fn get_property_suburi(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "suburi".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn set_property_suburi(&self, suburi: Option<&str>) {
@ -294,30 +296,30 @@ impl Player {
}
//pub fn get_property_video_multiview_flags(&self) -> /*Ignored*/gst_video::VideoMultiviewFlags {
// let mut value = Value::from(&0u32);
// unsafe {
// let mut value = Value::uninitialized();
// gobject_ffi::g_value_init(value.to_glib_none_mut().0, </*Unknown type*/ as StaticType>::static_type().to_glib());
// gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-multiview-flags".to_glib_none().0, value.to_glib_none_mut().0);
// from_glib(transmute(value.get::<u32>().unwrap()))
// value.get().unwrap()
// }
//}
//pub fn set_property_video_multiview_flags(&self, video_multiview_flags: /*Ignored*/gst_video::VideoMultiviewFlags) {
// let video_multiview_flags = video_multiview_flags.to_glib().bits() as u32;
// unsafe {
// gobject_ffi::g_object_set_property(self.to_glib_none().0, "video-multiview-flags".to_glib_none().0, Value::from(&video_multiview_flags).to_glib_none().0);
// }
//}
//pub fn get_property_video_multiview_mode(&self) -> /*Ignored*/gst_video::VideoMultiviewFramePacking {
// let mut value = Value::from(&0);
// unsafe {
// let mut value = Value::uninitialized();
// gobject_ffi::g_value_init(value.to_glib_none_mut().0, </*Unknown type*/ as StaticType>::static_type().to_glib());
// gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-multiview-mode".to_glib_none().0, value.to_glib_none_mut().0);
// from_glib(transmute(value.get::<i32>().unwrap()))
// value.get().unwrap()
// }
//}
//pub fn set_property_video_multiview_mode(&self, video_multiview_mode: /*Ignored*/gst_video::VideoMultiviewFramePacking) {
// let video_multiview_mode = video_multiview_mode.to_glib() as i32;
// unsafe {
// gobject_ffi::g_object_set_property(self.to_glib_none().0, "video-multiview-mode".to_glib_none().0, Value::from(&video_multiview_mode).to_glib_none().0);
// }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;

View file

@ -1,9 +1,10 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerSignalDispatcher;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
@ -25,11 +26,12 @@ glib_wrapper! {
impl PlayerGMainContextSignalDispatcher {
pub fn get_property_application_context(&self) -> Option<glib::MainContext> {
let mut value = Value::from(None::<&glib::MainContext>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <glib::MainContext as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "application-context".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn connect_property_application_context_notify<F: Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerAudioInfo;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;

View file

@ -1,9 +1,10 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerVideoRenderer;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::IsA;
use glib::signal::SignalHandlerId;
@ -58,11 +59,12 @@ impl PlayerVideoOverlayVideoRenderer {
//}
pub fn get_property_video_sink(&self) -> Option<gst::Element> {
let mut value = Value::from(None::<&gst::Element>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <gst::Element as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-sink".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn set_property_video_sink<P: IsA<gst::Element> + IsA<glib::object::Object> + glib::value::SetValueOptional>(&self, video_sink: Option<&P>) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod video_overlay;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
#[allow(unused_imports)]

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ChildProxy;
@ -10,6 +10,7 @@ use Pad;
use PadDirection;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -205,11 +206,12 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
fn get_property_async_handling(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "async-handling".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_async_handling(&self, async_handling: bool) {
@ -219,11 +221,12 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
fn get_property_message_forward(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "message-forward".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_message_forward(&self, message_forward: bool) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ClockTime;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,10 +1,11 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ClockTime;
use Object;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -51,7 +52,7 @@ impl Clock {
// unsafe { TODO: call ffi::gst_clock_id_wait() }
//}
//pub fn id_wait_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(id: /*Unimplemented*/ClockID, func: /*Unknown conversion*//*Unimplemented*/ClockCallback, user_data: P, destroy_data: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> ClockReturn {
//pub fn id_wait_async(id: /*Unimplemented*/ClockID, func: /*Unknown conversion*//*Unimplemented*/ClockCallback, destroy_data: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> ClockReturn {
// unsafe { TODO: call ffi::gst_clock_id_wait_async() }
//}
}
@ -270,11 +271,12 @@ impl<O: IsA<Clock> + IsA<glib::object::Object>> ClockExt for O {
}
fn get_property_window_size(&self) -> i32 {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-size".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_window_size(&self, window_size: i32) {
@ -284,11 +286,12 @@ impl<O: IsA<Clock> + IsA<glib::object::Object>> ClockExt for O {
}
fn get_property_window_threshold(&self) -> i32 {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-threshold".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_window_threshold(&self, window_threshold: i32) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Caps;
@ -7,6 +7,7 @@ use Object;
use Structure;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -119,35 +120,39 @@ impl<O: IsA<Device> + IsA<glib::object::Object>> DeviceExt for O {
}
fn get_property_caps(&self) -> Option<Caps> {
let mut value = Value::from(None::<&Caps>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Caps as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
fn get_property_device_class(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "device-class".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
fn get_property_display_name(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "display-name".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
fn get_property_properties(&self) -> Option<Structure> {
let mut value = Value::from(None::<&Structure>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Structure as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "properties".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
fn connect_removed<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Bus;
@ -7,6 +7,7 @@ use Device;
use Object;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -132,11 +133,12 @@ impl<O: IsA<DeviceMonitor> + IsA<glib::object::Object>> DeviceMonitorExt for O {
}
fn get_property_show_all(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-all".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_show_all(&self, show_all: bool) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Bus;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use DeviceProvider;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Bus;
@ -85,7 +85,7 @@ pub trait ElementExt {
fn add_pad<P: IsA<Pad>>(&self, pad: &P) -> Result<(), glib::error::BoolError>;
//#[cfg(any(feature = "v1_10", feature = "dox"))]
//fn call_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, user_data: P, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify);
//fn call_async(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify);
fn change_state(&self, transition: StateChange) -> StateChangeReturn;
@ -199,7 +199,7 @@ impl<O: IsA<Element> + IsA<glib::object::Object>> ElementExt for O {
}
//#[cfg(any(feature = "v1_10", feature = "dox"))]
//fn call_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, user_data: P, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) {
//fn call_async(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) {
// unsafe { TODO: call ffi::gst_element_call_async() }
//}

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Caps;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Bin;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Object;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod bin;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ClockTime;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Caps;
@ -18,6 +18,7 @@ use Stream;
use TaskState;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -543,19 +544,21 @@ impl<O: IsA<Pad> + IsA<glib::object::Object>> PadExt for O {
}
fn get_property_caps(&self) -> Option<Caps> {
let mut value = Value::from(None::<&Caps>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Caps as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
fn get_property_template(&self) -> Option<PadTemplate> {
let mut value = Value::from(None::<&PadTemplate>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <PadTemplate as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "template".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
fn set_property_template(&self, template: Option<&PadTemplate>) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Caps;
@ -7,6 +7,7 @@ use Pad;
use PadDirection;
use PadPresence;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::object::IsA;
use glib::signal::SignalHandlerId;
@ -48,26 +49,29 @@ impl PadTemplate {
}
pub fn get_property_direction(&self) -> PadDirection {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <PadDirection as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "direction".to_glib_none().0, value.to_glib_none_mut().0);
from_glib(transmute(value.get::<i32>().unwrap()))
value.get().unwrap()
}
}
pub fn get_property_name_template(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "name-template".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn get_property_presence(&self) -> PadPresence {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <PadPresence as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "presence".to_glib_none().0, value.to_glib_none_mut().0);
from_glib(transmute(value.get::<i32>().unwrap()))
value.get().unwrap()
}
}

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Bin;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Error;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Object;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Caps;
@ -7,6 +7,7 @@ use StreamFlags;
use StreamType;
use TagList;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
@ -107,11 +108,12 @@ impl Stream {
}
pub fn get_property_caps(&self) -> Option<Caps> {
let mut value = Value::from(None::<&Caps>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Caps as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn set_property_caps(&self, caps: Option<&Caps>) {
@ -121,49 +123,51 @@ impl Stream {
}
pub fn get_property_stream_flags(&self) -> StreamFlags {
let mut value = Value::from(&0u32);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <StreamFlags as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "stream-flags".to_glib_none().0, value.to_glib_none_mut().0);
from_glib(transmute(value.get::<u32>().unwrap()))
value.get().unwrap()
}
}
pub fn set_property_stream_flags(&self, stream_flags: StreamFlags) {
let stream_flags = stream_flags.to_glib().bits() as u32;
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "stream-flags".to_glib_none().0, Value::from(&stream_flags).to_glib_none().0);
}
}
pub fn get_property_stream_id(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "stream-id".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn get_property_stream_type(&self) -> StreamType {
let mut value = Value::from(&0u32);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <StreamType as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "stream-type".to_glib_none().0, value.to_glib_none_mut().0);
from_glib(transmute(value.get::<u32>().unwrap()))
value.get().unwrap()
}
}
pub fn set_property_stream_type(&self, stream_type: StreamType) {
let stream_type = stream_type.to_glib().bits() as u32;
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "stream-type".to_glib_none().0, Value::from(&stream_type).to_glib_none().0);
}
}
pub fn get_property_tags(&self) -> Option<TagList> {
let mut value = Value::from(None::<&TagList>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <TagList as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "tags".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn set_property_tags(&self, tags: Option<&TagList>) {

View file

@ -1,10 +1,11 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Object;
#[cfg(any(feature = "v1_10", feature = "dox"))]
use Stream;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
@ -64,11 +65,12 @@ impl StreamCollection {
}
pub fn get_property_upstream_id(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "upstream-id".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn set_property_upstream_id(&self, upstream_id: Option<&str>) {

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Clock;
@ -6,6 +6,7 @@ use ClockType;
use Object;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
@ -56,15 +57,15 @@ pub trait SystemClockExt {
impl<O: IsA<SystemClock> + IsA<glib::object::Object>> SystemClockExt for O {
fn get_property_clock_type(&self) -> ClockType {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <ClockType as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "clock-type".to_glib_none().0, value.to_glib_none_mut().0);
from_glib(transmute(value.get::<i32>().unwrap()))
value.get().unwrap()
}
}
fn set_property_clock_type(&self, clock_type: ClockType) {
let clock_type = clock_type.to_glib() as i32;
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "clock-type".to_glib_none().0, Value::from(&clock_type).to_glib_none().0);
}

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Element;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Element;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Error;