|
2 | 2 | crate::{ |
3 | 3 | client::{Client, ClientError}, |
4 | 4 | ifs::{ |
5 | | - color_management::wp_image_description_v1::WpImageDescriptionV1, |
| 5 | + color_management::{ |
| 6 | + wp_image_description_reference_v1::WpImageDescriptionReferenceV1, |
| 7 | + wp_image_description_v1::WpImageDescriptionV1, |
| 8 | + }, |
6 | 9 | ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1, |
7 | 10 | ext_image_capture_source_v1::ExtImageCaptureSourceV1, |
8 | 11 | ext_image_copy::ext_image_copy_capture_session_v1::ExtImageCopyCaptureSessionV1, |
@@ -48,10 +51,11 @@ use { |
48 | 51 | ExtImageCopyCaptureSessionV1Id, ExtWorkspaceGroupHandleV1Id, JayHeadErrorV1Id, |
49 | 52 | JayOutputId, JayScreencastId, JayToplevelId, JayWorkspaceId, WlBufferId, |
50 | 53 | WlDataSourceId, WlOutputId, WlPointerId, WlRegionId, WlRegistryId, WlSeatId, |
51 | | - WlSurfaceId, WpDrmLeaseConnectorV1Id, WpImageDescriptionV1Id, |
52 | | - WpLinuxDrmSyncobjTimelineV1Id, XdgPopupId, XdgPositionerId, XdgSurfaceId, |
53 | | - XdgToplevelId, XdgWmBaseId, ZwlrDataControlSourceV1Id, ZwlrOutputHeadV1Id, |
54 | | - ZwlrOutputModeV1Id, ZwpPrimarySelectionSourceV1Id, ZwpTabletToolV2Id, |
| 54 | + WlSurfaceId, WpDrmLeaseConnectorV1Id, WpImageDescriptionReferenceV1Id, |
| 55 | + WpImageDescriptionV1Id, WpLinuxDrmSyncobjTimelineV1Id, XdgPopupId, XdgPositionerId, |
| 56 | + XdgSurfaceId, XdgToplevelId, XdgWmBaseId, ZwlrDataControlSourceV1Id, |
| 57 | + ZwlrOutputHeadV1Id, ZwlrOutputModeV1Id, ZwpPrimarySelectionSourceV1Id, |
| 58 | + ZwpTabletToolV2Id, |
55 | 59 | }, |
56 | 60 | }, |
57 | 61 | std::{cell::RefCell, rc::Rc}, |
@@ -94,6 +98,8 @@ pub struct Objects { |
94 | 98 | pub ext_workspace_groups: |
95 | 99 | CopyHashMap<ExtWorkspaceGroupHandleV1Id, Rc<ExtWorkspaceGroupHandleV1>>, |
96 | 100 | pub wp_image_description: CopyHashMap<WpImageDescriptionV1Id, Rc<WpImageDescriptionV1>>, |
| 101 | + pub wp_image_description_reference: |
| 102 | + CopyHashMap<WpImageDescriptionReferenceV1Id, Rc<WpImageDescriptionReferenceV1>>, |
97 | 103 | pub jay_head_errors: CopyHashMap<JayHeadErrorV1Id, Rc<JayHeadErrorV1>>, |
98 | 104 | ids: RefCell<Vec<usize>>, |
99 | 105 | } |
@@ -136,6 +142,7 @@ impl Objects { |
136 | 142 | ext_data_sources: Default::default(), |
137 | 143 | ext_workspace_groups: Default::default(), |
138 | 144 | wp_image_description: Default::default(), |
| 145 | + wp_image_description_reference: Default::default(), |
139 | 146 | jay_head_errors: Default::default(), |
140 | 147 | ids: RefCell::new(vec![]), |
141 | 148 | } |
@@ -182,6 +189,8 @@ impl Objects { |
182 | 189 | self.ext_data_sources.clear(); |
183 | 190 | self.ext_workspace_groups.clear(); |
184 | 191 | self.jay_head_errors.clear(); |
| 192 | + self.wp_image_description.clear(); |
| 193 | + self.wp_image_description_reference.clear(); |
185 | 194 | } |
186 | 195 |
|
187 | 196 | pub fn id<T>(&self, client_data: &Client) -> Result<T, ClientError> |
|
0 commit comments