Changeset 23537 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 4, 2009 2:21:08 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53180
- Location:
- trunk/src/VBox/Main
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r23529 r23537 32 32 #include "HostPower.h" 33 33 34 #if def RT_OS_LINUX34 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) 35 35 # include <HostHardwareLinux.h> 36 36 #endif … … 94 94 #endif /* RT_OS_WINDOWS */ 95 95 96 #ifdef RT_OS_FREEBSD97 # ifdef VBOX_USE_LIBHAL98 # include "vbox-libhal.h"99 # endif100 #endif101 102 96 #include "HostImpl.h" 103 97 #include "HostNetworkInterfaceImpl.h" … … 168 162 #endif /* VBOX_WITH_USB */ 169 163 170 #if def RT_OS_LINUX164 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) 171 165 /** Object with information about host drives */ 172 166 VBoxMainDriveInfo hostDrives; … … 445 439 } 446 440 447 #elif defined(RT_OS_LINUX) 441 #elif defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) 448 442 if (RT_SUCCESS(m->hostDrives.updateDVDs())) 449 443 for (DriveInfoList::const_iterator it = m->hostDrives.DVDBegin(); … … 473 467 cur = cur->pNext; 474 468 RTMemFree(freeMe); 475 }476 #elif defined(RT_OS_FREEBSD)477 # ifdef VBOX_USE_LIBHAL478 if (!getDVDInfoFromHal(list))479 # endif480 {481 /** @todo: Scan for accessible /dev/cd* devices. */482 469 } 483 470 #else … … 1779 1766 //////////////////////////////////////////////////////////////////////////////// 1780 1767 1781 #if (defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)) && defined(VBOX_USE_LIBHAL)1782 /* Solaris and FreeBSDhosts, loading libhal at runtime */1768 #if defined(RT_OS_SOLARIS) && defined(VBOX_USE_LIBHAL) 1769 /* Solaris hosts, loading libhal at runtime */ 1783 1770 1784 1771 /** … … 1824 1811 gLibHalFreeString(devNode); 1825 1812 devNode = tmp; 1826 #endif1827 1828 #ifdef RT_OS_FREEBSD1829 /*1830 * Don't show devices handled by the 'acd' driver.1831 * The ioctls don't work with it.1832 */1833 char *driverName = gLibHalDeviceGetPropertyString(halContext,1834 halDevices[i], "freebsd.driver", &dbusError);1835 if (driverName)1836 {1837 if (RTStrCmp(driverName, "acd") == 0)1838 {1839 gLibHalFreeString(devNode);1840 devNode = NULL;1841 }1842 gLibHalFreeString(driverName);1843 }1844 1813 #endif 1845 1814 -
trunk/src/VBox/Main/Makefile.kmk
r23529 r23537 345 345 346 346 VBoxSVC_SOURCES.freebsd = \ 347 linux/vbox-libhal.cpp347 freebsd/HostHardwareFreeBSD.cpp 348 348 349 349 ifdef VBOX_WITH_USB -
trunk/src/VBox/Main/include/HostImpl.h
r23341 r23537 123 123 private: 124 124 125 #if (defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)) && defined(VBOX_USE_LIBHAL)125 #if defined(RT_OS_SOLARIS) && defined(VBOX_USE_LIBHAL) 126 126 bool getDVDInfoFromHal(std::list< ComObjPtr<Medium> > &list); 127 127 bool getFloppyInfoFromHal(std::list< ComObjPtr<Medium> > &list);
Note:
See TracChangeset
for help on using the changeset viewer.