2 * FreeRDP: A Remote Desktop Protocol Client
5 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
20 #ifndef __ACTIVATION_H
21 #define __ACTIVATION_H
25 #include <freerdp/settings.h>
26 #include <freerdp/utils/memory.h>
28 #define SYNCMSGTYPE_SYNC 0x0001
30 #define CTRLACTION_REQUEST_CONTROL 0x0001
31 #define CTRLACTION_GRANTED_CONTROL 0x0002
32 #define CTRLACTION_DETACH 0x0003
33 #define CTRLACTION_COOPERATE 0x0004
35 #define PERSIST_FIRST_PDU 0x01
36 #define PERSIST_LAST_PDU 0x02
38 #define FONTLIST_FIRST 0x0001
39 #define FONTLIST_LAST 0x0002
41 boolean rdp_recv_deactivate_all(rdpRdp* rdp, STREAM* s);
42 boolean rdp_send_deactivate_all(rdpRdp* rdp);
44 boolean rdp_recv_synchronize_pdu(rdpRdp* rdp, STREAM* s);
45 boolean rdp_recv_server_synchronize_pdu(rdpRdp* rdp, STREAM* s);
46 boolean rdp_send_server_synchronize_pdu(rdpRdp* rdp);
47 boolean rdp_recv_client_synchronize_pdu(rdpRdp* rdp, STREAM* s);
48 boolean rdp_send_client_synchronize_pdu(rdpRdp* rdp);
49 boolean rdp_recv_control_pdu(STREAM* s, uint16* action);
50 boolean rdp_recv_server_control_pdu(rdpRdp* rdp, STREAM* s);
51 boolean rdp_send_server_control_cooperate_pdu(rdpRdp* rdp);
52 boolean rdp_send_server_control_granted_pdu(rdpRdp* rdp);
53 boolean rdp_send_client_control_pdu(rdpRdp* rdp, uint16 action);
54 boolean rdp_send_client_persistent_key_list_pdu(rdpRdp* rdp);
55 boolean rdp_recv_client_font_list_pdu(STREAM* s);
56 boolean rdp_send_client_font_list_pdu(rdpRdp* rdp, uint16 flags);
57 boolean rdp_recv_font_map_pdu(rdpRdp* rdp, STREAM* s);
58 boolean rdp_recv_server_font_map_pdu(rdpRdp* rdp, STREAM* s);
59 boolean rdp_recv_client_font_map_pdu(rdpRdp* rdp, STREAM* s);
60 boolean rdp_send_server_font_map_pdu(rdpRdp* rdp);
62 boolean rdp_server_accept_client_control_pdu(rdpRdp* rdp, STREAM* s);
63 boolean rdp_server_accept_client_font_list_pdu(rdpRdp* rdp, STREAM* s);
65 #endif /* __ACTIVATION_H */