Skip to content

Commit 56d48e1

Browse files
committed
feat(dvc): add API to attach dynamic channels to already created DrdynvcClient instacnce
1 parent abf6368 commit 56d48e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/ironrdp-dvc/src/client.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ impl DrdynvcClient {
6262
self
6363
}
6464

65+
pub fn attach_dynamic_channel<T>(&mut self, channel: T)
66+
where
67+
T: DvcProcessor + 'static,
68+
{
69+
self.dynamic_channels.insert(channel);
70+
}
71+
6572
pub fn get_dvc_by_type_id<T>(&self) -> Option<&DynamicVirtualChannel>
6673
where
6774
T: DvcProcessor,

0 commit comments

Comments
 (0)