mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Move channel event constants to constants.h
This commit is contained in:
@@ -76,4 +76,20 @@ enum RDP_SVC_CHANNEL_OPTION
|
||||
CHANNEL_OPTION_INITIALIZED = 0x80000000
|
||||
};
|
||||
|
||||
/**
|
||||
* Static Virtual Channel Events
|
||||
*/
|
||||
enum RDP_SVC_CHANNEL_EVENT
|
||||
{
|
||||
CHANNEL_EVENT_INITIALIZED = 0,
|
||||
CHANNEL_EVENT_CONNECTED = 1,
|
||||
CHANNEL_EVENT_V1_CONNECTED = 2,
|
||||
CHANNEL_EVENT_DISCONNECTED = 3,
|
||||
CHANNEL_EVENT_TERMINATED = 4,
|
||||
CHANNEL_EVENT_DATA_RECEIVED = 10,
|
||||
CHANNEL_EVENT_WRITE_COMPLETE = 11,
|
||||
CHANNEL_EVENT_WRITE_CANCELLED = 12,
|
||||
CHANNEL_EVENT_USER = 1000
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,20 +45,11 @@ typedef CHANNEL_DEF** PPCHANNEL_DEF;
|
||||
typedef void (FREERDP_CC * PCHANNEL_INIT_EVENT_FN)(void* pInitHandle,
|
||||
uint32 event, void* pData, uint32 dataLength);
|
||||
|
||||
#define CHANNEL_EVENT_INITIALIZED 0
|
||||
#define CHANNEL_EVENT_CONNECTED 1
|
||||
#define CHANNEL_EVENT_V1_CONNECTED 2
|
||||
#define CHANNEL_EVENT_DISCONNECTED 3
|
||||
#define CHANNEL_EVENT_TERMINATED 4
|
||||
|
||||
typedef void (FREERDP_CC * PCHANNEL_OPEN_EVENT_FN)(uint32 openHandle,
|
||||
uint32 event, void* pData, uint32 dataLength,
|
||||
uint32 totalLength, uint32 dataFlags);
|
||||
|
||||
#define CHANNEL_EVENT_DATA_RECEIVED 10
|
||||
#define CHANNEL_EVENT_WRITE_COMPLETE 11
|
||||
#define CHANNEL_EVENT_WRITE_CANCELLED 12
|
||||
|
||||
#define CHANNEL_RC_OK 0
|
||||
#define CHANNEL_RC_ALREADY_INITIALIZED 1
|
||||
#define CHANNEL_RC_NOT_INITIALIZED 2
|
||||
|
||||
Reference in New Issue
Block a user