Commit 15b08a42 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Initial commit

Requires
  https://github.com/gtk-rs/gir/pull/365
  https://github.com/gtk-rs/gir/pull/364
to be merged for autogeneration of the bindings.

Requires
  https://github.com/gtk-rs/gir/issues/367
for fixing memory leaks.
parents
[root]
name = "gstreamer"
version = "0.1.0"
dependencies = [
"bitflags 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"glib 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"glib-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"gobject-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"gstreamer-sys 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "bitflags"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "bitflags"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "glib"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"bitflags 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"glib-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"gobject-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "glib-sys"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"bitflags 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)",
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "gobject-sys"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"bitflags 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"glib-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)",
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "gstreamer-sys"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"bitflags 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"glib-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"gobject-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)",
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "lazy_static"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "libc"
version = "0.2.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "pkg-config"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
[metadata]
"checksum bitflags 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4f67931368edf3a9a51d29886d245f1c3db2f1ef0dcc9e35ff70341b78c10d23"
"checksum bitflags 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1370e9fc2a6ae53aea8b7a5110edbd08836ed87c88736dfabccade1c2b44bff4"
"checksum glib 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "81f514a8abd315ede0e94e39ce5987fdb99191c5f812e5066bc5bdb965104fc4"
"checksum glib-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8826cbc94631507bdd91ee40f7e099bfaa3cc4f43c086b4d1c15cff5b4e8220b"
"checksum gobject-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "87373f64e136e9ea192ff5d3ef676a51e9ac6ab06b629223a081e0523c5f04e2"
"checksum gstreamer-sys 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "455214f6423a4db5727adf781355a3df068fc48c61c05ddb597aaadd51fe43ab"
"checksum lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf"
"checksum libc 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)" = "babb8281da88cba992fa1f4ddec7d63ed96280a1a53ec9b919fd37b53d71e502"
"checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903"
[workspace]
members = [
"gstreamer",
]
[options]
girs_dir = "gir-files"
library = "Gst"
version = "1.0"
min_cfg_version = "1.0"
target_path = "gstreamer"
work_mode = "normal"
external_libraries = [
"GLib",
"GObject",
]
generate = [
"Gst.Object",
"Gst.Bus",
"Gst.Clock",
"Gst.ClockTime",
"Gst.Element",
"Gst.Bin",
"Gst.Pipeline",
"Gst.State",
"Gst.StateChangeReturn",
"Gst.StateChange",
"Gst.SeekFlags",
"Gst.SeekType",
"Gst.Pad",
"Gst.FlowReturn",
"Gst.PadDirection",
"Gst.PadTemplate",
"Gst.URIHandler",
"Gst.URIType",
"Gst.ElementFactory",
"Gst.ElementFactoryListType",
"Gst.Format",
]
manual = [
"GLib.Error",
#"Gst.Message",
]
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
[package]
name = "gstreamer"
version = "0.1.0"
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
[dependencies]
bitflags = "0.8"
libc = "0.2"
glib-sys = "0.3.4"
gobject-sys = "0.3.4"
gstreamer-sys = "0.1.1"
glib = "0.1.3"
// This file was generated by gir (57b38ba) from gir-files (???)
// DO NOT EDIT
pub type ClockTime = u64;
pub type ElementFactoryListType = u64;
This diff is collapsed.
// This file was generated by gir (57b38ba) from gir-files (???)
// DO NOT EDIT
use Object;
use ffi;
use glib::object::IsA;
use glib::translate::*;
glib_wrapper! {
pub struct Bus(Object<ffi::GstBus>): Object;
match fn {
get_type => || ffi::gst_bus_get_type(),
}
}
impl Bus {
pub fn new() -> Bus {
unsafe {
from_glib_full(ffi::gst_bus_new())
}
}
}
pub trait BusExt {
fn add_signal_watch(&self);
fn add_signal_watch_full(&self, priority: i32);
//fn add_watch<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/BusFunc, user_data: P) -> u32;
//fn add_watch_full<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, priority: i32, func: /*Unknown conversion*//*Unimplemented*/BusFunc, user_data: P, notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> u32;
//fn async_signal_func<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, message: /*Ignored*/&mut Message, data: P) -> bool;
//fn create_watch(&self) -> /*Ignored*/Option<glib::Source>;
fn disable_sync_message_emission(&self);
fn enable_sync_message_emission(&self);
fn have_pending(&self) -> bool;
//fn peek(&self) -> /*Ignored*/Option<Message>;
//fn poll(&self, events: /*Ignored*/MessageType, timeout: ClockTime) -> /*Ignored*/Option<Message>;
//fn pop(&self) -> /*Ignored*/Option<Message>;
//fn pop_filtered(&self, types: /*Ignored*/MessageType) -> /*Ignored*/Option<Message>;
//fn post(&self, message: /*Ignored*/&mut Message) -> bool;
fn remove_signal_watch(&self);
#[cfg(feature = "v1_6")]
fn remove_watch(&self) -> bool;
fn set_flushing(&self, flushing: bool);
//fn set_sync_handler<'a, P: Into<Option<&'a /*Unimplemented*/BusSyncHandler>>, Q: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: P, user_data: Q, notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify);
//fn sync_signal_handler<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, message: /*Ignored*/&mut Message, data: P) -> /*Ignored*/BusSyncReply;
//fn timed_pop(&self, timeout: ClockTime) -> /*Ignored*/Option<Message>;
//fn timed_pop_filtered(&self, timeout: ClockTime, types: /*Ignored*/MessageType) -> /*Ignored*/Option<Message>;
//fn connect_message<Unsupported or ignored types>(&self, f: F) -> u64;
//fn connect_sync_message<Unsupported or ignored types>(&self, f: F) -> u64;
}
impl<O: IsA<Bus>> BusExt for O {
fn add_signal_watch(&self) {
unsafe {
ffi::gst_bus_add_signal_watch(self.to_glib_none().0);
}
}
fn add_signal_watch_full(&self, priority: i32) {
unsafe {
ffi::gst_bus_add_signal_watch_full(self.to_glib_none().0, priority);
}
}
//fn add_watch<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/BusFunc, user_data: P) -> u32 {
// unsafe { TODO: call ffi::gst_bus_add_watch() }
//}
//fn add_watch_full<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, priority: i32, func: /*Unknown conversion*//*Unimplemented*/BusFunc, user_data: P, notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> u32 {
// unsafe { TODO: call ffi::gst_bus_add_watch_full() }
//}
//fn async_signal_func<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, message: /*Ignored*/&mut Message, data: P) -> bool {
// unsafe { TODO: call ffi::gst_bus_async_signal_func() }
//}
//fn create_watch(&self) -> /*Ignored*/Option<glib::Source> {
// unsafe { TODO: call ffi::gst_bus_create_watch() }
//}
fn disable_sync_message_emission(&self) {
unsafe {
ffi::gst_bus_disable_sync_message_emission(self.to_glib_none().0);
}
}
fn enable_sync_message_emission(&self) {
unsafe {
ffi::gst_bus_enable_sync_message_emission(self.to_glib_none().0);
}
}
fn have_pending(&self) -> bool {
unsafe {
from_glib(ffi::gst_bus_have_pending(self.to_glib_none().0))
}
}
//fn peek(&self) -> /*Ignored*/Option<Message> {
// unsafe { TODO: call ffi::gst_bus_peek() }
//}
//fn poll(&self, events: /*Ignored*/MessageType, timeout: ClockTime) -> /*Ignored*/Option<Message> {
// unsafe { TODO: call ffi::gst_bus_poll() }
//}
//fn pop(&self) -> /*Ignored*/Option<Message> {
// unsafe { TODO: call ffi::gst_bus_pop() }
//}
//fn pop_filtered(&self, types: /*Ignored*/MessageType) -> /*Ignored*/Option<Message> {
// unsafe { TODO: call ffi::gst_bus_pop_filtered() }
//}
//fn post(&self, message: /*Ignored*/&mut Message) -> bool {
// unsafe { TODO: call ffi::gst_bus_post() }
//}
fn remove_signal_watch(&self) {
unsafe {
ffi::gst_bus_remove_signal_watch(self.to_glib_none().0);
}
}
#[cfg(feature = "v1_6")]
fn remove_watch(&self) -> bool {
unsafe {
from_glib(ffi::gst_bus_remove_watch(self.to_glib_none().0))
}
}
fn set_flushing(&self, flushing: bool) {
unsafe {
ffi::gst_bus_set_flushing(self.to_glib_none().0, flushing.to_glib());
}
}
//fn set_sync_handler<'a, P: Into<Option<&'a /*Unimplemented*/BusSyncHandler>>, Q: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: P, user_data: Q, notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) {
// unsafe { TODO: call ffi::gst_bus_set_sync_handler() }
//}
//fn sync_signal_handler<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, message: /*Ignored*/&mut Message, data: P) -> /*Ignored*/BusSyncReply {
// unsafe { TODO: call ffi::gst_bus_sync_signal_handler() }
//}
//fn timed_pop(&self, timeout: ClockTime) -> /*Ignored*/Option<Message> {
// unsafe { TODO: call ffi::gst_bus_timed_pop() }
//}
//fn timed_pop_filtered(&self, timeout: ClockTime, types: /*Ignored*/MessageType) -> /*Ignored*/Option<Message> {
// unsafe { TODO: call ffi::gst_bus_timed_pop_filtered() }
//}
//fn connect_message<Unsupported or ignored types>(&self, f: F) -> u64 {
// Ignored message: Gst.Message
//}
//fn connect_sync_message<Unsupported or ignored types>(&self, f: F) -> u64 {
// Ignored message: Gst.Message
//}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// This file was generated by gir (57b38ba) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib::translate::*;
bitflags! {
pub flags SeekFlags: u32 {
const SEEK_FLAG_NONE = 0,
const SEEK_FLAG_FLUSH = 1,
const SEEK_FLAG_ACCURATE = 2,
const SEEK_FLAG_KEY_UNIT = 4,
const SEEK_FLAG_SEGMENT = 8,
const SEEK_FLAG_TRICKMODE = 16,
const SEEK_FLAG_SKIP = 16,
const SEEK_FLAG_SNAP_BEFORE = 32,
const SEEK_FLAG_SNAP_AFTER = 64,
const SEEK_FLAG_SNAP_NEAREST = 96,
const SEEK_FLAG_TRICKMODE_KEY_UNITS = 128,
const SEEK_FLAG_TRICKMODE_NO_AUDIO = 256,
}
}
#[doc(hidden)]
impl ToGlib for SeekFlags {
type GlibType = ffi::GstSeekFlags;
fn to_glib(&self) -> ffi::GstSeekFlags {
ffi::GstSeekFlags::from_bits_truncate(self.bits())
}
}
#[doc(hidden)]
impl FromGlib<ffi::GstSeekFlags> for SeekFlags {
fn from_glib(value: ffi::GstSeekFlags) -> SeekFlags {
SeekFlags::from_bits_truncate(value.bits())
}
}
// This file was generated by gir (57b38ba) from gir-files (???)
// DO NOT EDIT
mod bin;
pub use self::bin::Bin;
pub use self::bin::BinExt;
mod bus;
pub use self::bus::Bus;
pub use self::bus::BusExt;
mod clock;
pub use self::clock::Clock;
pub use self::clock::ClockExt;
mod element;
pub use self::element::Element;
pub use self::element::ElementExt;
mod element_factory;
pub use self::element_factory::ElementFactory;
pub use self::element_factory::ElementFactoryExt;
mod object;
pub use self::object::Object;
pub use self::object::ObjectExt;
mod pad;
pub use self::pad::Pad;
pub use self::pad::PadExt;
mod pad_template;
pub use self::pad_template::PadTemplate;
pub use self::pad_template::PadTemplateExt;
mod pipeline;
pub use self::pipeline::Pipeline;
pub use self::pipeline::PipelineExt;
mod u_r_i_handler;
pub use self::u_r_i_handler::URIHandler;
pub use self::u_r_i_handler::URIHandlerExt;
mod enums;
pub use self::enums::FlowReturn;
pub use self::enums::Format;
pub use self::enums::PadDirection;
pub use self::enums::SeekType;
pub use self::enums::State;
pub use self::enums::StateChange;
pub use self::enums::StateChangeReturn;
pub use self::enums::URIType;
mod flags;
pub use self::flags::SeekFlags;
pub use self::flags::SEEK_FLAG_NONE;
pub use self::flags::SEEK_FLAG_FLUSH;
pub use self::flags::SEEK_FLAG_ACCURATE;
pub use self::flags::SEEK_FLAG_KEY_UNIT;
pub use self::flags::SEEK_FLAG_SEGMENT;
pub use self::flags::SEEK_FLAG_TRICKMODE;
pub use self::flags::SEEK_FLAG_SKIP;
pub use self::flags::SEEK_FLAG_SNAP_BEFORE;
pub use self::flags::SEEK_FLAG_SNAP_AFTER;
pub use self::flags::SEEK_FLAG_SNAP_NEAREST;
pub use self::flags::SEEK_FLAG_TRICKMODE_KEY_UNITS;
pub use self::flags::SEEK_FLAG_TRICKMODE_NO_AUDIO;
mod alias;
pub use self::alias::ClockTime;
pub use self::alias::ElementFactoryListType;
#[doc(hidden)]
pub mod traits {
pub use super::BinExt;
pub use super::BusExt;
pub use super::ClockExt;
pub use super::ElementExt;
pub use super::ElementFactoryExt;
pub use super::ObjectExt;
pub use super::PadExt;
pub use super::PadTemplateExt;
pub use super::PipelineExt;
pub use super::URIHandlerExt;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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