Changeset 84816 in vbox
- Timestamp:
- Jun 12, 2020 12:53:12 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138622
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/include/VBox/GuestHost/GuestControl.h ¶
r84732 r84816 135 135 /** @} */ 136 136 137 /** @name SHUTDOWN_FLAG_XXX - Guest shutdown flags. 138 * Must match Main's GuestShutdownFlag_ definitions. 139 * @{ 140 */ 141 #define SHUTDOWN_FLAG_NONE UINT32_C(0) 142 #define SHUTDOWN_FLAG_POWER_OFF RT_BIT(0) 143 #define SHUTDOWN_FLAG_REBOOT RT_BIT(1) 144 #define SHUTDOWN_FLAG_FORCE RT_BIT(2) 145 /** @} */ 146 137 147 /** @name Defines for default (initial) guest process buffer lengths. 138 148 * Note: These defaults were the maximum values before; so be careful when raising those in order to -
TabularUnified trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp ¶
r84814 r84816 1021 1021 int fSystemShutdown = RTSYSTEM_SHUTDOWN_PLANNED; 1022 1022 1023 /* Translate GuestShutdownFlag_XXXinto RTSYSTEM_SHUTDOWN_ flags. */1024 if (fAction & GuestShutdownFlag_Reboot)1023 /* Translate SHUTDOWN_FLAG_ into RTSYSTEM_SHUTDOWN_ flags. */ 1024 if (fAction & SHUTDOWN_FLAG_REBOOT) 1025 1025 fSystemShutdown |= RTSYSTEM_SHUTDOWN_REBOOT; 1026 else 1026 else /* SHUTDOWN_FLAG_POWER_OFF */ 1027 1027 fSystemShutdown |= RTSYSTEM_SHUTDOWN_POWER_OFF; 1028 1028 1029 if (fAction & GuestShutdownFlag_Force)1029 if (fAction & SHUTDOWN_FLAG_FORCE) 1030 1030 fSystemShutdown |= RTSYSTEM_SHUTDOWN_FORCE; 1031 1031
Note:
See TracChangeset
for help on using the changeset viewer.