1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#[cfg(any(doc, feature = "pa_v5"))]
use std::os::raw::c_char;
#[cfg(any(doc, feature = "pa_v13"))]
use std::os::raw::c_void;
use crate::mainloop::api::pa_mainloop_api;
#[repr(C)] pub struct pa_threaded_mainloop { _private: [u8; 0] }
#[rustfmt::skip]
#[link(name = "pulse")]
extern "C" {
pub fn pa_threaded_mainloop_new() -> *mut pa_threaded_mainloop;
pub fn pa_threaded_mainloop_free(m: *mut pa_threaded_mainloop);
pub fn pa_threaded_mainloop_start(m: *mut pa_threaded_mainloop) -> i32;
pub fn pa_threaded_mainloop_stop(m: *mut pa_threaded_mainloop);
pub fn pa_threaded_mainloop_lock(m: *mut pa_threaded_mainloop);
pub fn pa_threaded_mainloop_unlock(m: *mut pa_threaded_mainloop);
pub fn pa_threaded_mainloop_wait(m: *mut pa_threaded_mainloop);
pub fn pa_threaded_mainloop_signal(m: *mut pa_threaded_mainloop, wait_for_accept: i32);
pub fn pa_threaded_mainloop_accept(m: *mut pa_threaded_mainloop);
pub fn pa_threaded_mainloop_get_retval(m: *const pa_threaded_mainloop) -> i32;
pub fn pa_threaded_mainloop_get_api(m: *const pa_threaded_mainloop) -> *const pa_mainloop_api;
pub fn pa_threaded_mainloop_in_thread(m: *mut pa_threaded_mainloop) -> i32;
#[cfg(any(doc, feature = "pa_v5"))]
#[cfg_attr(docsrs, doc(cfg(feature = "pa_v5")))]
pub fn pa_threaded_mainloop_set_name(m: *mut pa_threaded_mainloop, name: *const c_char);
#[cfg(any(doc, feature = "pa_v13"))]
#[cfg_attr(docsrs, doc(cfg(feature = "pa_v13")))]
pub fn pa_threaded_mainloop_once_unlocked(m: *mut pa_threaded_mainloop, callback: extern "C" fn(m: *mut pa_threaded_mainloop, userdata: *mut c_void), userdata: *mut c_void);
}