Debian Codegraph @

third_party/rust/alsa-sys/src/lib.rs

raw
1 #![allow(non_camel_case_types)]
2
3 use libc::{FILE, pid_t, timeval, timespec, pollfd};
4
5 pub const SND_PCM_NONBLOCK: ::std::os::raw::c_int = 0x1;
6 pub const SND_PCM_ASYNC: ::std::os::raw::c_int = 0x2;
7
8 pub const SND_SEQ_OPEN_OUTPUT: i32 = 1;
9 pub const SND_SEQ_OPEN_INPUT: i32 = 2;
10 pub const SND_SEQ_OPEN_DUPLEX: i32 = SND_SEQ_OPEN_OUTPUT | SND_SEQ_OPEN_INPUT;
11 pub const SND_SEQ_NONBLOCK: i32 = 0x0001;
12 pub const SND_SEQ_ADDRESS_BROADCAST: u8 = 255;
13 pub const SND_SEQ_ADDRESS_SUBSCRIBERS: u8 = 254;
14 pub const SND_SEQ_ADDRESS_UNKNOWN: u8 = 253;
15 pub const SND_SEQ_QUEUE_DIRECT: u8 = 253;
16 pub const SND_SEQ_TIME_MODE_MASK: u8 = 1<<1;
17 pub const SND_SEQ_TIME_STAMP_MASK: u8 = 1<<0;
18 pub const SND_SEQ_TIME_MODE_REL: u8 = 1<<1;
19 pub const SND_SEQ_TIME_STAMP_REAL: u8 = 1<<0;
20 pub const SND_SEQ_TIME_STAMP_TICK: u8 = 0<<0;
21 pub const SND_SEQ_TIME_MODE_ABS: u8 = 0<<1;
22 pub const SND_SEQ_CLIENT_SYSTEM: u8 = 0;
23 pub const SND_SEQ_PORT_SYSTEM_TIMER: u8 = 0;
24 pub const SND_SEQ_PORT_SYSTEM_ANNOUNCE: u8 = 1;
25 pub const SND_SEQ_PRIORITY_HIGH: u8 = 1<<4;
26 pub const SND_SEQ_EVENT_LENGTH_FIXED: u8 = 0<<2;
27 pub const SND_SEQ_EVENT_LENGTH_MASK: u8 = 3<<2;
28 pub const SND_SEQ_EVENT_LENGTH_VARIABLE: u8 = 1<<2;
29 pub const SND_SEQ_EVENT_LENGTH_VARUSR: u8 = 2<<2;
30
31 #[repr(C)]
32 #[derive(Debug, Copy, Clone)]
33 pub struct __va_list_tag {
34 pub gp_offset: ::std::os::raw::c_uint,
35 pub fp_offset: ::std::os::raw::c_uint,
36 pub overflow_arg_area: *mut ::std::os::raw::c_void,
37 pub reg_save_area: *mut ::std::os::raw::c_void,
38 }
39
40 include!("generated.rs");