VirtualBox

Changeset 28781 in vbox


Ignore:
Timestamp:
Apr 26, 2010 8:49:54 PM (15 years ago)
Author:
vboxsync
Message:

Main/HostHardwareLinux: disable USB probing using hal/DBus by default

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r28741 r28781  
    222222        $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
    223223        $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
    224         $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
     224        $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
    225225        $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
    226226        $(if $(VBOX_USB_WITH_FAM),VBOX_USB_WITH_FAM,) \
  • trunk/src/VBox/Main/linux/HostHardwareLinux.cpp

    r28779 r28781  
    3333#include <VBox/log.h>
    3434
    35 #ifdef VBOX_WITH_DBUS
     35#ifdef VBOX_USB_WITH_DBUS
    3636# include <VBox/dbus.h>
    3737#endif
     
    100100static int getUSBDeviceInfoFromSysfs(USBDeviceInfoList *pList, bool *pfSuccess);
    101101# endif
    102 # ifdef VBOX_WITH_DBUS
     102# ifdef VBOX_USB_WITH_DBUS
    103103/* These must be extern to be usable in the RTMemAutoPtr template */
    104104extern void VBoxHalShutdown (DBusConnection *pConnection);
     
    136136static DBusHandlerResult dbusFilterFunction (DBusConnection *pConnection,
    137137                                             DBusMessage *pMessage, void *pvUser);
    138 # endif  /* VBOX_WITH_DBUS */
     138# endif  /* VBOX_USB_WITH_DBUS */
    139139#endif /* VBOX_USB_WITH_SYSFS */
    140140
     
    10311031        mDeviceList.clear();
    10321032#ifdef VBOX_USB_WITH_SYSFS
    1033 # ifdef VBOX_WITH_DBUS
     1033# ifdef VBOX_USB_WITH_DBUS
    10341034        bool halSuccess = false;
    10351035        if (   RT_SUCCESS(rc)
     
    10431043        if (!success)
    10441044            success = halSuccess;
    1045 # endif /* VBOX_WITH_DBUS */
     1045# endif /* VBOX_USB_WITH_DBUS */
    10461046# ifdef VBOX_USB_WITH_FAM
    10471047        if (   RT_SUCCESS(rc)
     
    10611061}
    10621062
    1063 #if defined VBOX_USB_WITH_SYSFS && defined VBOX_WITH_DBUS
     1063#if defined VBOX_USB_WITH_SYSFS && defined VBOX_USB_WITH_DBUS
    10641064class hotplugDBusImpl : public VBoxMainHotplugWaiterImpl
    10651065{
     
    11681168    mInterrupt = true;
    11691169}
    1170 #endif  /* VBOX_USB_WITH_SYSFS && VBOX_WITH_DBUS */
     1170#endif  /* VBOX_USB_WITH_SYSFS && VBOX_USB_WITH_DBUS */
    11711171
    11721172class hotplugNullImpl : public VBoxMainHotplugWaiterImpl
     
    13491349        Assert(!RTFileExists("/proc/bus/usb/devices"));
    13501350#   endif
    1351 #   ifdef VBOX_WITH_DBUS
     1351#   ifdef VBOX_USB_WITH_DBUS
    13521352        Assert(!hotplugDBusImpl::HalAvailable());
    13531353#   endif
     
    15021502{
    15031503#ifdef VBOX_USB_WITH_SYSFS
    1504 # ifdef VBOX_WITH_DBUS
     1504# ifdef VBOX_USB_WITH_DBUS
    15051505    if (hotplugDBusImpl::HalAvailable())
    15061506    {
     
    15081508        return;
    15091509    }
    1510 # endif  /* VBOX_WITH_DBUS */
     1510# endif  /* VBOX_USB_WITH_DBUS */
    15111511# ifdef VBOX_USB_WITH_FAM
    15121512    if (hotplugSysfsFAMImpl::SysfsAvailable())
     
    17601760#endif /* VBOX_USB_WITH_SYSFS */
    17611761
    1762 #if defined VBOX_USB_WITH_SYSFS && defined VBOX_WITH_DBUS
     1762#if defined VBOX_USB_WITH_SYSFS && defined VBOX_USB_WITH_DBUS
    17631763/** Wrapper class around DBusError for automatic cleanup */
    17641764class autoDBusError
     
    25292529    return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
    25302530}
    2531 #endif  /* VBOX_USB_WITH_SYSFS && VBOX_WITH_DBUS */
    2532 
     2531#endif  /* VBOX_USB_WITH_SYSFS && VBOX_USB_WITH_DBUS */
     2532
  • trunk/src/VBox/Main/testcase/Makefile.kmk

    r28741 r28781  
    132132        TESTCASE \
    133133        $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
    134         $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
     134        $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
    135135        $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
    136136        $(if $(VBOX_USB_WITH_FAM),VBOX_USB_WITH_FAM,)
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