VirtualBox

Changeset 92707 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 2, 2021 1:14:23 PM (3 years ago)
Author:
vboxsync
Message:

Guest Control: Resolved a @todo: A bit more scoping for some defines, even if they're part of the guestControl namespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/GuestControl.h

    r84816 r92707  
    6262    PROC_STS_ERROR = 8
    6363};
    64 
    65 /** @todo r=bird: Most defines in this file needs to be scoped a little
    66  *        better!  For instance INPUT_FLAG_NONE is very generic. */
    67 
     64 
    6865/**
    6966 * Input flags, set by the host. This is needed for
     
    7168 * Note: Has to match Main's ProcessInputFlag_* flags!
    7269 */
    73 #define INPUT_FLAG_NONE                     0x0
    74 #define INPUT_FLAG_EOF                      RT_BIT(0)
     70#define GUEST_PROC_IN_FLAG_NONE                     0x0
     71#define GUEST_PROC_IN_FLAG_EOF                      RT_BIT(0)
    7572
    7673/**
     
    9794/** @}   */
    9895
    99 /** @name EXECUTEPROCESSFLAG_XXX - Guest process creation flags.
     96/** @name GUEST_PROC_CREATE_FLAG_XXX - Guest process creation flags.
    10097 * @note Has to match Main's ProcessCreateFlag_* flags!
    10198 * @{
    10299 */
    103 #define EXECUTEPROCESSFLAG_NONE             UINT32_C(0x0)
    104 #define EXECUTEPROCESSFLAG_WAIT_START       RT_BIT(0)
    105 #define EXECUTEPROCESSFLAG_IGNORE_ORPHANED  RT_BIT(1)
    106 #define EXECUTEPROCESSFLAG_HIDDEN           RT_BIT(2)
    107 #define EXECUTEPROCESSFLAG_PROFILE          RT_BIT(3)
    108 #define EXECUTEPROCESSFLAG_WAIT_STDOUT      RT_BIT(4)
    109 #define EXECUTEPROCESSFLAG_WAIT_STDERR      RT_BIT(5)
    110 #define EXECUTEPROCESSFLAG_EXPAND_ARGUMENTS RT_BIT(6)
    111 #define EXECUTEPROCESSFLAG_UNQUOTED_ARGS    RT_BIT(7)
    112 /** @} */
    113 
    114 /** @name OUTPUT_HANDLE_ID_XXX - Pipe handle IDs used internally for referencing
     100#define GUEST_PROC_CREATE_FLAG_NONE             UINT32_C(0x0)
     101#define GUEST_PROC_CREATE_FLAG_WAIT_START       RT_BIT(0)
     102#define GUEST_PROC_CREATE_FLAG_IGNORE_ORPHANED  RT_BIT(1)
     103#define GUEST_PROC_CREATE_FLAG_HIDDEN           RT_BIT(2)
     104#define GUEST_PROC_CREATE_FLAG_PROFILE          RT_BIT(3)
     105#define GUEST_PROC_CREATE_FLAG_WAIT_STDOUT      RT_BIT(4)
     106#define GUEST_PROC_CREATE_FLAG_WAIT_STDERR      RT_BIT(5)
     107#define GUEST_PROC_CREATE_FLAG_EXPAND_ARGUMENTS RT_BIT(6)
     108#define GUEST_PROC_CREATE_FLAG_UNQUOTED_ARGS    RT_BIT(7)
     109/** @} */
     110
     111/** @name GUEST_PROC_OUT_H_XXX - Pipe handle IDs used internally for referencing
    115112 *        to a certain pipe buffer.
    116113 * @{
    117114 */
    118 #define OUTPUT_HANDLE_ID_STDOUT_DEPRECATED  0 /**< Needed for VBox hosts < 4.1.0. */
    119 #define OUTPUT_HANDLE_ID_STDOUT             1
    120 #define OUTPUT_HANDLE_ID_STDERR             2
     115#define GUEST_PROC_OUT_H_STDOUT_DEPRECATED  0 /**< Needed for VBox hosts < 4.1.0. */
     116#define GUEST_PROC_OUT_H_STDOUT             1
     117#define GUEST_PROC_OUT_H_STDERR             2
    121118/** @} */
    122119
     
    135132/** @} */
    136133
    137 /** @name SHUTDOWN_FLAG_XXX - Guest shutdown flags.
     134/** @name GUEST_SHUTDOWN_FLAG_XXX - Guest shutdown flags.
    138135 * Must match Main's GuestShutdownFlag_ definitions.
    139136 * @{
    140137 */
    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)
     138#define GUEST_SHUTDOWN_FLAG_NONE            UINT32_C(0)
     139#define GUEST_SHUTDOWN_FLAG_POWER_OFF       RT_BIT(0)
     140#define GUEST_SHUTDOWN_FLAG_REBOOT          RT_BIT(1)
     141#define GUEST_SHUTDOWN_FLAG_FORCE           RT_BIT(2)
    145142/** @} */
    146143
     
    150147 * @{
    151148 */
    152 #define GUESTPROCESS_DEFAULT_CMD_LEN        _1K
    153 #define GUESTPROCESS_DEFAULT_ARGS_LEN       _1K
    154 #define GUESTPROCESS_DEFAULT_ENV_LEN        _1K
    155 #define GUESTPROCESS_DEFAULT_USER_LEN       128
    156 #define GUESTPROCESS_DEFAULT_PASSWORD_LEN   128
    157 #define GUESTPROCESS_DEFAULT_DOMAIN_LEN     256
     149#define GUEST_PROC_DEF_CMD_LEN        _1K
     150#define GUEST_PROC_DEF_ARGS_LEN       _1K
     151#define GUEST_PROC_DEF_ENV_LEN        _1K
     152#define GUEST_PROC_DEF_USER_LEN       128
     153#define GUEST_PROC_DEF_PASSWORD_LEN   128
     154#define GUEST_PROC_DEF_DOMAIN_LEN     256
    158155/** @} */
    159156
     
    161158 * @{
    162159 */
    163 #define GUESTPROCESS_MAX_CMD_LEN            _1M
    164 #define GUESTPROCESS_MAX_ARGS_LEN           _2M
    165 #define GUESTPROCESS_MAX_ENV_LEN            _4M
    166 #define GUESTPROCESS_MAX_USER_LEN           _64K
    167 #define GUESTPROCESS_MAX_PASSWORD_LEN       _64K
    168 #define GUESTPROCESS_MAX_DOMAIN_LEN         _64K
     160#define GUEST_PROC_MAX_CMD_LEN            _1M
     161#define GUEST_PROC_MAX_ARGS_LEN           _2M
     162#define GUEST_PROC_MAX_ENV_LEN            _4M
     163#define GUEST_PROC_MAX_USER_LEN           _64K
     164#define GUEST_PROC_MAX_PASSWORD_LEN       _64K
     165#define GUEST_PROC_MAX_DOMAIN_LEN         _64K
    169166/** @} */
    170167
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette