VirtualBox

Ignore:
Timestamp:
Dec 5, 2013 11:26:00 AM (11 years ago)
Author:
vboxsync
Message:

OS X host: HID LEDs sync: move built-in keyboard resume code from VBoxUSB.kext to VBoxDrv.kext.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp

    r49779 r49787  
    3939# include <iprt/err.h>
    4040# include <iprt/semaphore.h>
    41 # include <VBox/usblib.h>
     41# include <VBox/sup.h>
    4242#endif
    4343
     
    12701270    IOReturn      rc = kIOReturnError;
    12711271
    1272     USBLibResumeBuiltInKeyboard();
     1272    /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */
     1273    int rc1 = SUPR3ResumeBuiltinKeyboard();
     1274    if (RT_FAILURE(rc1))
     1275        return rc1;
    12731276
    12741277    valueRef = IOHIDValueCreateWithIntegerValue(kCFAllocatorDefault, element, 0, (fEnabled) ? 1 : 0);
     
    12941297    CFIndex       integerValue;
    12951298
    1296     USBLibResumeBuiltInKeyboard();
     1299    /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */
     1300    int rc1 = SUPR3ResumeBuiltinKeyboard();
     1301    if (RT_FAILURE(rc1))
     1302        return rc1;
    12971303
    12981304    rc = IOHIDDeviceGetValue(hidDevice, element, &valueRef);
     
    19151921    VBoxHidsState_t *pHidState;
    19161922
    1917     USBLibInit();
    1918 
    19191923    pHidState = (VBoxHidsState_t *)malloc(sizeof(VBoxHidsState_t));
    19201924    AssertReturn(pHidState, NULL);
     
    20582062    free(pHidState);
    20592063
    2060     USBLibTerm();
    2061 
    20622064    return rc2;
    20632065#else /* !VBOX_WITH_KBD_LEDS_SYNC */
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