Changeset 41915 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jun 26, 2012 9:18:41 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r41842 r41915 339 339 " [--usbcardreader on|off]\n" 340 340 #endif 341 " [--autostart-enabled on|off]\n" 342 " [--autostart-delay <seconds>]\n" 343 " [--autostop-type disabled|savestate|poweroff|acpishutdown]\n" 341 344 "\n"); 342 345 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r41890 r41915 391 391 CHECK_ERROR2_RET(a_pObj, COMGETTER(a_Prop)(&u32), hrcCheck); \ 392 392 if (details == VMINFO_MACHINEREADABLE) \ 393 RTPrintf(a_sz Human "=%u", u32); \393 RTPrintf(a_szMachine "=%u\n", u32); \ 394 394 else \ 395 395 RTPrintf("%-16s %u" a_szUnit "\n", a_szHuman ":", u32); \ … … 679 679 SHOW_BOOLEAN_PROP( machine, AllowTracingToAccessVM, "tracing-allow-vm-access", "Allow Tracing to Access VM"); 680 680 SHOW_STRING_PROP( machine, TracingConfig, "tracing-config", "Tracing Configuration"); 681 SHOW_BOOLEAN_PROP( machine, AutostartEnabled, "autostart-enabled", "Autostart Enabled"); 682 SHOW_ULONG_PROP( machine, AutostartDelay, "autostart-delay", "Autostart Delay", ""); 681 683 682 684 /** @todo Convert the remainder of the function to SHOW_XXX macros and add error -
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.