RemoteUSBDeviceImpl.cpp revision 15e9181ff43bf09ce40eaab73cee8c8492f99878
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * VirtualBox IHostUSBDevice COM interface implementation
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * for remote (VRDP) USB devices
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * Copyright (C) 2006-2008 Oracle Corporation
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * available from http://www.virtualbox.org. This file is free software;
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * you can redistribute it and/or modify it under the terms of the GNU
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * General Public License (GPL) as published by the Free Software
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync// constructor / destructor
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync/////////////////////////////////////////////////////////////////////////////
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync// public initializer/uninitializer for internal purposes only
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync/////////////////////////////////////////////////////////////////////////////
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync/** @todo (sunlover) REMOTE_USB Device states. */
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync * Initializes the remote USB device object.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncHRESULT RemoteUSBDevice::init (uint32_t u32ClientId, VRDPUSBDEVICEDESC *pDevDesc)
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync LogFlowThisFunc(("u32ClientId=%d,pDevDesc=%p\n", u32ClientId, pDevDesc));
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync /* Enclose the state transition NotReady->InInit->Ready */
unconst(mData.manufacturer) = pDevDesc->oManufacturer? (char *)pDevDesc + pDevDesc->oManufacturer: "";
unconst(mData.serialNumber) = pDevDesc->oSerialNumber? (char *)pDevDesc + pDevDesc->oSerialNumber: "";
RTStrPrintf(id, sizeof (id), REMOTE_USB_BACKEND_PREFIX_S "0x%08X&0x%08X", pDevDesc->id, u32ClientId);
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;