Changeset 5615 in vbox
- Timestamp:
- Nov 2, 2007 1:07:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r5497 r5615 386 386 } 387 387 RTPrintf(" [-usb on|off]\n" 388 " [-usbehci on|off]\n" 388 389 " [-snapshotfolder default|<path>]\n" 389 390 "\n"); … … 3591 3592 #endif 3592 3593 int fUsbEnabled = -1; 3594 int fUsbEhciEnabled = -1; 3593 3595 char *snapshotFolder = NULL; 3594 3596 ULONG guestMemBalloonSize = (ULONG)-1; … … 4081 4083 else 4082 4084 return errorArgument("Invalid -usb argument '%s'", argv[i]); 4085 } 4086 else if (strcmp(argv[i], "-usbehci") == 0) 4087 { 4088 if (argc <= i + 1) 4089 { 4090 return errorArgument("Missing argument to '%s'", argv[i]); 4091 } 4092 i++; 4093 if (strcmp(argv[i], "on") == 0 || strcmp(argv[i], "enable") == 0) 4094 fUsbEhciEnabled = 1; 4095 else if (strcmp(argv[i], "off") == 0 || strcmp(argv[i], "disable") == 0) 4096 fUsbEhciEnabled = 0; 4097 else 4098 return errorArgument("Invalid -usbehci argument '%s'", argv[i]); 4083 4099 } 4084 4100 else if (strcmp(argv[i], "-snapshotfolder") == 0) … … 5084 5100 { 5085 5101 CHECK_ERROR(UsbCtl, COMSETTER(Enabled)(!!fUsbEnabled)); 5102 } 5103 } 5104 /* 5105 * USB EHCI enable/disable 5106 */ 5107 if (fUsbEhciEnabled != -1) 5108 { 5109 ComPtr<IUSBController> UsbCtl; 5110 CHECK_ERROR(machine, COMGETTER(USBController)(UsbCtl.asOutParam())); 5111 if (SUCCEEDED(rc)) 5112 { 5113 CHECK_ERROR(UsbCtl, COMSETTER(EnabledEhci)(!!fUsbEhciEnabled)); 5086 5114 } 5087 5115 }
Note:
See TracChangeset
for help on using the changeset viewer.