Blame channels/rdpei/rdpei_common.h

Packit Service fa4841
/**
Packit Service fa4841
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit Service fa4841
 * Input Virtual Channel Extension
Packit Service fa4841
 *
Packit Service fa4841
 * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit Service fa4841
 * Copyright 2014 David Fort <contact@hardening-consulting.com>
Packit Service fa4841
 *
Packit Service fa4841
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
 * you may not use this file except in compliance with the License.
Packit Service fa4841
 * You may obtain a copy of the License at
Packit Service fa4841
 *
Packit Service fa4841
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
 *
Packit Service fa4841
 * Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
 * See the License for the specific language governing permissions and
Packit Service fa4841
 * limitations under the License.
Packit Service fa4841
 */
Packit Service fa4841
Packit Service fa4841
#ifndef FREERDP_CHANNEL_RDPEI_COMMON_H
Packit Service fa4841
#define FREERDP_CHANNEL_RDPEI_COMMON_H
Packit Service fa4841
Packit Service fa4841
#include <winpr/crt.h>
Packit Service fa4841
#include <winpr/stream.h>
Packit Service fa4841
#include <freerdp/channels/rdpei.h>
Packit Service fa4841
Packit Service fa4841
/** @brief input event ids */
Packit Service fa4841
enum
Packit Service fa4841
{
Packit Service fa4841
	EVENTID_SC_READY = 0x0001,
Packit Service fa4841
	EVENTID_CS_READY = 0x0002,
Packit Service fa4841
	EVENTID_TOUCH = 0x0003,
Packit Service fa4841
	EVENTID_SUSPEND_TOUCH = 0x0004,
Packit Service fa4841
	EVENTID_RESUME_TOUCH = 0x0005,
Packit Service fa4841
	EVENTID_DISMISS_HOVERING_CONTACT = 0x0006
Packit Service fa4841
};
Packit Service fa4841
Packit Service fa4841
BOOL rdpei_read_2byte_unsigned(wStream* s, UINT32* value);
Packit Service fa4841
BOOL rdpei_write_2byte_unsigned(wStream* s, UINT32 value);
Packit Service fa4841
BOOL rdpei_read_2byte_signed(wStream* s, INT32* value);
Packit Service fa4841
BOOL rdpei_write_2byte_signed(wStream* s, INT32 value);
Packit Service fa4841
BOOL rdpei_read_4byte_unsigned(wStream* s, UINT32* value);
Packit Service fa4841
BOOL rdpei_write_4byte_unsigned(wStream* s, UINT32 value);
Packit Service fa4841
BOOL rdpei_read_4byte_signed(wStream* s, INT32* value);
Packit Service fa4841
BOOL rdpei_write_4byte_signed(wStream* s, INT32 value);
Packit Service fa4841
BOOL rdpei_read_8byte_unsigned(wStream* s, UINT64* value);
Packit Service fa4841
BOOL rdpei_write_8byte_unsigned(wStream* s, UINT64 value);
Packit Service fa4841
Packit Service fa4841
void touch_event_reset(RDPINPUT_TOUCH_EVENT* event);
Packit Service fa4841
void touch_frame_reset(RDPINPUT_TOUCH_FRAME* frame);
Packit Service fa4841
Packit Service fa4841
#endif /* FREERDP_CHANNEL_RDPEI_COMMON_H */