Skip to content

Commit 0b7a490

Browse files
PolyMeilexDrakulix
authored andcommitted
Delegate macro cleanup
1 parent d40ada5 commit 0b7a490

File tree

42 files changed

+1305
-577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1305
-577
lines changed

src/wayland/compositor/mod.rs

Lines changed: 48 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -727,32 +727,54 @@ impl CompositorState {
727727
#[macro_export]
728728
macro_rules! delegate_compositor {
729729
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => {
730-
$crate::reexports::wayland_server::delegate_global_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
731-
$crate::reexports::wayland_server::protocol::wl_compositor::WlCompositor: ()
732-
] => $crate::wayland::compositor::CompositorState);
733-
$crate::reexports::wayland_server::delegate_global_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
734-
$crate::reexports::wayland_server::protocol::wl_subcompositor::WlSubcompositor: ()
735-
] => $crate::wayland::compositor::CompositorState);
736-
737-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
738-
$crate::reexports::wayland_server::protocol::wl_compositor::WlCompositor: ()
739-
] => $crate::wayland::compositor::CompositorState);
740-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
741-
$crate::reexports::wayland_server::protocol::wl_surface::WlSurface: $crate::wayland::compositor::SurfaceUserData
742-
] => $crate::wayland::compositor::CompositorState);
743-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
744-
$crate::reexports::wayland_server::protocol::wl_region::WlRegion: $crate::wayland::compositor::RegionUserData
745-
] => $crate::wayland::compositor::CompositorState);
746-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
747-
$crate::reexports::wayland_server::protocol::wl_callback::WlCallback: ()
748-
] => $crate::wayland::compositor::CompositorState);
749-
// WlSubcompositor
750-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
751-
$crate::reexports::wayland_server::protocol::wl_subcompositor::WlSubcompositor: ()
752-
] => $crate::wayland::compositor::CompositorState);
753-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
754-
$crate::reexports::wayland_server::protocol::wl_subsurface::WlSubsurface: $crate::wayland::compositor::SubsurfaceUserData
755-
] => $crate::wayland::compositor::CompositorState);
730+
const _: () = {
731+
use $crate::{
732+
reexports::wayland_server::{
733+
delegate_dispatch, delegate_global_dispatch,
734+
protocol::{
735+
wl_callback::WlCallback, wl_compositor::WlCompositor, wl_region::WlRegion,
736+
wl_subcompositor::WlSubcompositor, wl_subsurface::WlSubsurface,
737+
wl_surface::WlSurface,
738+
},
739+
},
740+
wayland::compositor::{CompositorState, RegionUserData, SubsurfaceUserData, SurfaceUserData},
741+
};
742+
743+
delegate_global_dispatch!(
744+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
745+
$ty: [WlCompositor: ()] => CompositorState
746+
);
747+
delegate_global_dispatch!(
748+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
749+
$ty: [WlSubcompositor: ()] => CompositorState
750+
);
751+
752+
delegate_dispatch!(
753+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
754+
$ty: [WlCompositor: ()] => CompositorState
755+
);
756+
delegate_dispatch!(
757+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
758+
$ty: [WlSurface: SurfaceUserData] => CompositorState
759+
);
760+
delegate_dispatch!(
761+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
762+
$ty: [WlRegion: RegionUserData] => CompositorState
763+
);
764+
delegate_dispatch!(
765+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
766+
$ty: [WlCallback: ()] => CompositorState
767+
);
768+
769+
delegate_dispatch!(
770+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
771+
$ty: [WlSubcompositor: ()] => CompositorState
772+
);
773+
delegate_dispatch!(
774+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
775+
$ty: [WlSubsurface: SubsurfaceUserData] => CompositorState
776+
);
777+
};
756778
};
757779
}
758780

src/wayland/content_type/mod.rs

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -178,27 +178,32 @@ impl ContentTypeState {
178178
#[macro_export]
179179
macro_rules! delegate_content_type {
180180
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => {
181-
type __WpContentTypeManagerV1 =
182-
$crate::reexports::wayland_protocols::wp::content_type::v1::server::wp_content_type_manager_v1::WpContentTypeManagerV1;
183-
type __WpContentTypeV1 =
184-
$crate::reexports::wayland_protocols::wp::content_type::v1::server::wp_content_type_v1::WpContentTypeV1;
185-
186-
$crate::reexports::wayland_server::delegate_global_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty:
187-
[
188-
__WpContentTypeManagerV1: ()
189-
] => $crate::wayland::content_type::ContentTypeState
190-
);
191-
192-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty:
193-
[
194-
__WpContentTypeManagerV1: ()
195-
] => $crate::wayland::content_type::ContentTypeState
196-
);
197-
198-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty:
199-
[
200-
__WpContentTypeV1: $crate::wayland::content_type::ContentTypeUserData
201-
] => $crate::wayland::content_type::ContentTypeState
202-
);
181+
const _: () = {
182+
use $crate::{
183+
reexports::{
184+
wayland_protocols::wp::content_type::v1::server::{
185+
wp_content_type_manager_v1::WpContentTypeManagerV1,
186+
wp_content_type_v1::WpContentTypeV1,
187+
},
188+
wayland_server::{delegate_dispatch, delegate_global_dispatch},
189+
},
190+
wayland::content_type::{ContentTypeState, ContentTypeUserData},
191+
};
192+
193+
delegate_global_dispatch!(
194+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
195+
$ty: [WpContentTypeManagerV1: ()] => ContentTypeState
196+
);
197+
198+
delegate_dispatch!(
199+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
200+
$ty: [WpContentTypeManagerV1: ()] => ContentTypeState
201+
);
202+
203+
delegate_dispatch!(
204+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
205+
$ty: [WpContentTypeV1: ContentTypeUserData] => ContentTypeState
206+
);
207+
};
203208
};
204209
}

src/wayland/cursor_shape.rs

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,32 @@ fn shape_to_cursor_icon(shape: Shape) -> CursorIcon {
361361
#[macro_export]
362362
macro_rules! delegate_cursor_shape {
363363
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => {
364-
$crate::reexports::wayland_server::delegate_global_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
365-
$crate::reexports::wayland_protocols::wp::cursor_shape::v1::server::wp_cursor_shape_manager_v1::WpCursorShapeManagerV1: ()
366-
] => $crate::wayland::cursor_shape::CursorShapeManagerState);
367-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
368-
$crate::reexports::wayland_protocols::wp::cursor_shape::v1::server::wp_cursor_shape_manager_v1::WpCursorShapeManagerV1: ()
369-
] => $crate::wayland::cursor_shape::CursorShapeManagerState);
370-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
371-
$crate::reexports::wayland_protocols::wp::cursor_shape::v1::server::wp_cursor_shape_device_v1::WpCursorShapeDeviceV1: $crate::wayland::cursor_shape::CursorShapeDeviceUserData<$ty>
372-
] => $crate::wayland::cursor_shape::CursorShapeManagerState);
364+
const _: () = {
365+
use $crate::{
366+
reexports::{
367+
wayland_protocols::wp::cursor_shape::v1::server::{
368+
wp_cursor_shape_device_v1::WpCursorShapeDeviceV1,
369+
wp_cursor_shape_manager_v1::WpCursorShapeManagerV1,
370+
},
371+
wayland_server::{delegate_dispatch, delegate_global_dispatch},
372+
},
373+
wayland::cursor_shape::{CursorShapeDeviceUserData, CursorShapeManagerState},
374+
};
375+
376+
delegate_global_dispatch!(
377+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
378+
$ty: [WpCursorShapeManagerV1: ()] => CursorShapeManagerState
379+
);
380+
381+
delegate_dispatch!(
382+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
383+
$ty: [WpCursorShapeManagerV1: ()] => CursorShapeManagerState
384+
);
385+
386+
delegate_dispatch!(
387+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
388+
$ty: [WpCursorShapeDeviceV1: CursorShapeDeviceUserData<$ty>] => CursorShapeManagerState
389+
);
390+
};
373391
};
374392
}

src/wayland/dmabuf/mod.rs

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,30 +1036,46 @@ pub fn get_dmabuf(buffer: &wl_buffer::WlBuffer) -> Result<&Dmabuf, UnmanagedReso
10361036
#[macro_export]
10371037
macro_rules! delegate_dmabuf {
10381038
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => {
1039-
type __ZwpLinuxDmabufV1 =
1040-
$crate::reexports::wayland_protocols::wp::linux_dmabuf::zv1::server::zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1;
1041-
type __ZwpLinuxBufferParamsV1 =
1042-
$crate::reexports::wayland_protocols::wp::linux_dmabuf::zv1::server::zwp_linux_buffer_params_v1::ZwpLinuxBufferParamsV1;
1043-
type __ZwpLinuxDmabufFeedbackv1 =
1044-
$crate::reexports::wayland_protocols::wp::linux_dmabuf::zv1::server::zwp_linux_dmabuf_feedback_v1::ZwpLinuxDmabufFeedbackV1;
1045-
1046-
$crate::reexports::wayland_server::delegate_global_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
1047-
__ZwpLinuxDmabufV1: $crate::wayland::dmabuf::DmabufGlobalData
1048-
] => $crate::wayland::dmabuf::DmabufState);
1049-
1050-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
1051-
__ZwpLinuxDmabufV1: $crate::wayland::dmabuf::DmabufData
1052-
] => $crate::wayland::dmabuf::DmabufState);
1053-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
1054-
__ZwpLinuxBufferParamsV1: $crate::wayland::dmabuf::DmabufParamsData
1055-
] => $crate::wayland::dmabuf::DmabufState);
1056-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
1057-
$crate::reexports::wayland_server::protocol::wl_buffer::WlBuffer: $crate::backend::allocator::dmabuf::Dmabuf
1058-
] => $crate::wayland::dmabuf::DmabufState);
1059-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
1060-
__ZwpLinuxDmabufFeedbackv1: $crate::wayland::dmabuf::DmabufFeedbackData
1061-
] => $crate::wayland::dmabuf::DmabufState);
1039+
const _: () = {
1040+
use $crate::{
1041+
backend::allocator::dmabuf::Dmabuf,
1042+
reexports::{
1043+
wayland_protocols::wp::linux_dmabuf::zv1::server::{
1044+
zwp_linux_buffer_params_v1::ZwpLinuxBufferParamsV1,
1045+
zwp_linux_dmabuf_feedback_v1::ZwpLinuxDmabufFeedbackV1,
1046+
zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1,
1047+
},
1048+
wayland_server::{
1049+
delegate_dispatch, delegate_global_dispatch, protocol::wl_buffer::WlBuffer,
1050+
},
1051+
},
1052+
wayland::dmabuf::{
1053+
DmabufData, DmabufFeedbackData, DmabufGlobalData, DmabufParamsData, DmabufState,
1054+
},
1055+
};
1056+
1057+
delegate_global_dispatch!(
1058+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1059+
$ty: [ZwpLinuxDmabufV1: DmabufGlobalData] => DmabufState
1060+
);
10621061

1062+
delegate_dispatch!(
1063+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1064+
$ty: [ZwpLinuxDmabufV1: DmabufData] => DmabufState
1065+
);
1066+
delegate_dispatch!(
1067+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1068+
$ty: [ZwpLinuxBufferParamsV1: DmabufParamsData] => DmabufState
1069+
);
1070+
delegate_dispatch!(
1071+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1072+
$ty: [WlBuffer: Dmabuf] => DmabufState
1073+
);
1074+
delegate_dispatch!(
1075+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1076+
$ty: [ZwpLinuxDmabufFeedbackV1: DmabufFeedbackData] => DmabufState
1077+
);
1078+
};
10631079
};
10641080
}
10651081

src/wayland/drm_lease/mod.rs

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -975,31 +975,45 @@ where
975975
#[macro_export]
976976
macro_rules! delegate_drm_lease {
977977
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => {
978-
type __WpDrmLeaseDeviceV1 =
979-
$crate::reexports::wayland_protocols::wp::drm_lease::v1::server::wp_drm_lease_device_v1::WpDrmLeaseDeviceV1;
980-
type __WpDrmLeaseConnectorV1 =
981-
$crate::reexports::wayland_protocols::wp::drm_lease::v1::server::wp_drm_lease_connector_v1::WpDrmLeaseConnectorV1;
982-
type __WpDrmLeaseRequestV1 =
983-
$crate::reexports::wayland_protocols::wp::drm_lease::v1::server::wp_drm_lease_request_v1::WpDrmLeaseRequestV1;
984-
type __WpDrmLeaseV1 =
985-
$crate::reexports::wayland_protocols::wp::drm_lease::v1::server::wp_drm_lease_v1::WpDrmLeaseV1;
986-
987-
$crate::reexports::wayland_server::delegate_global_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
988-
__WpDrmLeaseDeviceV1: $crate::wayland::drm_lease::DrmLeaseDeviceGlobalData
989-
] => $crate::wayland::drm_lease::DrmLeaseState);
990-
991-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
992-
__WpDrmLeaseConnectorV1: $crate::backend::drm::DrmNode
993-
] => $crate::wayland::drm_lease::DrmLeaseState);
994-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
995-
__WpDrmLeaseDeviceV1: $crate::backend::drm::DrmNode
996-
] => $crate::wayland::drm_lease::DrmLeaseState);
997-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
998-
__WpDrmLeaseRequestV1: $crate::wayland::drm_lease::DrmLeaseRequestData
999-
] => $crate::wayland::drm_lease::DrmLeaseState);
1000-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
1001-
__WpDrmLeaseV1: $crate::wayland::drm_lease::DrmLeaseData
1002-
] => $crate::wayland::drm_lease::DrmLeaseState);
978+
const _: () = {
979+
use $crate::{
980+
backend::drm::DrmNode,
981+
reexports::{
982+
wayland_protocols::wp::drm_lease::v1::server::{
983+
wp_drm_lease_connector_v1::WpDrmLeaseConnectorV1,
984+
wp_drm_lease_device_v1::WpDrmLeaseDeviceV1,
985+
wp_drm_lease_request_v1::WpDrmLeaseRequestV1, wp_drm_lease_v1::WpDrmLeaseV1,
986+
},
987+
wayland_server::{
988+
delegate_dispatch, delegate_global_dispatch, protocol::wl_buffer::WlBuffer,
989+
},
990+
},
991+
wayland::drm_lease::{
992+
DrmLeaseData, DrmLeaseDeviceGlobalData, DrmLeaseRequestData, DrmLeaseState,
993+
},
994+
};
1003995

996+
delegate_global_dispatch!(
997+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
998+
$ty: [WpDrmLeaseDeviceV1: DrmLeaseDeviceGlobalData] => DrmLeaseState
999+
);
1000+
1001+
delegate_dispatch!(
1002+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1003+
$ty: [WpDrmLeaseConnectorV1: DrmNode] => DrmLeaseState
1004+
);
1005+
delegate_dispatch!(
1006+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1007+
$ty: [WpDrmLeaseDeviceV1: DrmNode] => DrmLeaseState
1008+
);
1009+
delegate_dispatch!(
1010+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1011+
$ty: [WpDrmLeaseRequestV1: DrmLeaseRequestData] => DrmLeaseState
1012+
);
1013+
delegate_dispatch!(
1014+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
1015+
$ty: [WpDrmLeaseV1: DrmLeaseData] => DrmLeaseState
1016+
);
1017+
};
10041018
};
10051019
}

src/wayland/drm_syncobj/mod.rs

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -499,17 +499,41 @@ impl<D: DrmSyncobjHandler> Dispatch<WpLinuxDrmSyncobjTimelineV1, DrmSyncobjTimel
499499
#[macro_export]
500500
macro_rules! delegate_drm_syncobj {
501501
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => {
502-
$crate::reexports::wayland_server::delegate_global_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
503-
$crate::reexports::wayland_protocols::wp::linux_drm_syncobj::v1::server::wp_linux_drm_syncobj_manager_v1::WpLinuxDrmSyncobjManagerV1: $crate::wayland::drm_syncobj::DrmSyncobjGlobalData
504-
] => $crate::wayland::drm_syncobj::DrmSyncobjState);
505-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
506-
$crate::reexports::wayland_protocols::wp::linux_drm_syncobj::v1::server::wp_linux_drm_syncobj_manager_v1::WpLinuxDrmSyncobjManagerV1: ()
507-
] => $crate::wayland::drm_syncobj::DrmSyncobjState);
508-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
509-
$crate::reexports::wayland_protocols::wp::linux_drm_syncobj::v1::server::wp_linux_drm_syncobj_surface_v1::WpLinuxDrmSyncobjSurfaceV1: $crate::wayland::drm_syncobj::DrmSyncobjSurfaceData
510-
] => $crate::wayland::drm_syncobj::DrmSyncobjState);
511-
$crate::reexports::wayland_server::delegate_dispatch!($(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $ty: [
512-
$crate::reexports::wayland_protocols::wp::linux_drm_syncobj::v1::server::wp_linux_drm_syncobj_timeline_v1::WpLinuxDrmSyncobjTimelineV1: $crate::wayland::drm_syncobj::DrmSyncobjTimelineData
513-
] => $crate::wayland::drm_syncobj::DrmSyncobjState);
514-
}
502+
const _: () = {
503+
use $crate::{
504+
backend::drm::DrmNode,
505+
reexports::{
506+
wayland_protocols::wp::linux_drm_syncobj::v1::server::{
507+
wp_linux_drm_syncobj_manager_v1::WpLinuxDrmSyncobjManagerV1,
508+
wp_linux_drm_syncobj_surface_v1::WpLinuxDrmSyncobjSurfaceV1,
509+
wp_linux_drm_syncobj_timeline_v1::WpLinuxDrmSyncobjTimelineV1,
510+
},
511+
wayland_server::{
512+
delegate_dispatch, delegate_global_dispatch, protocol::wl_buffer::WlBuffer,
513+
},
514+
},
515+
wayland::drm_syncobj::{
516+
DrmSyncobjGlobalData, DrmSyncobjState, DrmSyncobjSurfaceData, DrmSyncobjTimelineData,
517+
},
518+
};
519+
520+
delegate_global_dispatch!(
521+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
522+
$ty: [WpLinuxDrmSyncobjManagerV1: DrmSyncobjGlobalData] => DrmSyncobjState
523+
);
524+
525+
delegate_dispatch!(
526+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
527+
$ty: [WpLinuxDrmSyncobjManagerV1: ()] => DrmSyncobjState
528+
);
529+
delegate_dispatch!(
530+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
531+
$ty: [WpLinuxDrmSyncobjSurfaceV1: DrmSyncobjSurfaceData] => DrmSyncobjState
532+
);
533+
delegate_dispatch!(
534+
$(@< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)?
535+
$ty: [WpLinuxDrmSyncobjTimelineV1: DrmSyncobjTimelineData] => DrmSyncobjState
536+
);
537+
};
538+
};
515539
}

0 commit comments

Comments
 (0)