Changeset 26291 in vbox for trunk/src/VBox
- Timestamp:
- Feb 5, 2010 2:27:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57360
- Location:
- trunk/src/VBox
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp
r25981 r26291 3794 3794 iscsiComposeLocation, 3795 3795 /* pfnComposeName */ 3796 iscsiComposeName 3796 iscsiComposeName, 3797 /* pfnCompact */ 3798 NULL 3797 3799 }; -
trunk/src/VBox/Devices/Storage/ParallelsHDDCore.cpp
r26163 r26291 1292 1292 genericFileComposeLocation, 1293 1293 /* pfnComposeName */ 1294 genericFileComposeName 1294 genericFileComposeName, 1295 /* pfnCompact */ 1296 NULL 1295 1297 }; 1296 1298 -
trunk/src/VBox/Devices/Storage/RawHDDCore.cpp
r23973 r26291 1321 1321 genericFileComposeLocation, 1322 1322 /* pfnComposeName */ 1323 genericFileComposeName 1323 genericFileComposeName, 1324 /* pfnCompact */ 1325 NULL 1324 1326 }; 1325 1327 -
trunk/src/VBox/Frontends/VirtualBox/src/X11/keyboard-new.c
r22426 r26291 57 57 #define KEYC2SCAN_SIZE 256 58 58 59 /** 59 /** 60 60 * Array containing the current mapping of keycodes to scan codes, detected 61 61 * using the keyboard layout algorithm in X11DRV_InitKeyboardByLayout. … … 270 270 * which one the X11 keycodes would be most sequential and hope that they 271 271 * really are layed out more or less sequentially. 272 * 272 * 273 273 * 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 275 275 * know which PC scan code corresponds to each key in the layout, we can use 276 276 * this information to associate the scan code with an X11 keycode, which is … … 404 404 { 405 405 unsigned i = 0, found = 0; 406 407 keyboard_type hostKB = { 0 }; 406 407 keyboard_type hostKB; 408 memset(&hostKB, '\0', sizeof(hostKB)); 408 409 hostKB.lctrl = XKeysymToKeycode(display, XK_Control_L); 409 410 hostKB.capslock = XKeysymToKeycode(display, XK_Caps_Lock); … … 464 465 * the X11 keycodes will be mapped to the scan codes which the equivalent keys 465 466 * on a PC keyboard would use. 466 * 467 * 467 468 * We use two algorithms to try to determine the mapping. See the comments 468 469 * attached to the two algorithm functions (X11DRV_InitKeyboardByLayout and … … 487 488 unsigned X11DRV_InitKeyboard(Display *display, unsigned *byLayoutOK, unsigned *byTypeOK, int (*remapScancodes)[2]) 488 489 { 489 unsigned byLayout; 490 unsigned byType; 490 unsigned byLayout; 491 unsigned byType; 491 492 492 493 byLayout = X11DRV_InitKeyboardByLayout(display); … … 499 500 identity mapping is seen */ 500 501 if(remapScancodes != NULL) 501 for(; (*remapScancodes)[0] != (*remapScancodes)[1]; remapScancodes++) 502 for(; (*remapScancodes)[0] != (*remapScancodes)[1]; remapScancodes++) 502 503 keyc2scan[(*remapScancodes)[0]] = (*remapScancodes)[1]; 503 504 -
trunk/src/VBox/Frontends/VirtualBox/src/X11/keyboard-types.h
r22426 r26291 50 50 * in this table (perhaps slightly too minimal...) because I wanted to be sure 51 51 * that the keys chosen will be present on all keyboards, even very reduced 52 * laptop keyboards. 52 * laptop keyboards. 53 53 */ 54 54 typedef struct { … … 79 79 { "evdev", 0x25, 0x32, 0x42, 0x17, 0x9, 0x24, 0x6f, 0x74, 80 80 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 */ 82 82 }; 83 83 … … 111 111 0x110, 0x117, 0x175, 0x0, 0x0, 0x0, 0x15f, 0x163, 0x0, 0x119, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 112 112 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, 117 117 0x141, 0x0, 0x157, 0x105, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 118 118 }, -
trunk/src/VBox/Frontends/VirtualBox/src/X11/keyboard.h
r21873 r26291 48 48 extern CCALL __attribute__((visibility("default"))) unsigned X11DRV_KeyEvent(Display *dpy, KeyCode code); 49 49 #else 50 extern CCALL unsigned *X11DRV_getKeyc2scan( );50 extern CCALL unsigned *X11DRV_getKeyc2scan(void); 51 51 extern CCALL unsigned X11DRV_InitKeyboard(Display *dpy, unsigned *byLayoutOK, unsigned *byTypeOK, int (*remapScancodes)[2]); 52 52 extern CCALL unsigned X11DRV_KeyEvent(Display *dpy, KeyCode code); -
trunk/src/VBox/HostServices/SharedFolders/shflhandle.cpp
r8155 r26291 40 40 static SHFLINTHANDLE *pHandles = NULL; 41 41 static int32_t lastHandleIndex = 0; 42 static RTCRITSECT lock = {0};42 static RTCRITSECT lock; 43 43 44 44 int vbsfInitHandleTable()
Note:
See TracChangeset
for help on using the changeset viewer.