diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/rust/alsa-sys/src/lib.rs | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
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"); |