RemoteUSBBackend.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
*
* VirtualBox Remote USB backend
*/
/*
* Copyright (C) 2006-2007 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.
*/
#ifndef ____H_REMOTEUSBBACKEND
#define ____H_REMOTEUSBBACKEND
#include "RemoteUSBDeviceImpl.h"
#include <iprt/critsect.h>
//typedef enum
//{
// RDLIdle = 0,
// RDLReqSent,
// RDLObtained
//} RDLState;
DECLCALLBACK(int) USBClientResponseCallback (void *pv, uint32_t u32ClientId, uint8_t code, const void *pvRet, uint32_t cbRet);
/* How many remote devices can be attached to a remote client.
* Normally a client computer has 2-8 physical USB ports, so 16 devices
* should be usually enough.
*/
#define VRDP_MAX_USB_DEVICES_PER_CLIENT (16)
{
};
{
~RemoteUSBBackend();
void AddRef (void);
void Release (void);
void NotifyDelete (void);
void PollRemoteDevices (void);
public: /* Functions for internal use. */
bool pollingEnabledURB (void) { return mfPollURB; }
void request (void);
void release (void);
int cRefs;
bool mfHasDeviceList;
void *mpvDeviceList;
typedef enum {
bool mfPollURB;
bool mfWillBeDeleted;
/* VRDP_USB_VERSION_2: the client version. */
};
#endif /* ____H_REMOTEUSBBACKEND */
/* vi: set tabstop=4 shiftwidth=4 expandtab: */