ifs: rename data transfer interfaces
This commit is contained in:
parent
f9e8d614ce
commit
5cb7b5973f
21 changed files with 223 additions and 223 deletions
|
|
@ -3,7 +3,7 @@ use {
|
|||
client::{Client, ClientError, ClientId},
|
||||
ifs::{
|
||||
data_transfer::{
|
||||
DeviceData, IpcVtable, IterableIpcVtable, OfferData, Role, break_device_loops,
|
||||
DeviceData, TransferVtable, IterableTransferVtable, OfferData, Role, break_device_loops,
|
||||
destroy_data_device, zwp_primary_selection_offer_v1::ZwpPrimarySelectionOfferV1,
|
||||
zwp_primary_selection_source_v1::ZwpPrimarySelectionSourceV1,
|
||||
},
|
||||
|
|
@ -89,16 +89,16 @@ impl ZwpPrimarySelectionDeviceV1RequestHandler for ZwpPrimarySelectionDeviceV1 {
|
|||
}
|
||||
|
||||
fn destroy(&self, _req: Destroy, _slf: &Rc<Self>) -> Result<(), Self::Error> {
|
||||
destroy_data_device::<PrimarySelectionIpc>(self);
|
||||
destroy_data_device::<PrimarySelectionTransfer>(self);
|
||||
self.seat.remove_primary_selection_device(self);
|
||||
self.client.remove_obj(self)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
pub struct PrimarySelectionIpc;
|
||||
pub struct PrimarySelectionTransfer;
|
||||
|
||||
impl IterableIpcVtable for PrimarySelectionIpc {
|
||||
impl IterableTransferVtable for PrimarySelectionTransfer {
|
||||
fn for_each_device<C>(seat: &WlSeatGlobal, client: ClientId, f: C)
|
||||
where
|
||||
C: FnMut(&Rc<Self::Device>),
|
||||
|
|
@ -107,7 +107,7 @@ impl IterableIpcVtable for PrimarySelectionIpc {
|
|||
}
|
||||
}
|
||||
|
||||
impl IpcVtable for PrimarySelectionIpc {
|
||||
impl TransferVtable for PrimarySelectionTransfer {
|
||||
type Device = ZwpPrimarySelectionDeviceV1;
|
||||
type Source = ZwpPrimarySelectionSourceV1;
|
||||
type Offer = ZwpPrimarySelectionOfferV1;
|
||||
|
|
@ -162,7 +162,7 @@ object_base! {
|
|||
|
||||
impl Object for ZwpPrimarySelectionDeviceV1 {
|
||||
fn break_loops(&self) {
|
||||
break_device_loops::<PrimarySelectionIpc>(self);
|
||||
break_device_loops::<PrimarySelectionTransfer>(self);
|
||||
self.seat.remove_primary_selection_device(self);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue