Compare commits
No commits in common. "847bcd44d9a7002effcebadbc591e8063ae7a71f" and "7bd10bbfd576b520bdfaaa5298bb50312637d62a" have entirely different histories.
847bcd44d9
...
7bd10bbfd5
|
@ -11,56 +11,80 @@ use std::ptr;
|
|||
|
||||
use wayland_client::protocol::__interfaces::wl_seat_interface;
|
||||
use wayland_sys::common::{wl_interface, wl_message};
|
||||
static mut ext_idle_notify_v1_types: [*const wl_interface; 3] = [
|
||||
static mut ext_idle_notify_v1_types: [*const wl_interface; 3] = unsafe {
|
||||
[
|
||||
ptr::addr_of!(ext_idle_notification_v1_interface),
|
||||
ptr::null(),
|
||||
0 as *const wl_interface,
|
||||
ptr::addr_of!(wl_seat_interface).cast(),
|
||||
];
|
||||
]
|
||||
};
|
||||
static mut ext_idle_notifier_v1_requests: [wl_message; 2] = [
|
||||
wl_message {
|
||||
name: b"destroy\0".as_ptr().cast(),
|
||||
signature: b"\0".as_ptr().cast(),
|
||||
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
|
||||
name: (b"destroy\0" as *const u8).cast::<libc::c_char>(),
|
||||
signature: (b"\0" as *const u8).cast::<libc::c_char>(),
|
||||
types: unsafe {
|
||||
ext_idle_notify_v1_types
|
||||
.as_mut_ptr()
|
||||
.offset(0 as libc::c_int as isize)
|
||||
},
|
||||
},
|
||||
wl_message {
|
||||
name: b"get_idle_notification\0".as_ptr().cast(),
|
||||
signature: b"nuo\0".as_ptr().cast(),
|
||||
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
|
||||
name: (b"get_idle_notification\0" as *const u8).cast::<libc::c_char>(),
|
||||
signature: (b"nuo\0" as *const u8).cast::<libc::c_char>(),
|
||||
types: unsafe {
|
||||
ext_idle_notify_v1_types
|
||||
.as_mut_ptr()
|
||||
.offset(0 as libc::c_int as isize)
|
||||
},
|
||||
},
|
||||
];
|
||||
#[no_mangle]
|
||||
pub static mut ext_idle_notifier_v1_interface: wl_interface = wl_interface {
|
||||
name: b"ext_idle_notifier_v1\0".as_ptr().cast(),
|
||||
version: 1,
|
||||
request_count: 2,
|
||||
name: (b"ext_idle_notifier_v1\0" as *const u8).cast::<libc::c_char>(),
|
||||
version: 1 as libc::c_int,
|
||||
request_count: 2 as libc::c_int,
|
||||
requests: unsafe { ext_idle_notifier_v1_requests.as_ptr() },
|
||||
event_count: 0,
|
||||
events: ptr::null(),
|
||||
event_count: 0 as libc::c_int,
|
||||
events: 0 as *const wl_message,
|
||||
};
|
||||
|
||||
static mut ext_idle_notification_v1_requests: [wl_message; 1] = [wl_message {
|
||||
name: b"destroy\0".as_ptr().cast(),
|
||||
signature: b"\0".as_ptr().cast(),
|
||||
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
|
||||
name: (b"destroy\0" as *const u8).cast::<libc::c_char>(),
|
||||
signature: (b"\0" as *const u8).cast::<libc::c_char>(),
|
||||
types: unsafe {
|
||||
ext_idle_notify_v1_types
|
||||
.as_mut_ptr()
|
||||
.offset(0 as libc::c_int as isize)
|
||||
},
|
||||
}];
|
||||
static mut ext_idle_notification_v1_events: [wl_message; 2] = [
|
||||
wl_message {
|
||||
name: b"idled\0".as_ptr().cast(),
|
||||
signature: b"\0".as_ptr().cast(),
|
||||
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
|
||||
name: (b"idled\0" as *const u8).cast::<libc::c_char>(),
|
||||
signature: (b"\0" as *const u8).cast::<libc::c_char>(),
|
||||
types: unsafe {
|
||||
ext_idle_notify_v1_types
|
||||
.as_mut_ptr()
|
||||
.offset(0 as libc::c_int as isize)
|
||||
},
|
||||
},
|
||||
wl_message {
|
||||
name: b"resumed\0".as_ptr().cast(),
|
||||
signature: b"\0".as_ptr().cast(),
|
||||
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
|
||||
name: (b"resumed\0" as *const u8).cast::<libc::c_char>(),
|
||||
signature: (b"\0" as *const u8).cast::<libc::c_char>(),
|
||||
types: unsafe {
|
||||
ext_idle_notify_v1_types
|
||||
.as_mut_ptr()
|
||||
.offset(0 as libc::c_int as isize)
|
||||
},
|
||||
},
|
||||
];
|
||||
#[no_mangle]
|
||||
pub static ext_idle_notification_v1_interface: wl_interface = wl_interface {
|
||||
name: b"ext_idle_notification_v1\0".as_ptr().cast(),
|
||||
version: 1,
|
||||
request_count: 1,
|
||||
requests: unsafe { ext_idle_notification_v1_requests.as_ptr() },
|
||||
event_count: 2,
|
||||
events: unsafe { ext_idle_notification_v1_events.as_ptr() },
|
||||
pub static mut ext_idle_notification_v1_interface: wl_interface = unsafe {
|
||||
wl_interface {
|
||||
name: (b"ext_idle_notification_v1\0" as *const u8).cast::<libc::c_char>(),
|
||||
version: 1 as libc::c_int,
|
||||
request_count: 1 as libc::c_int,
|
||||
requests: ext_idle_notification_v1_requests.as_ptr(),
|
||||
event_count: 2 as libc::c_int,
|
||||
events: ext_idle_notification_v1_events.as_ptr(),
|
||||
}
|
||||
};
|
||||
|
|
1687
src/main.rs
1687
src/main.rs
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue