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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libseat {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libseat_seat_listener {
pub enable_seat: ::std::option::Option<
unsafe extern "C" fn(seat: *mut libseat, userdata: *mut ::std::os::raw::c_void),
>,
pub disable_seat: ::std::option::Option<
unsafe extern "C" fn(seat: *mut libseat, userdata: *mut ::std::os::raw::c_void),
>,
}
extern "C" {
pub fn libseat_open_seat(
listener: *mut libseat_seat_listener,
userdata: *mut ::std::os::raw::c_void,
) -> *mut libseat;
}
extern "C" {
pub fn libseat_disable_seat(seat: *mut libseat) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn libseat_close_seat(seat: *mut libseat) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn libseat_open_device(
seat: *mut libseat,
path: *const ::std::os::raw::c_char,
fd: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn libseat_close_device(
seat: *mut libseat,
device_id: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn libseat_seat_name(seat: *mut libseat) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn libseat_switch_session(
seat: *mut libseat,
session: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn libseat_get_fd(seat: *mut libseat) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn libseat_dispatch(
seat: *mut libseat,
timeout: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub const libseat_log_level_LIBSEAT_LOG_LEVEL_SILENT: libseat_log_level = 0;
pub const libseat_log_level_LIBSEAT_LOG_LEVEL_ERROR: libseat_log_level = 1;
pub const libseat_log_level_LIBSEAT_LOG_LEVEL_INFO: libseat_log_level = 2;
pub const libseat_log_level_LIBSEAT_LOG_LEVEL_DEBUG: libseat_log_level = 3;
pub const libseat_log_level_LIBSEAT_LOG_LEVEL_LAST: libseat_log_level = 4;
pub type libseat_log_level = ::std::os::raw::c_uint;
extern "C" {
pub fn libseat_set_log_level(level: libseat_log_level);
}