2011-07-25 09:45:25 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-25 09:45:25 +04:00
|
|
|
* Update Data PDUs
|
|
|
|
*
|
|
|
|
* 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 __UPDATE_H
|
|
|
|
#define __UPDATE_H
|
|
|
|
|
|
|
|
#include "rdp.h"
|
|
|
|
#include "orders.h"
|
|
|
|
#include <freerdp/types.h>
|
2011-07-28 08:38:25 +04:00
|
|
|
#include <freerdp/update.h>
|
|
|
|
#include <freerdp/freerdp.h>
|
2011-07-25 09:45:25 +04:00
|
|
|
#include <freerdp/utils/stream.h>
|
|
|
|
|
|
|
|
#define UPDATE_TYPE_ORDERS 0x0000
|
|
|
|
#define UPDATE_TYPE_BITMAP 0x0001
|
|
|
|
#define UPDATE_TYPE_PALETTE 0x0002
|
|
|
|
#define UPDATE_TYPE_SYNCHRONIZE 0x0003
|
|
|
|
|
|
|
|
#define BITMAP_COMPRESSION 0x0001
|
|
|
|
#define NO_BITMAP_COMPRESSION_HDR 0x0400
|
|
|
|
|
2011-07-28 08:38:25 +04:00
|
|
|
rdpUpdate* update_new(rdpRdp* rdp);
|
2011-07-27 02:32:14 +04:00
|
|
|
void update_free(rdpUpdate* update);
|
2011-09-07 21:03:31 +04:00
|
|
|
void update_free_bitmap(BITMAP_UPDATE* bitmap_update);
|
2011-08-08 05:12:36 +04:00
|
|
|
void update_reset_state(rdpUpdate* update);
|
2011-07-27 02:32:14 +04:00
|
|
|
|
2013-01-12 03:46:04 +04:00
|
|
|
BOOL update_read_bitmap(rdpUpdate* update, STREAM* s, BITMAP_UPDATE* bitmap_update);
|
|
|
|
BOOL update_read_palette(rdpUpdate* update, STREAM* s, PALETTE_UPDATE* palette_update);
|
|
|
|
BOOL update_recv_play_sound(rdpUpdate* update, STREAM* s);
|
|
|
|
BOOL update_recv_pointer(rdpUpdate* update, STREAM* s);
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL update_recv(rdpUpdate* update, STREAM* s);
|
2011-07-25 09:45:25 +04:00
|
|
|
|
2013-01-12 03:46:04 +04:00
|
|
|
BOOL update_read_pointer_position(STREAM* s, POINTER_POSITION_UPDATE* pointer_position);
|
|
|
|
BOOL update_read_pointer_system(STREAM* s, POINTER_SYSTEM_UPDATE* pointer_system);
|
|
|
|
BOOL update_read_pointer_color(STREAM* s, POINTER_COLOR_UPDATE* pointer_color);
|
|
|
|
BOOL update_read_pointer_new(STREAM* s, POINTER_NEW_UPDATE* pointer_new);
|
|
|
|
BOOL update_read_pointer_cached(STREAM* s, POINTER_CACHED_UPDATE* pointer_cached);
|
2011-09-19 22:50:40 +04:00
|
|
|
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL update_read_refresh_rect(rdpUpdate* update, STREAM* s);
|
|
|
|
BOOL update_read_suppress_output(rdpUpdate* update, STREAM* s);
|
2012-05-26 17:34:09 +04:00
|
|
|
|
2011-08-23 16:37:08 +04:00
|
|
|
void update_register_server_callbacks(rdpUpdate* update);
|
2012-05-26 17:34:09 +04:00
|
|
|
void update_register_client_callbacks(rdpUpdate* update);
|
2011-08-23 16:37:08 +04:00
|
|
|
|
2011-07-25 09:45:25 +04:00
|
|
|
#endif /* __UPDATE_H */
|