20 #ifndef FREERDP_LIB_CORE_ACTIVATION_H
21 #define FREERDP_LIB_CORE_ACTIVATION_H
25 #include <freerdp/api.h>
26 #include <freerdp/settings.h>
27 #include <freerdp/cache/persistent.h>
29 #define SYNCMSGTYPE_SYNC 0x0001
33 CTRLACTION_REQUEST_CONTROL = 0x0001,
34 CTRLACTION_GRANTED_CONTROL = 0x0002,
35 CTRLACTION_DETACH = 0x0003,
36 CTRLACTION_COOPERATE = 0x0004
41 UINT16 numEntriesCache0;
42 UINT16 numEntriesCache1;
43 UINT16 numEntriesCache2;
44 UINT16 numEntriesCache3;
45 UINT16 numEntriesCache4;
46 UINT16 totalEntriesCache0;
47 UINT16 totalEntriesCache1;
48 UINT16 totalEntriesCache2;
49 UINT16 totalEntriesCache3;
50 UINT16 totalEntriesCache4;
55 #define PERSIST_FIRST_PDU 0x01
56 #define PERSIST_LAST_PDU 0x02
58 #define FONTLIST_FIRST 0x0001
59 #define FONTLIST_LAST 0x0002
61 FREERDP_LOCAL
const char* rdp_ctrlaction_string(UINT16 action,
char* buffer,
size_t size);
62 FREERDP_LOCAL BOOL rdp_recv_deactivate_all(rdpRdp* rdp,
wStream* s);
63 FREERDP_LOCAL BOOL rdp_send_deactivate_all(rdpRdp* rdp);
65 FREERDP_LOCAL BOOL rdp_recv_server_synchronize_pdu(rdpRdp* rdp,
wStream* s);
66 FREERDP_LOCAL BOOL rdp_send_server_synchronize_pdu(rdpRdp* rdp);
67 FREERDP_LOCAL BOOL rdp_recv_client_synchronize_pdu(rdpRdp* rdp,
wStream* s);
68 FREERDP_LOCAL BOOL rdp_send_client_synchronize_pdu(rdpRdp* rdp);
70 FREERDP_LOCAL BOOL rdp_recv_server_control_pdu(rdpRdp* rdp,
wStream* s);
71 FREERDP_LOCAL BOOL rdp_send_server_control_cooperate_pdu(rdpRdp* rdp);
72 FREERDP_LOCAL BOOL rdp_send_client_control_pdu(rdpRdp* rdp, UINT16 action);
73 FREERDP_LOCAL BOOL rdp_send_server_control_granted_pdu(rdpRdp* rdp);
74 FREERDP_LOCAL BOOL rdp_send_client_persistent_key_list_pdu(rdpRdp* rdp);
75 FREERDP_LOCAL BOOL rdp_send_client_font_list_pdu(rdpRdp* rdp, UINT16 flags);
76 FREERDP_LOCAL BOOL rdp_recv_font_map_pdu(rdpRdp* rdp,
wStream* s);
78 FREERDP_LOCAL BOOL rdp_server_accept_client_control_pdu(rdpRdp* rdp,
wStream* s);
79 FREERDP_LOCAL BOOL rdp_server_accept_client_font_list_pdu(rdpRdp* rdp,
wStream* s);
80 FREERDP_LOCAL BOOL rdp_server_accept_client_persistent_key_list_pdu(rdpRdp* rdp,
wStream* s);