Changeset 11098 in vbox for trunk/src/VBox
- Timestamp:
- Aug 4, 2008 12:46:44 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34021
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/darwin/iokit.cpp
r10895 r11098 1462 1462 { 1463 1463 /* Check if airport (a bit heuristical - it's com.apple.driver.AirPortBrcm43xx here). */ 1464 AssertBreak(darwinDictGetString(PropsRef, CFSTR("CFBundleIdentifier"), szTmp, sizeof(szTmp)));1464 darwinDictGetString(PropsRef, CFSTR("CFBundleIdentifier"), szTmp, sizeof(szTmp)); 1465 1465 bool fWireless; 1466 1466 bool fAirPort = fWireless = strstr(szTmp, ".AirPort") != NULL; 1467 1467 1468 1468 /* Check if it's USB. */ 1469 AssertBreak(darwinDictGetString(PropsRef, CFSTR("IOProviderClass"), szTmp, sizeof(szTmp)));1469 darwinDictGetString(PropsRef, CFSTR("IOProviderClass"), szTmp, sizeof(szTmp)); 1470 1470 bool fUSB = strstr(szTmp, "USB") != NULL; 1471 1472 1473 /* Is it builtin? */ 1474 bool fBuiltin; 1475 darwinDictGetBool(IfPropsRef, CFSTR("IOBuiltin"), &fBuiltin); 1476 1477 /* Is it the primary interface */ 1478 bool fPrimaryIf; 1479 darwinDictGetBool(IfPropsRef, CFSTR("IOPrimaryInterface"), &fPrimaryIf); 1471 1480 1472 1481 /* Get the MAC address. */ 1473 1482 PDMMAC Mac; 1474 1483 AssertBreak(darwinDictGetData(PropsRef, CFSTR("IOMACAddress"), &Mac, sizeof(Mac))); 1475 1476 /* Is it builtin? */1477 bool fBuiltin;1478 AssertBreak(darwinDictGetBool(IfPropsRef, CFSTR("IOBuiltin"), &fBuiltin));1479 1480 /* Is it the primary interface */1481 bool fPrimaryIf;1482 AssertBreak(darwinDictGetBool(IfPropsRef, CFSTR("IOPrimaryInterface"), &fPrimaryIf));1483 1484 1484 1485 /* The BSD Name from the interface dictionary. */
Note:
See TracChangeset
for help on using the changeset viewer.