Changeset 3662 in vbox for trunk/src/VBox/Main/darwin
- Timestamp:
- Jul 17, 2007 1:22:40 AM (17 years ago)
- Location:
- trunk/src/VBox/Main/darwin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/darwin/iokit.cpp
-
Property svn:keywords
set to
Id
r3376 r3662 1 /* * $Id:$ */1 /* $Id$ */ 2 2 /** @file 3 3 * Main - Darwin IOKit Routines. … … 548 548 549 549 /** 550 * Worker function for DarwinGetUSBDevices() that tries to figure out 551 * what state the device is in. 552 * 553 * This is mostly a matter of distinguishing between devices that nobody 554 * uses, devices that can be seized and devices that cannot be grabbed. 555 * 556 * @param pCur The USB device data. 557 * @param USBDevice The USB device object. 558 * @param PropsRef The USB device properties. 559 */ 560 static void darwinDeterminUSBDeviceState(PUSBDEVICE pCur, io_object_t USBDevice, CFMutableDictionaryRef PropsRef) 561 { 562 ///@todo 563 } 564 565 566 /** 550 567 * Enumerate the USB devices returning a FIFO of them. 551 568 * … … 604 621 */ 605 622 pCur->bcdUSB = 0; /* we've no idea. */ 606 pCur->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; /* ditto. */623 pCur->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; /* just a default, we'll try harder in a bit. */ 607 624 608 625 AssertBreak(darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceClass), &pCur->bDeviceClass),); … … 667 684 } 668 685 #endif 686 /* 687 * Try determin the state. 688 */ 689 darwinDeterminUSBDeviceState(pCur, USBDevice, PropsRef); 669 690 670 691 /* … … 681 702 /* cleanup on failure / skipped device. */ 682 703 if (!fOk && pCur) 683 { 684 /** @todo */ 685 } 704 DarwinFreeUSBDeviceFromIOKit(pCur); 686 705 687 706 CFRelease(PropsRef); … … 704 723 * take the first one from another vendor. 705 724 */ 725 /* As it turns out, the HID service will take all keyboards and mice 726 and we're not currently able to seize them. */ 706 727 PUSBDEVICE pMouse = NULL; 707 728 PUSBDEVICE pKeyboard = NULL; -
Property svn:keywords
set to
-
trunk/src/VBox/Main/darwin/iokit.h
-
Property svn:keywords
set to
Id
r2981 r3662 1 /* * $Id:$ */1 /* $Id$ */ 2 2 /** @file 3 3 * Main - Darwin IOKit Routines. … … 27 27 #ifdef VBOX_WITH_USB 28 28 # include <VBox/usb.h> 29 #endif 29 #endif 30 30 31 31 /** … … 40 40 } DARWINDVD, *PDARWINDVD; 41 41 42 /** The run loop mode string used by iokit.cpp when it registers 42 /** The run loop mode string used by iokit.cpp when it registers 43 43 * notifications events. */ 44 44 #define VBOX_IOKIT_MODE_STRING "VBoxIOKitMode" … … 50 50 void DarwinUnsubscribeUSBNotifications(void *pvOpaque); 51 51 PUSBDEVICE DarwinGetUSBDevices(void); 52 void DarwinFreeUSBDeviceFromIOKit(PUSBDEVICE pCur); 52 53 #endif 53 54 __END_DECLS -
Property svn:keywords
set to
Note:
See TracChangeset
for help on using the changeset viewer.