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

Update to bitflags 0.9

parent 706bf668
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
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" }
......
......@@ -34,7 +34,7 @@ fn find() -> Result<(), Error> {
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 mut config = Config::new();
......@@ -49,7 +49,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
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(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
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" }
......
......@@ -36,7 +36,7 @@ fn find() -> Result<(), Error> {
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 mut config = Config::new();
......@@ -51,7 +51,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
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(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![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
// Flags
bitflags! {
#[repr(C)]
pub flags GstAudioChannelMixerFlags: c_uint {
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_OUT = 2,
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN = 4,
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT = 8,
pub struct GstAudioChannelMixerFlags: c_uint {
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_OUT = 2;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN = 4;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT = 8;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioConverterFlags: c_uint {
const GST_AUDIO_CONVERTER_FLAG_NONE = 0,
const GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE = 1,
const GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE = 2,
pub struct GstAudioConverterFlags: c_uint {
const GST_AUDIO_CONVERTER_FLAG_NONE = 0;
const GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE = 1;
const GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE = 2;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioFlags: c_uint {
const GST_AUDIO_FLAG_NONE = 0,
const GST_AUDIO_FLAG_UNPOSITIONED = 1,
pub struct GstAudioFlags: c_uint {
const GST_AUDIO_FLAG_NONE = 0;
const GST_AUDIO_FLAG_UNPOSITIONED = 1;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioFormatFlags: c_uint {
const GST_AUDIO_FORMAT_FLAG_INTEGER = 1,
const GST_AUDIO_FORMAT_FLAG_FLOAT = 2,
const GST_AUDIO_FORMAT_FLAG_SIGNED = 4,
const GST_AUDIO_FORMAT_FLAG_COMPLEX = 16,
const GST_AUDIO_FORMAT_FLAG_UNPACK = 32,
pub struct GstAudioFormatFlags: c_uint {
const GST_AUDIO_FORMAT_FLAG_INTEGER = 1;
const GST_AUDIO_FORMAT_FLAG_FLOAT = 2;
const GST_AUDIO_FORMAT_FLAG_SIGNED = 4;
const GST_AUDIO_FORMAT_FLAG_COMPLEX = 16;
const GST_AUDIO_FORMAT_FLAG_UNPACK = 32;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioPackFlags: c_uint {
const GST_AUDIO_PACK_FLAG_NONE = 0,
const GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1,
pub struct GstAudioPackFlags: c_uint {
const GST_AUDIO_PACK_FLAG_NONE = 0;
const GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioQuantizeFlags: c_uint {
const GST_AUDIO_QUANTIZE_FLAG_NONE = 0,
const GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = 1,
pub struct GstAudioQuantizeFlags: c_uint {
const GST_AUDIO_QUANTIZE_FLAG_NONE = 0;
const GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = 1;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioResamplerFlags: c_uint {
const GST_AUDIO_RESAMPLER_FLAG_NONE = 0,
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN = 1,
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT = 2,
const GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE = 4,
pub struct GstAudioResamplerFlags: c_uint {
const GST_AUDIO_RESAMPLER_FLAG_NONE = 0;
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN = 1;
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT = 2;
const GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE = 4;
}
}
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
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" }
......
......@@ -38,7 +38,7 @@ fn find() -> Result<(), Error> {
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 mut config = Config::new();
......@@ -53,7 +53,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
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(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![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
// Flags
bitflags! {
#[repr(C)]
pub flags GstBaseParseFrameFlags: c_uint {
const GST_BASE_PARSE_FRAME_FLAG_NONE = 0,
const GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME = 1,
const GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = 2,
const GST_BASE_PARSE_FRAME_FLAG_CLIP = 4,
const GST_BASE_PARSE_FRAME_FLAG_DROP = 8,
const GST_BASE_PARSE_FRAME_FLAG_QUEUE = 16,
pub struct GstBaseParseFrameFlags: c_uint {
const GST_BASE_PARSE_FRAME_FLAG_NONE = 0;
const GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME = 1;
const GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = 2;
const GST_BASE_PARSE_FRAME_FLAG_CLIP = 4;
const GST_BASE_PARSE_FRAME_FLAG_DROP = 8;
const GST_BASE_PARSE_FRAME_FLAG_QUEUE = 16;
}
}
bitflags! {
#[repr(C)]
pub flags GstBaseSrcFlags: c_uint {
const GST_BASE_SRC_FLAG_STARTING = 16384,
const GST_BASE_SRC_FLAG_STARTED = 32768,
const GST_BASE_SRC_FLAG_LAST = 1048576,
pub struct GstBaseSrcFlags: c_uint {
const GST_BASE_SRC_FLAG_STARTING = 16384;
const GST_BASE_SRC_FLAG_STARTED = 32768;
const GST_BASE_SRC_FLAG_LAST = 1048576;
}
}
bitflags! {
#[repr(C)]
pub flags GstCollectPadsStateFlags: c_uint {
const GST_COLLECT_PADS_STATE_EOS = 1,
const GST_COLLECT_PADS_STATE_FLUSHING = 2,
const GST_COLLECT_PADS_STATE_NEW_SEGMENT = 4,
const GST_COLLECT_PADS_STATE_WAITING = 8,
const GST_COLLECT_PADS_STATE_LOCKED = 16,
pub struct GstCollectPadsStateFlags: c_uint {
const GST_COLLECT_PADS_STATE_EOS = 1;
const GST_COLLECT_PADS_STATE_FLUSHING = 2;
const GST_COLLECT_PADS_STATE_NEW_SEGMENT = 4;
const GST_COLLECT_PADS_STATE_WAITING = 8;
const GST_COLLECT_PADS_STATE_LOCKED = 16;
}
}
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
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" }
......
......@@ -32,7 +32,7 @@ fn find() -> Result<(), Error> {
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 mut config = Config::new();
......@@ -47,7 +47,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
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(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......@@ -113,12 +113,12 @@ pub const GST_PLUGINS_BASE_VERSION_NANO: c_int = 0;
// Flags
bitflags! {
#[repr(C)]
pub flags GstDiscovererSerializeFlags: c_uint {
const GST_DISCOVERER_SERIALIZE_BASIC = 0,
const GST_DISCOVERER_SERIALIZE_CAPS = 1,
const GST_DISCOVERER_SERIALIZE_TAGS = 2,
const GST_DISCOVERER_SERIALIZE_MISC = 4,
const GST_DISCOVERER_SERIALIZE_ALL = 7,
pub struct GstDiscovererSerializeFlags: c_uint {
const GST_DISCOVERER_SERIALIZE_BASIC = 0;
const GST_DISCOVERER_SERIALIZE_CAPS = 1;
const GST_DISCOVERER_SERIALIZE_TAGS = 2;
const GST_DISCOVERER_SERIALIZE_MISC = 4;
const GST_DISCOVERER_SERIALIZE_ALL = 7;
}
}
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
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" }
......
......@@ -42,7 +42,7 @@ fn find() -> Result<(), Error> {
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 mut config = Config::new();
......@@ -57,7 +57,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
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(())
......
This diff is collapsed.
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
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" }
......
......@@ -30,7 +30,7 @@ fn find() -> Result<(), Error> {
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 mut config = Config::new();
......@@ -45,7 +45,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
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(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![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 *
// Flags
bitflags! {
#[repr(C)]
pub flags GstTagLicenseFlags: c_uint {
const GST_TAG_LICENSE_PERMITS_REPRODUCTION = 1,
const GST_TAG_LICENSE_PERMITS_DISTRIBUTION = 2,
const GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS = 4,
const GST_TAG_LICENSE_PERMITS_SHARING = 8,
const GST_TAG_LICENSE_REQUIRES_NOTICE = 256,
const GST_TAG_LICENSE_REQUIRES_ATTRIBUTION = 512,
const GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE = 1024,
const GST_TAG_LICENSE_REQUIRES_SOURCE_CODE = 2048,
const GST_TAG_LICENSE_REQUIRES_COPYLEFT = 4096,
const GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT = 8192,
const GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE = 65536,
const GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE = 131072,
const GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE = 16777216,
const GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE = 33554432,
pub struct GstTagLicenseFlags: c_uint {
const GST_TAG_LICENSE_PERMITS_REPRODUCTION = 1;
const GST_TAG_LICENSE_PERMITS_DISTRIBUTION = 2;
const GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS = 4;
const GST_TAG_LICENSE_PERMITS_SHARING = 8;
const GST_TAG_LICENSE_REQUIRES_NOTICE = 256;
const GST_TAG_LICENSE_REQUIRES_ATTRIBUTION = 512;
const GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE = 1024;
const GST_TAG_LICENSE_REQUIRES_SOURCE_CODE = 2048;
const GST_TAG_LICENSE_REQUIRES_COPYLEFT = 4096;
const GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT = 8192;
const GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE = 65536;
const GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE = 131072;
const GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE = 16777216;
const GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE = 33554432;
}
}
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
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" }
......
......@@ -42,7 +42,7 @@ fn find() -> Result<(), Error> {
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 mut config = Config::new();
......@@ -57,7 +57,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
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(())
......
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