mirror of https://github.com/FreeRDP/FreeRDP
Expose dynamic channel PDU types
This commit is contained in:
parent
5a2231172c
commit
4e44003832
|
@ -101,12 +101,6 @@ enum _DRDYNVC_STATE
|
||||||
};
|
};
|
||||||
typedef enum _DRDYNVC_STATE DRDYNVC_STATE;
|
typedef enum _DRDYNVC_STATE DRDYNVC_STATE;
|
||||||
|
|
||||||
#define CREATE_REQUEST_PDU 0x01
|
|
||||||
#define DATA_FIRST_PDU 0x02
|
|
||||||
#define DATA_PDU 0x03
|
|
||||||
#define CLOSE_REQUEST_PDU 0x04
|
|
||||||
#define CAPABILITY_REQUEST_PDU 0x05
|
|
||||||
|
|
||||||
struct drdynvc_plugin
|
struct drdynvc_plugin
|
||||||
{
|
{
|
||||||
CHANNEL_DEF channelDef;
|
CHANNEL_DEF channelDef;
|
||||||
|
|
|
@ -27,4 +27,13 @@
|
||||||
|
|
||||||
#define DRDYNVC_SVC_CHANNEL_NAME "drdynvc"
|
#define DRDYNVC_SVC_CHANNEL_NAME "drdynvc"
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
CREATE_REQUEST_PDU = 0x01,
|
||||||
|
DATA_FIRST_PDU = 0x02,
|
||||||
|
DATA_PDU = 0x03,
|
||||||
|
CLOSE_REQUEST_PDU = 0x04,
|
||||||
|
CAPABILITY_REQUEST_PDU = 0x05
|
||||||
|
} DynamicChannelPDU;
|
||||||
|
|
||||||
#endif /* FREERDP_CHANNEL_DRDYNVC_H */
|
#endif /* FREERDP_CHANNEL_DRDYNVC_H */
|
||||||
|
|
|
@ -111,8 +111,7 @@ struct proxy_plugin
|
||||||
struct proxy_plugins_manager
|
struct proxy_plugins_manager
|
||||||
{
|
{
|
||||||
/* 0 used for registering a fresh new proxy plugin. */
|
/* 0 used for registering a fresh new proxy plugin. */
|
||||||
BOOL(*RegisterPlugin)
|
BOOL (*RegisterPlugin)(struct proxy_plugins_manager* mgr, const proxyPlugin* plugin);
|
||||||
(struct proxy_plugins_manager* mgr, const proxyPlugin* plugin);
|
|
||||||
|
|
||||||
/* 1 used for setting plugin's per-session info. */
|
/* 1 used for setting plugin's per-session info. */
|
||||||
BOOL (*SetPluginData)(struct proxy_plugins_manager* mgr, const char*, proxyData*, void*);
|
BOOL (*SetPluginData)(struct proxy_plugins_manager* mgr, const char*, proxyData*, void*);
|
||||||
|
|
|
@ -35,12 +35,6 @@ typedef struct WTSVirtualChannelManager WTSVirtualChannelManager;
|
||||||
#include "rdp.h"
|
#include "rdp.h"
|
||||||
#include "mcs.h"
|
#include "mcs.h"
|
||||||
|
|
||||||
#define CREATE_REQUEST_PDU 0x01
|
|
||||||
#define DATA_FIRST_PDU 0x02
|
|
||||||
#define DATA_PDU 0x03
|
|
||||||
#define CLOSE_REQUEST_PDU 0x04
|
|
||||||
#define CAPABILITY_REQUEST_PDU 0x05
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
RDP_PEER_CHANNEL_TYPE_SVC = 0,
|
RDP_PEER_CHANNEL_TYPE_SVC = 0,
|
||||||
|
|
|
@ -328,7 +328,7 @@ static BOOL pf_client_receive_channel_data_hook(freerdp* instance, UINT16 channe
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
cmd = data[0] >> 4;
|
cmd = data[0] >> 4;
|
||||||
if (cmd == 0x01)
|
if (cmd == CREATE_REQUEST_PDU)
|
||||||
{
|
{
|
||||||
proxyChannelDataEventInfo dev;
|
proxyChannelDataEventInfo dev;
|
||||||
size_t len, nameLen;
|
size_t len, nameLen;
|
||||||
|
|
Loading…
Reference in New Issue