dechunker: Create separate module for dechunking

The code in xrdp_channel.c to handle dechunking on a virtual channel is
moved to a separate module to allow for better sharing of logic.
This commit is contained in:
matt335672
2026-07-17 11:57:30 +01:00
parent de284747ae
commit be95ba3017
5 changed files with 514 additions and 60 deletions
+3 -1
View File
@@ -151,6 +151,8 @@ struct xrdp_drdynvc
int (*data)(struct xrdp_process *id, int chan_id, char *data, int bytes);
};
struct vc_dechunker; // Forward declaration
/* channel */
struct xrdp_channel
{
@@ -158,7 +160,7 @@ struct xrdp_channel
struct xrdp_mcs *mcs_layer;
int drdynvc_channel_id;
int drdynvc_state;
struct stream *s;
struct vc_dechunker *drdynvc_dc;
struct xrdp_drdynvc drdynvcs[256];
};