VirtualBox

Changeset 84814 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 12, 2020 12:43:02 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138620
Message:

Guest Control: Also implemented a "force" flag for the reboot/shutdown command. bugref:9320

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r84740 r84814  
    1179111791  <enum
    1179211792    name="GuestShutdownFlag"
    11793     uuid="587309CD-DDDA-4619-82B0-4B764D9D3BC1"
     11793    uuid="28D19C9C-5862-4930-B29A-F117712B4864"
    1179411794  >
    1179511795    <desc>
     
    1180511805    <const name="Reboot"                    value="2">
    1180611806      <desc>Performs a reboot after shutdown.</desc>
     11807    </const>
     11808    <const name="Force"                     value="4">
     11809      <desc>Force the system to shutdown/reboot regardless of objecting
     11810        application or other stuff. This flag might not be realized on
     11811        all systems.</desc>
    1180711812    </const>
    1180811813  </enum>
  • trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp

    r84585 r84814  
    505505            fFlags |= aFlags[i];
    506506
    507     const uint32_t fValidFlags = GuestShutdownFlag_None | GuestShutdownFlag_PowerOff | GuestShutdownFlag_Reboot;
     507    const uint32_t fValidFlags = GuestShutdownFlag_None
     508                               | GuestShutdownFlag_PowerOff | GuestShutdownFlag_Reboot | GuestShutdownFlag_Force;
    508509    if (fFlags & ~fValidFlags)
    509510        return setError(E_INVALIDARG,tr("Unknown flags: flags value %#x, invalid: %#x"), fFlags, fFlags & ~fValidFlags);
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