Changeset 41915 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
- Timestamp:
- Jun 26, 2012 9:18:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r41371 r41915 180 180 MODIFYVM_FAULT_TOLERANCE_SYNC_INTERVAL, 181 181 MODIFYVM_CPU_EXECTUION_CAP, 182 MODIFYVM_AUTOSTART_ENABLED, 183 MODIFYVM_AUTOSTART_DELAY, 184 MODIFYVM_AUTOSTOP_TYPE, 182 185 #ifdef VBOX_WITH_PCI_PASSTHROUGH 183 186 MODIFYVM_ATTACH_PCI, … … 322 325 { "--faulttolerancesyncinterval", MODIFYVM_FAULT_TOLERANCE_SYNC_INTERVAL, RTGETOPT_REQ_UINT32 }, 323 326 { "--chipset", MODIFYVM_CHIPSET, RTGETOPT_REQ_STRING }, 327 { "--autostart-enabled", MODIFYVM_AUTOSTART_ENABLED, RTGETOPT_REQ_BOOL_ONOFF }, 328 { "--autostart-delay", MODIFYVM_AUTOSTART_DELAY, RTGETOPT_REQ_UINT32 }, 329 { "--autostop-type", MODIFYVM_AUTOSTOP_TYPE, RTGETOPT_REQ_STRING }, 324 330 #ifdef VBOX_WITH_PCI_PASSTHROUGH 325 331 { "--pciattach", MODIFYVM_ATTACH_PCI, RTGETOPT_REQ_STRING }, … … 2364 2370 break; 2365 2371 } 2372 case MODIFYVM_AUTOSTART_ENABLED: 2373 { 2374 CHECK_ERROR(machine, COMSETTER(AutostartEnabled)(ValueUnion.f)); 2375 break; 2376 } 2377 2378 case MODIFYVM_AUTOSTART_DELAY: 2379 { 2380 AutostopType_T enmAutostopType = AutostopType_Disabled; 2381 2382 if (!RTStrICmp(ValueUnion.psz, "disabled")) 2383 enmAutostopType = AutostopType_Disabled; 2384 else if (!RTStrICmp(ValueUnion.psz, "savestate")) 2385 enmAutostopType = AutostopType_SaveState; 2386 else if (!RTStrICmp(ValueUnion.psz, "poweroff")) 2387 enmAutostopType = AutostopType_PowerOff; 2388 else if (!RTStrICmp(ValueUnion.psz, "acpishutdown")) 2389 enmAutostopType = AutostopType_AcpiShutdown; 2390 else 2391 { 2392 errorArgument("Invalid --autostop-type argument '%s' (valid: disabled, savestate, poweroff, acpishutdown)", ValueUnion.psz); 2393 rc = E_FAIL; 2394 } 2395 2396 if (SUCCEEDED(rc)) 2397 CHECK_ERROR(machine, COMSETTER(AutostopType)(enmAutostopType)); 2398 break; 2399 } 2400 2401 case MODIFYVM_AUTOSTOP_TYPE: 2402 { 2403 CHECK_ERROR(machine, COMSETTER(AutostopType)(ValueUnion.u32)); 2404 break; 2405 } 2366 2406 #ifdef VBOX_WITH_PCI_PASSTHROUGH 2367 2407 case MODIFYVM_ATTACH_PCI:
Note:
See TracChangeset
for help on using the changeset viewer.