FreeRDP/libfreerdp/core/activation.h

65 lines
2.3 KiB
C
Raw Normal View History

/**
2012-10-09 07:02:04 +04:00
* FreeRDP: A Remote Desktop Protocol Implementation
* Activation Sequence
*
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __ACTIVATION_H
#define __ACTIVATION_H
#include "rdp.h"
#include <freerdp/settings.h>
#define SYNCMSGTYPE_SYNC 0x0001
#define CTRLACTION_REQUEST_CONTROL 0x0001
#define CTRLACTION_GRANTED_CONTROL 0x0002
#define CTRLACTION_DETACH 0x0003
#define CTRLACTION_COOPERATE 0x0004
#define PERSIST_FIRST_PDU 0x01
#define PERSIST_LAST_PDU 0x02
#define FONTLIST_FIRST 0x0001
#define FONTLIST_LAST 0x0002
BOOL rdp_recv_deactivate_all(rdpRdp* rdp, STREAM* s);
BOOL rdp_send_deactivate_all(rdpRdp* rdp);
BOOL rdp_recv_synchronize_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_recv_server_synchronize_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_send_server_synchronize_pdu(rdpRdp* rdp);
BOOL rdp_recv_client_synchronize_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_send_client_synchronize_pdu(rdpRdp* rdp);
BOOL rdp_recv_control_pdu(STREAM* s, UINT16* action);
BOOL rdp_recv_server_control_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_send_server_control_cooperate_pdu(rdpRdp* rdp);
BOOL rdp_send_server_control_granted_pdu(rdpRdp* rdp);
BOOL rdp_send_client_control_pdu(rdpRdp* rdp, UINT16 action);
BOOL rdp_send_client_persistent_key_list_pdu(rdpRdp* rdp);
BOOL rdp_recv_client_font_list_pdu(STREAM* s);
BOOL rdp_send_client_font_list_pdu(rdpRdp* rdp, UINT16 flags);
BOOL rdp_recv_font_map_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_recv_server_font_map_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_recv_client_font_map_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_send_server_font_map_pdu(rdpRdp* rdp);
BOOL rdp_server_accept_client_control_pdu(rdpRdp* rdp, STREAM* s);
BOOL rdp_server_accept_client_font_list_pdu(rdpRdp* rdp, STREAM* s);
#endif /* __ACTIVATION_H */