data-control: remove wlr-specific code
This commit is contained in:
parent
40f7bc2542
commit
dfc0a11935
12 changed files with 120 additions and 99 deletions
21
src/ifs/ipc/data_control.rs
Normal file
21
src/ifs/ipc/data_control.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
use {
|
||||
crate::ifs::ipc::{DynDataSource, IpcLocation},
|
||||
std::rc::Rc,
|
||||
};
|
||||
|
||||
pub mod zwlr_data_control_device_v1;
|
||||
pub mod zwlr_data_control_manager_v1;
|
||||
pub mod zwlr_data_control_offer_v1;
|
||||
pub mod zwlr_data_control_source_v1;
|
||||
|
||||
linear_ids!(DataControlDeviceIds, DataControlDeviceId, u64);
|
||||
|
||||
pub trait DynDataControlDevice {
|
||||
fn id(&self) -> DataControlDeviceId;
|
||||
|
||||
fn handle_new_source(
|
||||
self: Rc<Self>,
|
||||
location: IpcLocation,
|
||||
source: Option<Rc<dyn DynDataSource>>,
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue