diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /third_party/rust/alsa-sys/src/lib.rs | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/alsa-sys/src/lib.rs')
-rw-r--r-- | third_party/rust/alsa-sys/src/lib.rs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/third_party/rust/alsa-sys/src/lib.rs b/third_party/rust/alsa-sys/src/lib.rs new file mode 100644 index 0000000000..2d5df0e09c --- /dev/null +++ b/third_party/rust/alsa-sys/src/lib.rs @@ -0,0 +1,40 @@ +#![allow(non_camel_case_types)] + +use libc::{FILE, pid_t, timeval, timespec, pollfd}; + +pub const SND_PCM_NONBLOCK: ::std::os::raw::c_int = 0x1; +pub const SND_PCM_ASYNC: ::std::os::raw::c_int = 0x2; + +pub const SND_SEQ_OPEN_OUTPUT: i32 = 1; +pub const SND_SEQ_OPEN_INPUT: i32 = 2; +pub const SND_SEQ_OPEN_DUPLEX: i32 = SND_SEQ_OPEN_OUTPUT | SND_SEQ_OPEN_INPUT; +pub const SND_SEQ_NONBLOCK: i32 = 0x0001; +pub const SND_SEQ_ADDRESS_BROADCAST: u8 = 255; +pub const SND_SEQ_ADDRESS_SUBSCRIBERS: u8 = 254; +pub const SND_SEQ_ADDRESS_UNKNOWN: u8 = 253; +pub const SND_SEQ_QUEUE_DIRECT: u8 = 253; +pub const SND_SEQ_TIME_MODE_MASK: u8 = 1<<1; +pub const SND_SEQ_TIME_STAMP_MASK: u8 = 1<<0; +pub const SND_SEQ_TIME_MODE_REL: u8 = 1<<1; +pub const SND_SEQ_TIME_STAMP_REAL: u8 = 1<<0; +pub const SND_SEQ_TIME_STAMP_TICK: u8 = 0<<0; +pub const SND_SEQ_TIME_MODE_ABS: u8 = 0<<1; +pub const SND_SEQ_CLIENT_SYSTEM: u8 = 0; +pub const SND_SEQ_PORT_SYSTEM_TIMER: u8 = 0; +pub const SND_SEQ_PORT_SYSTEM_ANNOUNCE: u8 = 1; +pub const SND_SEQ_PRIORITY_HIGH: u8 = 1<<4; +pub const SND_SEQ_EVENT_LENGTH_FIXED: u8 = 0<<2; +pub const SND_SEQ_EVENT_LENGTH_MASK: u8 = 3<<2; +pub const SND_SEQ_EVENT_LENGTH_VARIABLE: u8 = 1<<2; +pub const SND_SEQ_EVENT_LENGTH_VARUSR: u8 = 2<<2; + +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __va_list_tag { + pub gp_offset: ::std::os::raw::c_uint, + pub fp_offset: ::std::os::raw::c_uint, + pub overflow_arg_area: *mut ::std::os::raw::c_void, + pub reg_save_area: *mut ::std::os::raw::c_void, +} + +include!("generated.rs"); |