libseat_sys/
bindings.rs

1/* automatically generated by rust-bindgen 0.58.1 */
2
3#[repr(C)]
4#[derive(Debug, Copy, Clone)]
5pub struct libseat {
6    _unused: [u8; 0],
7}
8#[repr(C)]
9#[derive(Debug, Copy, Clone)]
10pub struct libseat_seat_listener {
11    pub enable_seat: ::std::option::Option<
12        unsafe extern "C" fn(seat: *mut libseat, userdata: *mut ::std::os::raw::c_void),
13    >,
14    pub disable_seat: ::std::option::Option<
15        unsafe extern "C" fn(seat: *mut libseat, userdata: *mut ::std::os::raw::c_void),
16    >,
17}
18extern "C" {
19    pub fn libseat_open_seat(
20        listener: *const libseat_seat_listener,
21        userdata: *mut ::std::os::raw::c_void,
22    ) -> *mut libseat;
23}
24extern "C" {
25    pub fn libseat_disable_seat(seat: *mut libseat) -> ::std::os::raw::c_int;
26}
27extern "C" {
28    pub fn libseat_close_seat(seat: *mut libseat) -> ::std::os::raw::c_int;
29}
30extern "C" {
31    pub fn libseat_open_device(
32        seat: *mut libseat,
33        path: *const ::std::os::raw::c_char,
34        fd: *mut ::std::os::raw::c_int,
35    ) -> ::std::os::raw::c_int;
36}
37extern "C" {
38    pub fn libseat_close_device(
39        seat: *mut libseat,
40        device_id: ::std::os::raw::c_int,
41    ) -> ::std::os::raw::c_int;
42}
43extern "C" {
44    pub fn libseat_seat_name(seat: *mut libseat) -> *const ::std::os::raw::c_char;
45}
46extern "C" {
47    pub fn libseat_switch_session(
48        seat: *mut libseat,
49        session: ::std::os::raw::c_int,
50    ) -> ::std::os::raw::c_int;
51}
52extern "C" {
53    pub fn libseat_get_fd(seat: *mut libseat) -> ::std::os::raw::c_int;
54}
55extern "C" {
56    pub fn libseat_dispatch(
57        seat: *mut libseat,
58        timeout: ::std::os::raw::c_int,
59    ) -> ::std::os::raw::c_int;
60}
61pub const libseat_log_level_LIBSEAT_LOG_LEVEL_SILENT: libseat_log_level = 0;
62pub const libseat_log_level_LIBSEAT_LOG_LEVEL_ERROR: libseat_log_level = 1;
63pub const libseat_log_level_LIBSEAT_LOG_LEVEL_INFO: libseat_log_level = 2;
64pub const libseat_log_level_LIBSEAT_LOG_LEVEL_DEBUG: libseat_log_level = 3;
65pub const libseat_log_level_LIBSEAT_LOG_LEVEL_LAST: libseat_log_level = 4;
66pub type libseat_log_level = ::std::os::raw::c_uint;
67extern "C" {
68    pub fn libseat_set_log_level(level: libseat_log_level);
69}