Commit 52c013b8 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Regenerate everything with latest GIR

parent f0935d7e
This diff is collapsed.
This diff is collapsed.
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use AppStreamType;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
mod app_sink;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
mod stream_volume;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use StreamVolumeFormat;
use ffi;
use glib;
use glib::object::Downcast;
use glib::object::IsA;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
use gobject_ffi;
use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
use std::ptr;
glib_wrapper! {
......@@ -38,9 +43,13 @@ pub trait StreamVolumeExt {
fn set_mute(&self, mute: bool);
fn set_volume(&self, format: StreamVolumeFormat, val: f64);
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64;
}
impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
impl<O: IsA<StreamVolume> + IsA<glib::object::Object>> StreamVolumeExt for O {
fn get_mute(&self) -> bool {
unsafe {
from_glib(ffi::gst_stream_volume_get_mute(self.to_glib_none().0))
......@@ -64,4 +73,34 @@ impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
ffi::gst_stream_volume_set_volume(self.to_glib_none().0, format.to_glib(), val);
}
}
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::mute",
transmute(notify_mute_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
}
}
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::volume",
transmute(notify_volume_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
}
}
}
unsafe extern "C" fn notify_mute_trampoline<P>(this: *mut ffi::GstStreamVolume, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StreamVolume> {
callback_guard!();
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&StreamVolume::from_glib_none(this).downcast_unchecked())
}
unsafe extern "C" fn notify_volume_trampoline<P>(this: *mut ffi::GstStreamVolume, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StreamVolume> {
callback_guard!();
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&StreamVolume::from_glib_none(this).downcast_unchecked())
}
......@@ -19,6 +19,12 @@ extern crate gstreamer as gst;
#[macro_use]
extern crate glib;
macro_rules! callback_guard {
() => (
let _guard = ::glib::CallbackGuard::new();
)
}
macro_rules! assert_initialized_main_thread {
() => (
if unsafe {::gst_ffi::gst_is_initialized()} != ::glib_ffi::GTRUE {
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
mod player;
......
This diff is collapsed.
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use PlayerSignalDispatcher;
use ffi;
use glib;
use glib::Value;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
use gobject_ffi;
use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
use std::ptr;
glib_wrapper! {
......@@ -36,7 +39,21 @@ impl PlayerGMainContextSignalDispatcher {
from_glib_full(ffi::gst_player_g_main_context_signal_dispatcher_new(application_context.0))
}
}
pub fn connect_property_application_context_notify<F: Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::application-context",
transmute(notify_application_context_trampoline as usize), Box_::into_raw(f) as *mut _)
}
}
}
unsafe impl Send for PlayerGMainContextSignalDispatcher {}
unsafe impl Sync for PlayerGMainContextSignalDispatcher {}
unsafe extern "C" fn notify_application_context_trampoline(this: *mut ffi::GstPlayerGMainContextSignalDispatcher, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
}
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use PlayerAudioInfo;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use PlayerVideoRenderer;
......@@ -6,11 +6,14 @@ use ffi;
use glib;
use glib::Value;
use glib::object::IsA;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
use gobject_ffi;
use gst;
use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
use std::ptr;
glib_wrapper! {
......@@ -74,7 +77,35 @@ impl PlayerVideoOverlayVideoRenderer {
//pub fn new_with_sink<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>, Q: IsA<gst::Element>>(window_handle: P, video_sink: &Q) -> Option<PlayerVideoRenderer> {
// unsafe { TODO: call ffi::gst_player_video_overlay_video_renderer_new_with_sink() }
//}
pub fn connect_property_video_sink_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::video-sink",
transmute(notify_video_sink_trampoline as usize), Box_::into_raw(f) as *mut _)
}
}
pub fn connect_property_window_handle_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::window-handle",
transmute(notify_window_handle_trampoline as usize), Box_::into_raw(f) as *mut _)
}
}
}
unsafe impl Send for PlayerVideoOverlayVideoRenderer {}
unsafe impl Sync for PlayerVideoOverlayVideoRenderer {}
unsafe extern "C" fn notify_video_sink_trampoline(this: *mut ffi::GstPlayerVideoOverlayVideoRenderer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
}
unsafe extern "C" fn notify_window_handle_trampoline(this: *mut ffi::GstPlayerVideoOverlayVideoRenderer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
}
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (651da6e) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
mod video_overlay;
......
// This file was generated by gir (cf27827) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
#[allow(unused_imports)]
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ChildProxy;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ClockTime;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ClockTime;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Caps;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Bus;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Bus;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use DeviceProvider;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Bus;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Caps;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Bin;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Object;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
mod bin;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ClockTime;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Caps;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Caps;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Bin;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Error;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Iterator;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Caps;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Object;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Clock;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Element;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Element;
......
// This file was generated by gir (cfd99ec+) from gir-files (???)
// This file was generated by gir (e43d6c3) from gir-files (???)
// DO NOT EDIT
use Error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment