[core,caps] added rdp_input_flag_string
This commit is contained in:
parent
a65722166e
commit
195d665af6
@ -4621,3 +4621,31 @@ BOOL rdp_send_confirm_active(rdpRdp* rdp)
|
||||
Stream_Release(s);
|
||||
return status;
|
||||
}
|
||||
|
||||
const char* rdp_input_flag_string(UINT16 flags, char* buffer, size_t len)
|
||||
{
|
||||
char prefix[16] = { 0 };
|
||||
|
||||
_snprintf(prefix, sizeof(prefix), "[0x%04" PRIx16 "][", flags);
|
||||
winpr_str_append(prefix, buffer, len, "");
|
||||
if ((flags & INPUT_FLAG_SCANCODES) != 0)
|
||||
winpr_str_append("INPUT_FLAG_SCANCODES", buffer, len, "|");
|
||||
if ((flags & INPUT_FLAG_MOUSEX) != 0)
|
||||
winpr_str_append("INPUT_FLAG_MOUSEX", buffer, len, "|");
|
||||
if ((flags & INPUT_FLAG_FASTPATH_INPUT) != 0)
|
||||
winpr_str_append("INPUT_FLAG_FASTPATH_INPUT", buffer, len, "|");
|
||||
if ((flags & INPUT_FLAG_UNICODE) != 0)
|
||||
winpr_str_append("INPUT_FLAG_UNICODE", buffer, len, "|");
|
||||
if ((flags & INPUT_FLAG_FASTPATH_INPUT2) != 0)
|
||||
winpr_str_append("INPUT_FLAG_FASTPATH_INPUT2", buffer, len, "|");
|
||||
if ((flags & INPUT_FLAG_UNUSED1) != 0)
|
||||
winpr_str_append("INPUT_FLAG_UNUSED1", buffer, len, "|");
|
||||
if ((flags & INPUT_FLAG_MOUSE_RELATIVE) != 0)
|
||||
winpr_str_append("INPUT_FLAG_MOUSE_RELATIVE", buffer, len, "|");
|
||||
if ((flags & TS_INPUT_FLAG_MOUSE_HWHEEL) != 0)
|
||||
winpr_str_append("TS_INPUT_FLAG_MOUSE_HWHEEL", buffer, len, "|");
|
||||
if ((flags & TS_INPUT_FLAG_QOE_TIMESTAMPS) != 0)
|
||||
winpr_str_append("TS_INPUT_FLAG_QOE_TIMESTAMPS", buffer, len, "|");
|
||||
winpr_str_append("]", buffer, len, "");
|
||||
return buffer;
|
||||
}
|
||||
|
@ -99,6 +99,7 @@
|
||||
#define INPUT_FLAG_FASTPATH_INPUT 0x0008
|
||||
#define INPUT_FLAG_UNICODE 0x0010
|
||||
#define INPUT_FLAG_FASTPATH_INPUT2 0x0020
|
||||
#define INPUT_FLAG_UNUSED1 0x0040
|
||||
#define INPUT_FLAG_MOUSE_RELATIVE 0x0080
|
||||
#define TS_INPUT_FLAG_MOUSE_HWHEEL 0x0100
|
||||
#define TS_INPUT_FLAG_QOE_TIMESTAMPS 0x0200
|
||||
@ -164,6 +165,9 @@ FREERDP_LOCAL BOOL rdp_send_demand_active(rdpRdp* rdp);
|
||||
FREERDP_LOCAL BOOL rdp_recv_confirm_active(rdpRdp* rdp, wStream* s, UINT16 pduLength);
|
||||
FREERDP_LOCAL BOOL rdp_send_confirm_active(rdpRdp* rdp);
|
||||
|
||||
BOOL rdp_read_capability_set(wStream* sub, UINT16 type, rdpSettings* settings, BOOL isServer);
|
||||
FREERDP_LOCAL BOOL rdp_read_capability_set(wStream* sub, UINT16 type, rdpSettings* settings,
|
||||
BOOL isServer);
|
||||
|
||||
FREERDP_LOCAL const char* rdp_input_flag_string(UINT16 flags, char* buffer, size_t len);
|
||||
|
||||
#endif /* FREERDP_LIB_CORE_CAPABILITIES_H */
|
||||
|
Loading…
Reference in New Issue
Block a user