VirtualBox

Changeset 48677 in vbox


Ignore:
Timestamp:
Sep 25, 2013 11:05:27 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89299
Message:

Partly reverted r89244 and r89245.

Location:
trunk/src/VBox
Files:
1 deleted
3 edited

Legend:

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

    r48647 r48677  
    4444#endif
    4545#include <IOKit/hid/IOHIDLib.h>
    46 #include <IOKit/hidsystem/IOHIDLib.h>
    4746#include <ApplicationServices/ApplicationServices.h>
    4847#include <Carbon/Carbon.h>
     
    14561455}
    14571456
    1458 /** Call VBoxKeyboardService to sync keyboard controls and LEDs. */
    1459 static void darwinVBoxKeyboardSync(void)
    1460 {
    1461     CFDictionaryRef matchingDictionaryRef = IOServiceMatching("org_virtualbox_VBoxKeyboard");
    1462     if (matchingDictionaryRef)
    1463     {
    1464         io_service_t service;
    1465         service = IOServiceGetMatchingService(kIOMasterPortDefault, matchingDictionaryRef);
    1466         if (service)
    1467         {
    1468             kern_return_t rc;
    1469             io_connect_t  connection;
    1470             rc = IOServiceOpen(service, mach_task_self(), 0, &connection);
    1471             if (rc == 0)
    1472             {
    1473                 Log2(("VBoxKeyboard IOService opened!\n"));
    1474 
    1475                 rc = IOConnectCallScalarMethod(connection, 0, NULL, 0, NULL, 0);
    1476                 Log2(("VBoxKeyboard IOService IOCTL: 0x%X!\n", rc));
    1477 
    1478                 rc = IOServiceClose(connection);
    1479                 if (rc == 0)
    1480                 {
    1481                     Log2(("VBoxKeyboard IOService closed!\n"));
    1482                 }
    1483                 else
    1484                 {
    1485                     Log2(("Unable to close VBoxKeyboard IOService: 0x%X\n", rc));
    1486                 }
    1487             }
    1488             else
    1489             {
    1490                 Log2(("Unable to open VBoxKeyboard IOService: 0x%X\n", rc));
    1491             }
    1492 
    1493             IOObjectRelease(service);
    1494         }
    1495         else
    1496         {
    1497             Log2(("Unable to find VBoxKeyboard IOService\n"));
    1498         }
    1499 
    1500     }
    1501     else
    1502     {
    1503         Log2(("Unable to construct VBoxKeyboard IOService matching dictionary\n"));
    1504     }
    1505 }
    1506 
    15071457/**
    15081458 * Apply LEDs state stored in *pState and release resources aquired by *pState.
     
    15381488                    rc2 = kIOReturnError;
    15391489                }
    1540 
    15411490            }
    1542 
    1543             darwinVBoxKeyboardSync();
    15441491        }
    15451492
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r48647 r48677  
    304304
    305305 VBoxDrv_SOURCES.darwin   = \
    306         darwin/SUPDrv-darwin.cpp \
    307         darwin/SUPKeyboardService-darwin.cpp
     306        darwin/SUPDrv-darwin.cpp
    308307 VBoxDrv_SOURCES.linux    = \
    309308        linux/SUPDrv-linux.c
  • trunk/src/VBox/HostDrivers/Support/darwin/Info.plist

    r48647 r48677  
    2525            <key>IOUserClientClass</key>        <string>org_virtualbox_SupDrvClient</string>
    2626        </dict>
    27         <key>VBoxDrvKeyboard</key>
    28         <dict>
    29             <key>CFBundleIdentifier</key>       <string>org.virtualbox.kext.VBoxDrv</string>
    30             <key>IOClass</key>                  <string>org_virtualbox_VBoxKeyboard</string>
    31             <key>IOMatchCategory</key>          <string>org_virtualbox_VBoxKeyboard</string>
    32             <key>IOProviderClass</key>          <string>IOResources</string>
    33             <key>IOResourceMatch</key>          <string>IOKit</string>
    34             <key>IOUserClientClass</key>        <string>org_virtualbox_VBoxKeyboardClient</string>
    35         </dict>
    3627    </dict>
    3728    <key>OSBundleLibraries</key>
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