VirtualBox

Changeset 8539 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 2, 2008 5:02:10 PM (17 years ago)
Author:
vboxsync
Message:

Drop the USBDEVICE bits we don't currently need.

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/Makefile.kmk

    r8155 r8539  
    8888
    8989# USB Support
    90 ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
     90if1of ($(BUILD_TARGET), l4 win)
    9191VBoxBFE_DEFS += VBOXBFE_WITH_USB
    9292VBoxBFE_SOURCES += \
  • trunk/src/VBox/Frontends/VBoxBFE/USBProxyService.cpp

    r8155 r8539  
    306306}
    307307
     308
     309#ifdef USBDEVICE_WITH_EVERYTHING
    308310/*static*/ void USBProxyService::freeInterfaceMembers (PUSBINTERFACE pIf, unsigned cIfs)
    309311{
     
    326328    }
    327329}
     330#endif
     331
    328332
    329333/*static*/ void USBProxyService::freeDevice (PUSBDEVICE pDevice)
    330334{
     335#ifdef USBDEVICE_WITH_EVERYTHING
    331336    PUSBCONFIG pCfg = pDevice->paConfigurations;
    332337    unsigned cCfgs = pDevice->bNumConfigurations;
     
    346351    RTMemFree (pDevice->paConfigurations);
    347352    pDevice->paConfigurations = NULL;
     353#endif
    348354
    349355    RTStrFree ((char *)pDevice->pszManufacturer);
  • trunk/src/VBox/Frontends/VBoxBFE/USBProxyService.h

    r8155 r8539  
    140140
    141141public:
     142#ifdef USBDEVICE_WITH_EVERYTHING
    142143    /**
    143144     * Free all the members of a USB interface returned by getDevice().
     
    147148     */
    148149    static void freeInterfaceMembers (PUSBINTERFACE pIf, unsigned cIfs);
     150#endif
    149151
    150152    /**
  • trunk/src/VBox/Frontends/VBoxBFE/USBProxyServiceLinux.cpp

    r8155 r8539  
     1/* $Id$ */
    12/** @file
    2  *
    33 * VBox frontends: Basic Frontend (BFE):
    44 * Implementation of USBProxyServiceLinux class
     5 *
     6 * WARNING: This file needs to be resynced and is currently disabled.
    57 */
    68
  • trunk/src/VBox/Main/include/USBDeviceImpl.h

    r8155 r8539  
    2525#include "VirtualBoxBase.h"
    2626#include "Collection.h"
     27#include "Logging.h"
    2728
    2829
     
    114115        if (!aDevice)
    115116            return E_POINTER;
     117RTLogPrintf("%Rfn: id=%RTuuid\n", __PRETTY_FUNCTION__, idToFind.raw());
    116118
    117119        *aDevice = NULL;
     
    122124            Guid id;
    123125            (*it)->COMGETTER(Id) (id.asOutParam());
     126RTLogPrintf("%Rfn: it=%RTuuid\n", __PRETTY_FUNCTION__, id.raw());
    124127            if (id == idToFind)
    125128                found = *it;
     
    128131
    129132        if (!found)
     133        {
     134RTLogPrintf("%Rfn: not found\n", __PRETTY_FUNCTION__);
    130135            return setError (E_INVALIDARG, OUSBDeviceCollection::tr (
    131136                "Could not find a USB device with UUID {%s}"),
    132137                idToFind.toString().raw());
     138        }
    133139
    134140        return found.queryInterfaceTo (aDevice);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette