refactor(core): move Encode/Decode to core

ironrdp-pdu contains lots of code that we don’t actually need in other crates such as the virtual channels.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-08-27 11:18:49 +04:00 committed by Benoît Cortier
parent ab5760d47b
commit 402ffd56c9
197 changed files with 575 additions and 457 deletions

View file

@ -17,11 +17,11 @@ use std::marker::PhantomData;
use bitflags::bitflags;
use ironrdp_core::{assert_obj_safe, DecodeResult, EncodeResult, ReadCursor, WriteBuf, WriteCursor};
use ironrdp_core::{decode_cursor, encode_buf, Encode};
use ironrdp_pdu::gcc::{ChannelName, ChannelOptions};
use ironrdp_pdu::{decode_err, mcs, PduResult};
use pdu::gcc::ChannelDef;
use pdu::rdp::vc::ChannelControlFlags;
use pdu::{decode_cursor, encode_buf, Encode};
/// The integer type representing a static virtual channel ID.
pub type StaticChannelId = u16;