/** @file
* VBox Remote Desktop Extension (VRDE) - Input interface.
*/
/*
* Copyright (C) 2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
/*
* Interface for receiving input events from the client.
*/
/* All structures in this file are packed.
* Everything is little-endian.
*/
#pragma pack(1)
/*
* The application interface between VirtualBox and the VRDE server.
*/
/*
* Supported input methods.
*/
/*
* fu32Flags for VRDEInputSetup
*/
/* The interface entry points. Interface version 1. */
typedef struct VRDEINPUTINTERFACE
{
/* The header. */
/* Tell the server that an input method will be used or disabled, etc.
* VRDECallbackInputSetup will be called with a result.
*
* @param hServer The VRDE server instance.
* @param u32Method The method VRDE_INPUT_METHOD_*.
* @param fu32Flags What to do with the method VRDE_INPUT_F_*.
* @param pvSetup Method specific parameters (optional).
* @param cbSetup Size of method specific parameters (optional).
*/
const void *pvSetup,
/* Interface callbacks. */
typedef struct VRDEINPUTCALLBACKS
{
/* The header. */
/* VRDPInputSetup async result.
*
* @param pvCallback The callbacks context specified in VRDEGetInterface.
* @param rcSetup The result code of the request.
* @param u32Method The method VRDE_INPUT_METHOD_*.
* @param pvResult The result information.
* @param cbResult The size of buffer pointed by pvResult.
*/
int rcRequest,
const void *pvResult,
/* Input event.
*
* @param pvCallback The callbacks context specified in VRDEGetInterface.
* @param u32Method The method VRDE_INPUT_METHOD_*.
* @param pvEvent The event data.
* @param cbEvent The size of buffer pointed by pvEvent.
*/
const void *pvEvent,
/*
* Touch input definitions VRDE_INPUT_METHOD_TOUCH.
*/
/* pvResult is not used */
/* RDPINPUT_HEADER */
typedef struct VRDEINPUTHEADER
{
/* VRDEINPUTHEADER::u16EventId */
/* RDPINPUT_SC_READY_PDU */
typedef struct VRDEINPUT_SC_READY_PDU
{
/* RDPINPUT_CS_READY_PDU */
typedef struct VRDEINPUT_CS_READY_PDU
{
/* RDPINPUT_CONTACT_DATA */
typedef struct VRDEINPUT_CONTACT_DATA
{
/* RDPINPUT_TOUCH_FRAME */
typedef struct VRDEINPUT_TOUCH_FRAME
{
/* RDPINPUT_TOUCH_EVENT_PDU */
typedef struct VRDEINPUT_TOUCH_EVENT_PDU
{
/* RDPINPUT_SUSPEND_TOUCH_PDU */
typedef struct VRDEINPUT_SUSPEND_TOUCH_PDU
{
/* RDPINPUT_RESUME_TOUCH_PDU */
typedef struct VRDEINPUT_RESUME_TOUCH_PDU
{
/* RDPINPUT_DISMISS_HOVERING_CONTACT_PDU */
typedef struct VRDEINPUT_DISMISS_HOVERING_CONTACT_PDU
{
#pragma pack()
#endif