Compare commits

..

2 commits

Author SHA1 Message Date
chayleaf 847bcd44d9
changes 2024-08-14 11:00:40 +07:00
chayleaf 890728865b
sway_terminate -> ! 2024-08-14 09:36:56 +07:00
2 changed files with 760 additions and 1023 deletions

View file

@ -11,80 +11,56 @@ 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] = unsafe {
[
ptr::addr_of!(ext_idle_notification_v1_interface),
0 as *const wl_interface,
ptr::addr_of!(wl_seat_interface).cast(),
]
};
static mut ext_idle_notify_v1_types: [*const wl_interface; 3] = [
ptr::addr_of!(ext_idle_notification_v1_interface),
ptr::null(),
ptr::addr_of!(wl_seat_interface).cast(),
];
static mut ext_idle_notifier_v1_requests: [wl_message; 2] = [
wl_message {
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)
},
name: b"destroy\0".as_ptr().cast(),
signature: b"\0".as_ptr().cast(),
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
},
wl_message {
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)
},
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() },
},
];
#[no_mangle]
pub static mut ext_idle_notifier_v1_interface: wl_interface = wl_interface {
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,
name: b"ext_idle_notifier_v1\0".as_ptr().cast(),
version: 1,
request_count: 2,
requests: unsafe { ext_idle_notifier_v1_requests.as_ptr() },
event_count: 0 as libc::c_int,
events: 0 as *const wl_message,
event_count: 0,
events: ptr::null(),
};
static mut ext_idle_notification_v1_requests: [wl_message; 1] = [wl_message {
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)
},
name: b"destroy\0".as_ptr().cast(),
signature: b"\0".as_ptr().cast(),
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
}];
static mut ext_idle_notification_v1_events: [wl_message; 2] = [
wl_message {
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)
},
name: b"idled\0".as_ptr().cast(),
signature: b"\0".as_ptr().cast(),
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
},
wl_message {
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)
},
name: b"resumed\0".as_ptr().cast(),
signature: b"\0".as_ptr().cast(),
types: unsafe { ext_idle_notify_v1_types.as_mut_ptr() },
},
];
#[no_mangle]
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(),
}
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() },
};

File diff suppressed because it is too large Load diff