VirtualBox

Changeset 26291 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 5, 2010 2:27:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57360
Message:

warnings.

Location:
trunk/src/VBox
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp

    r25981 r26291  
    37943794    iscsiComposeLocation,
    37953795    /* pfnComposeName */
    3796     iscsiComposeName
     3796    iscsiComposeName,
     3797    /* pfnCompact */
     3798    NULL
    37973799};
  • trunk/src/VBox/Devices/Storage/ParallelsHDDCore.cpp

    r26163 r26291  
    12921292    genericFileComposeLocation,
    12931293    /* pfnComposeName */
    1294     genericFileComposeName
     1294    genericFileComposeName,
     1295    /* pfnCompact */
     1296    NULL
    12951297};
    12961298
  • trunk/src/VBox/Devices/Storage/RawHDDCore.cpp

    r23973 r26291  
    13211321    genericFileComposeLocation,
    13221322    /* pfnComposeName */
    1323     genericFileComposeName
     1323    genericFileComposeName,
     1324    /* pfnCompact */
     1325    NULL
    13241326};
    13251327
  • trunk/src/VBox/Frontends/VirtualBox/src/X11/keyboard-new.c

    r22426 r26291  
    5757#define KEYC2SCAN_SIZE 256
    5858
    59 /** 
     59/**
    6060 * Array containing the current mapping of keycodes to scan codes, detected
    6161 * using the keyboard layout algorithm in X11DRV_InitKeyboardByLayout.
     
    270270 * which one the X11 keycodes would be most sequential and hope that they
    271271 * really are layed out more or less sequentially.
    272  * 
     272 *
    273273 * The actual detection of the current layout is done in the sub-function
    274  * X11DRV_KEYBOARD_DetectLayout.  Once we have determined the layout, since we 
     274 * X11DRV_KEYBOARD_DetectLayout.  Once we have determined the layout, since we
    275275 * know which PC scan code corresponds to each key in the layout, we can use
    276276 * this information to associate the scan code with an X11 keycode, which is
     
    404404{
    405405    unsigned i = 0, found = 0;
    406    
    407     keyboard_type hostKB = { 0 };
     406
     407    keyboard_type hostKB;
     408    memset(&hostKB, '\0', sizeof(hostKB));
    408409    hostKB.lctrl    = XKeysymToKeycode(display, XK_Control_L);
    409410    hostKB.capslock = XKeysymToKeycode(display, XK_Caps_Lock);
     
    464465 * the X11 keycodes will be mapped to the scan codes which the equivalent keys
    465466 * on a PC keyboard would use.
    466  * 
     467 *
    467468 * We use two algorithms to try to determine the mapping.  See the comments
    468469 * attached to the two algorithm functions (X11DRV_InitKeyboardByLayout and
     
    487488unsigned X11DRV_InitKeyboard(Display *display, unsigned *byLayoutOK, unsigned *byTypeOK, int (*remapScancodes)[2])
    488489{
    489     unsigned byLayout; 
    490     unsigned byType; 
     490    unsigned byLayout;
     491    unsigned byType;
    491492
    492493    byLayout = X11DRV_InitKeyboardByLayout(display);
     
    499500       identity mapping is seen */
    500501    if(remapScancodes != NULL)
    501         for(; (*remapScancodes)[0] != (*remapScancodes)[1]; remapScancodes++) 
     502        for(; (*remapScancodes)[0] != (*remapScancodes)[1]; remapScancodes++)
    502503            keyc2scan[(*remapScancodes)[0]] = (*remapScancodes)[1];
    503504
  • trunk/src/VBox/Frontends/VirtualBox/src/X11/keyboard-types.h

    r22426 r26291  
    5050 * in this table (perhaps slightly too minimal...) because I wanted to be sure
    5151 * that the keys chosen will be present on all keyboards, even very reduced
    52  * laptop keyboards. 
     52 * laptop keyboards.
    5353 */
    5454typedef struct {
     
    7979    { "evdev", 0x25, 0x32, 0x42, 0x17, 0x9, 0x24, 0x6f, 0x74,
    8080      0x71, 0x72, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a },
    81     { NULL, 0 } /* Sentinal */
     81    { NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } /* Sentinal */
    8282};
    8383
     
    111111      0x110, 0x117, 0x175, 0x0, 0x0, 0x0, 0x15f, 0x163, 0x0, 0x119, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    112112      0x120, 0x0, 0x122, 0x16c, 0x124, 0x15f, 0x16a, 0x169, 0x0, 0x0, 0x0, 0x119, 0x122, 0x110, 0x12e, 0x0,
    113       0x130, 0x0, 0x0, 0x0, 0x132, 0x167, 0x140, 0x0, 0x0, 0x10b, 0x18b, 0x0, 0x0, 0x0, 0x105, 0x0, 
    114       0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x138, 0x0, 0x0, 0x0, 0x0, 
    115       0x122, 0x122, 0x0, 0x0, 0x0, 0x0, 0x140, 0x122, 0x169, 0x0, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0, 
    116       0x0, 0x165, 0x0, 0x0, 0x0, 0x165, 0x166, 0x167, 0x168, 0x169, 0x16a, 0x16b, 0x16c, 0x16d, 0x0, 0x143, 
     113      0x130, 0x0, 0x0, 0x0, 0x132, 0x167, 0x140, 0x0, 0x0, 0x10b, 0x18b, 0x0, 0x0, 0x0, 0x105, 0x0,
     114      0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x138, 0x0, 0x0, 0x0, 0x0,
     115      0x122, 0x122, 0x0, 0x0, 0x0, 0x0, 0x140, 0x122, 0x169, 0x0, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0,
     116      0x0, 0x165, 0x0, 0x0, 0x0, 0x165, 0x166, 0x167, 0x168, 0x169, 0x16a, 0x16b, 0x16c, 0x16d, 0x0, 0x143,
    117117      0x141, 0x0, 0x157, 0x105, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
    118118    },
  • trunk/src/VBox/Frontends/VirtualBox/src/X11/keyboard.h

    r21873 r26291  
    4848extern CCALL __attribute__((visibility("default"))) unsigned X11DRV_KeyEvent(Display *dpy, KeyCode code);
    4949#else
    50 extern CCALL unsigned *X11DRV_getKeyc2scan();
     50extern CCALL unsigned *X11DRV_getKeyc2scan(void);
    5151extern CCALL unsigned X11DRV_InitKeyboard(Display *dpy, unsigned *byLayoutOK, unsigned *byTypeOK, int (*remapScancodes)[2]);
    5252extern CCALL unsigned X11DRV_KeyEvent(Display *dpy, KeyCode code);
  • trunk/src/VBox/HostServices/SharedFolders/shflhandle.cpp

    r8155 r26291  
    4040static SHFLINTHANDLE *pHandles = NULL;
    4141static int32_t        lastHandleIndex = 0;
    42 static RTCRITSECT     lock = {0};
     42static RTCRITSECT     lock;
    4343
    4444int vbsfInitHandleTable()
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette