Commit 01d79cc5 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Update to bitflags 0.9

parent 706bf668
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
bitflags = "0.8" bitflags = "0.9"
libc = "0.2" libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
...@@ -34,7 +34,7 @@ fn find() -> Result<(), Error> { ...@@ -34,7 +34,7 @@ fn find() -> Result<(), Error> {
return Ok(()) return Ok(())
} }
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows"); let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new(); let mut config = Config::new();
...@@ -49,7 +49,8 @@ fn find() -> Result<(), Error> { ...@@ -49,7 +49,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_); println!("cargo:rustc-link-lib=dylib={}", lib_);
} }
for path in library.link_paths.iter() { for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap()); println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
} }
} }
Ok(()) Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???) // This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)] #![allow(non_camel_case_types, non_upper_case_globals)]
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
bitflags = "0.8" bitflags = "0.9"
libc = "0.2" libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
...@@ -36,7 +36,7 @@ fn find() -> Result<(), Error> { ...@@ -36,7 +36,7 @@ fn find() -> Result<(), Error> {
return Ok(()) return Ok(())
} }
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows"); let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new(); let mut config = Config::new();
...@@ -51,7 +51,8 @@ fn find() -> Result<(), Error> { ...@@ -51,7 +51,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_); println!("cargo:rustc-link-lib=dylib={}", lib_);
} }
for path in library.link_paths.iter() { for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap()); println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
} }
} }
Ok(()) Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???) // This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)] #![allow(non_camel_case_types, non_upper_case_globals)]
...@@ -392,66 +392,66 @@ pub const GST_META_TAG_AUDIO_STR: *const c_char = b"audio\0" as *const u8 as *co ...@@ -392,66 +392,66 @@ pub const GST_META_TAG_AUDIO_STR: *const c_char = b"audio\0" as *const u8 as *co
// Flags // Flags
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstAudioChannelMixerFlags: c_uint { pub struct GstAudioChannelMixerFlags: c_uint {
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE = 0, const GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE = 0;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN = 1, const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN = 1;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT = 2, const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT = 2;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN = 4, const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN = 4;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT = 8, const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT = 8;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstAudioConverterFlags: c_uint { pub struct GstAudioConverterFlags: c_uint {
const GST_AUDIO_CONVERTER_FLAG_NONE = 0, const GST_AUDIO_CONVERTER_FLAG_NONE = 0;
const GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE = 1, const GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE = 1;
const GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE = 2, const GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE = 2;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstAudioFlags: c_uint { pub struct GstAudioFlags: c_uint {
const GST_AUDIO_FLAG_NONE = 0, const GST_AUDIO_FLAG_NONE = 0;
const GST_AUDIO_FLAG_UNPOSITIONED = 1, const GST_AUDIO_FLAG_UNPOSITIONED = 1;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstAudioFormatFlags: c_uint { pub struct GstAudioFormatFlags: c_uint {
const GST_AUDIO_FORMAT_FLAG_INTEGER = 1, const GST_AUDIO_FORMAT_FLAG_INTEGER = 1;
const GST_AUDIO_FORMAT_FLAG_FLOAT = 2, const GST_AUDIO_FORMAT_FLAG_FLOAT = 2;
const GST_AUDIO_FORMAT_FLAG_SIGNED = 4, const GST_AUDIO_FORMAT_FLAG_SIGNED = 4;
const GST_AUDIO_FORMAT_FLAG_COMPLEX = 16, const GST_AUDIO_FORMAT_FLAG_COMPLEX = 16;
const GST_AUDIO_FORMAT_FLAG_UNPACK = 32, const GST_AUDIO_FORMAT_FLAG_UNPACK = 32;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstAudioPackFlags: c_uint { pub struct GstAudioPackFlags: c_uint {
const GST_AUDIO_PACK_FLAG_NONE = 0, const GST_AUDIO_PACK_FLAG_NONE = 0;
const GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1, const GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstAudioQuantizeFlags: c_uint { pub struct GstAudioQuantizeFlags: c_uint {
const GST_AUDIO_QUANTIZE_FLAG_NONE = 0, const GST_AUDIO_QUANTIZE_FLAG_NONE = 0;
const GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = 1, const GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = 1;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstAudioResamplerFlags: c_uint { pub struct GstAudioResamplerFlags: c_uint {
const GST_AUDIO_RESAMPLER_FLAG_NONE = 0, const GST_AUDIO_RESAMPLER_FLAG_NONE = 0;
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN = 1, const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN = 1;
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT = 2, const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT = 2;
const GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE = 4, const GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE = 4;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
bitflags = "0.8" bitflags = "0.9"
libc = "0.2" libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
...@@ -38,7 +38,7 @@ fn find() -> Result<(), Error> { ...@@ -38,7 +38,7 @@ fn find() -> Result<(), Error> {
return Ok(()) return Ok(())
} }
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows"); let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new(); let mut config = Config::new();
...@@ -53,7 +53,8 @@ fn find() -> Result<(), Error> { ...@@ -53,7 +53,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_); println!("cargo:rustc-link-lib=dylib={}", lib_);
} }
for path in library.link_paths.iter() { for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap()); println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
} }
} }
Ok(()) Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???) // This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)] #![allow(non_camel_case_types, non_upper_case_globals)]
...@@ -26,33 +26,33 @@ pub const GST_BASE_TRANSFORM_SRC_NAME: *const c_char = b"src\0" as *const u8 as ...@@ -26,33 +26,33 @@ pub const GST_BASE_TRANSFORM_SRC_NAME: *const c_char = b"src\0" as *const u8 as
// Flags // Flags
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstBaseParseFrameFlags: c_uint { pub struct GstBaseParseFrameFlags: c_uint {
const GST_BASE_PARSE_FRAME_FLAG_NONE = 0, const GST_BASE_PARSE_FRAME_FLAG_NONE = 0;
const GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME = 1, const GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME = 1;
const GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = 2, const GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = 2;
const GST_BASE_PARSE_FRAME_FLAG_CLIP = 4, const GST_BASE_PARSE_FRAME_FLAG_CLIP = 4;
const GST_BASE_PARSE_FRAME_FLAG_DROP = 8, const GST_BASE_PARSE_FRAME_FLAG_DROP = 8;
const GST_BASE_PARSE_FRAME_FLAG_QUEUE = 16, const GST_BASE_PARSE_FRAME_FLAG_QUEUE = 16;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstBaseSrcFlags: c_uint { pub struct GstBaseSrcFlags: c_uint {
const GST_BASE_SRC_FLAG_STARTING = 16384, const GST_BASE_SRC_FLAG_STARTING = 16384;
const GST_BASE_SRC_FLAG_STARTED = 32768, const GST_BASE_SRC_FLAG_STARTED = 32768;
const GST_BASE_SRC_FLAG_LAST = 1048576, const GST_BASE_SRC_FLAG_LAST = 1048576;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstCollectPadsStateFlags: c_uint { pub struct GstCollectPadsStateFlags: c_uint {
const GST_COLLECT_PADS_STATE_EOS = 1, const GST_COLLECT_PADS_STATE_EOS = 1;
const GST_COLLECT_PADS_STATE_FLUSHING = 2, const GST_COLLECT_PADS_STATE_FLUSHING = 2;
const GST_COLLECT_PADS_STATE_NEW_SEGMENT = 4, const GST_COLLECT_PADS_STATE_NEW_SEGMENT = 4;
const GST_COLLECT_PADS_STATE_WAITING = 8, const GST_COLLECT_PADS_STATE_WAITING = 8;
const GST_COLLECT_PADS_STATE_LOCKED = 16, const GST_COLLECT_PADS_STATE_LOCKED = 16;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
bitflags = "0.8" bitflags = "0.9"
libc = "0.2" libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
...@@ -32,7 +32,7 @@ fn find() -> Result<(), Error> { ...@@ -32,7 +32,7 @@ fn find() -> Result<(), Error> {
return Ok(()) return Ok(())
} }
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows"); let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new(); let mut config = Config::new();
...@@ -47,7 +47,8 @@ fn find() -> Result<(), Error> { ...@@ -47,7 +47,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_); println!("cargo:rustc-link-lib=dylib={}", lib_);
} }
for path in library.link_paths.iter() { for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap()); println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
} }
} }
Ok(()) Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???) // This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)] #![allow(non_camel_case_types, non_upper_case_globals)]
...@@ -113,12 +113,12 @@ pub const GST_PLUGINS_BASE_VERSION_NANO: c_int = 0; ...@@ -113,12 +113,12 @@ pub const GST_PLUGINS_BASE_VERSION_NANO: c_int = 0;
// Flags // Flags
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstDiscovererSerializeFlags: c_uint { pub struct GstDiscovererSerializeFlags: c_uint {
const GST_DISCOVERER_SERIALIZE_BASIC = 0, const GST_DISCOVERER_SERIALIZE_BASIC = 0;
const GST_DISCOVERER_SERIALIZE_CAPS = 1, const GST_DISCOVERER_SERIALIZE_CAPS = 1;
const GST_DISCOVERER_SERIALIZE_TAGS = 2, const GST_DISCOVERER_SERIALIZE_TAGS = 2;
const GST_DISCOVERER_SERIALIZE_MISC = 4, const GST_DISCOVERER_SERIALIZE_MISC = 4;
const GST_DISCOVERER_SERIALIZE_ALL = 7, const GST_DISCOVERER_SERIALIZE_ALL = 7;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
bitflags = "0.8" bitflags = "0.9"
libc = "0.2" libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
...@@ -42,7 +42,7 @@ fn find() -> Result<(), Error> { ...@@ -42,7 +42,7 @@ fn find() -> Result<(), Error> {
return Ok(()) return Ok(())
} }
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows"); let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new(); let mut config = Config::new();
...@@ -57,7 +57,8 @@ fn find() -> Result<(), Error> { ...@@ -57,7 +57,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_); println!("cargo:rustc-link-lib=dylib={}", lib_);
} }
for path in library.link_paths.iter() { for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap()); println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
} }
} }
Ok(()) Ok(())
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
bitflags = "0.8" bitflags = "0.9"
libc = "0.2" libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
...@@ -30,7 +30,7 @@ fn find() -> Result<(), Error> { ...@@ -30,7 +30,7 @@ fn find() -> Result<(), Error> {
return Ok(()) return Ok(())
} }
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows"); let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new(); let mut config = Config::new();
...@@ -45,7 +45,8 @@ fn find() -> Result<(), Error> { ...@@ -45,7 +45,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_); println!("cargo:rustc-link-lib=dylib={}", lib_);
} }
for path in library.link_paths.iter() { for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap()); println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
} }
} }
Ok(()) Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???) // This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)] #![allow(non_camel_case_types, non_upper_case_globals)]
...@@ -115,21 +115,21 @@ pub const GST_TAG_MUSICBRAINZ_TRMID: *const c_char = b"musicbrainz-trmid\0" as * ...@@ -115,21 +115,21 @@ pub const GST_TAG_MUSICBRAINZ_TRMID: *const c_char = b"musicbrainz-trmid\0" as *
// Flags // Flags
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstTagLicenseFlags: c_uint { pub struct GstTagLicenseFlags: c_uint {
const GST_TAG_LICENSE_PERMITS_REPRODUCTION = 1, const GST_TAG_LICENSE_PERMITS_REPRODUCTION = 1;
const GST_TAG_LICENSE_PERMITS_DISTRIBUTION = 2, const GST_TAG_LICENSE_PERMITS_DISTRIBUTION = 2;
const GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS = 4, const GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS = 4;
const GST_TAG_LICENSE_PERMITS_SHARING = 8, const GST_TAG_LICENSE_PERMITS_SHARING = 8;
const GST_TAG_LICENSE_REQUIRES_NOTICE = 256, const GST_TAG_LICENSE_REQUIRES_NOTICE = 256;
const GST_TAG_LICENSE_REQUIRES_ATTRIBUTION = 512, const GST_TAG_LICENSE_REQUIRES_ATTRIBUTION = 512;
const GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE = 1024, const GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE = 1024;
const GST_TAG_LICENSE_REQUIRES_SOURCE_CODE = 2048, const GST_TAG_LICENSE_REQUIRES_SOURCE_CODE = 2048;
const GST_TAG_LICENSE_REQUIRES_COPYLEFT = 4096, const GST_TAG_LICENSE_REQUIRES_COPYLEFT = 4096;
const GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT = 8192, const GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT = 8192;
const GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE = 65536, const GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE = 65536;
const GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE = 131072, const GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE = 131072;
const GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE = 16777216, const GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE = 16777216;
const GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE = 33554432, const GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE = 33554432;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkg-config = "0.3.7" pkg-config = "0.3.7"
[dependencies] [dependencies]
bitflags = "0.8" bitflags = "0.9"
libc = "0.2" libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" } gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
...@@ -42,7 +42,7 @@ fn find() -> Result<(), Error> { ...@@ -42,7 +42,7 @@ fn find() -> Result<(), Error> {
return Ok(()) return Ok(())
} }
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows"); let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new(); let mut config = Config::new();
...@@ -57,7 +57,8 @@ fn find() -> Result<(), Error> { ...@@ -57,7 +57,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_); println!("cargo:rustc-link-lib=dylib={}", lib_);
} }
for path in library.link_paths.iter() { for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap()); println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
} }
} }
Ok(()) Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???) // This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)] #![allow(non_camel_case_types, non_upper_case_globals)]
...@@ -685,149 +685,149 @@ pub const GST_VIDEO_TILE_Y_TILES_SHIFT: c_int = 16; ...@@ -685,149 +685,149 @@ pub const GST_VIDEO_TILE_Y_TILES_SHIFT: c_int = 16;
// Flags // Flags
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstVideoBufferFlags: c_uint { pub struct GstVideoBufferFlags: c_uint {
const GST_VIDEO_BUFFER_FLAG_INTERLACED = 1048576, const GST_VIDEO_BUFFER_FLAG_INTERLACED = 1048576;
const GST_VIDEO_BUFFER_FLAG_TFF = 2097152, const GST_VIDEO_BUFFER_FLAG_TFF = 2097152;
const GST_VIDEO_BUFFER_FLAG_RFF = 4194304, const GST_VIDEO_BUFFER_FLAG_RFF = 4194304;
const GST_VIDEO_BUFFER_FLAG_ONEFIELD = 8388608, const GST_VIDEO_BUFFER_FLAG_ONEFIELD = 8388608;
const GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW = 16777216, const GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW = 16777216;
const GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE = 33554432, const GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE = 33554432;
const GST_VIDEO_BUFFER_FLAG_LAST = 268435456, const GST_VIDEO_BUFFER_FLAG_LAST = 268435456;
} }
} }
bitflags! { bitflags! {
#[repr(C)] #[repr(C)]
pub flags GstVideoChromaFlags: c_uint { pub struct GstVideoChromaFlags: c_uint {
const GST_VIDEO_CHROMA_FLAG_NONE = 0, const GST_VIDEO_CHROMA_FLAG_NONE = 0;
const GST_VIDEO_CHROMA_FLAG_INTERLACED = 1, const GST_VIDEO_CHROMA_FLAG_INTERLACED = 1;
} }
} }
</