VirtualBox

Changeset 36219 in vbox for trunk/include/VBox/HostServices


Ignore:
Timestamp:
Mar 9, 2011 10:57:28 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70433
Message:

Addressed some guest property (transient reset) todos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestPropertySvc.h

    r36214 r36219  
    6060{
    6161    NILFLAG          = 0,
     62    /** Transient until VM gets shut down. */
    6263    TRANSIENT        = RT_BIT(1),
    6364    RDONLYGUEST      = RT_BIT(2),
    6465    RDONLYHOST       = RT_BIT(3),
    65     /** Transient until VM gets a reset / restarts. */
    66     TRANSIENT_RESET  = RT_BIT(4),
     66    /** Transient until VM gets a reset / restarts.
     67     *  Implies TRANSIENT. */
     68    TRANSRESET       = RT_BIT(4),
    6769    READONLY         = RDONLYGUEST | RDONLYHOST,
    68     ALLFLAGS         = TRANSIENT | READONLY | TRANSIENT_RESET
     70    ALLFLAGS         = TRANSIENT | READONLY | TRANSRESET
    6971};
    7072
     
    8789        case READONLY:
    8890            return "READONLY";
    89 /** @todo r=bird: TRANSIENT_RESET is inconsistent with the other constants
    90  *        in that it uses '_' and rather long (RDONLYGUEST would be
    91  *        READONLY_GUEST if '_' was used). Michael, any suggestions how to
    92  *        shorten it? */
    93         case TRANSIENT_RESET:
    94             return "TRANSIENT_RESET";
     91        case TRANSRESET:
     92            return "TRANSRESET";
    9593        default:
    9694            break;
     
    115113 * RDONLYGUEST, RDONLYHOST and RDONLY
    116114 */
    117 /** @todo r=bird: Michael, where to do enforce the "only every return one of
    118  *        R*"? I cannot see it? */
    119 /** @todo r=bird: Should TRANSIENT_RESET imply TRANSIENT or not? See
    120  *        VBoxServicePropCache.cpp.  You've introduced (or maybe just made an
    121  *        existing one more obvious - see abouve) a buffer overrun in
    122  *        writeFlags now. */
    123 enum { MAX_FLAGS_LEN =   sizeof("TRANSIENT_RESET, RDONLYGUEST") };
     115enum { MAX_FLAGS_LEN =   sizeof("TRANSRESET","RDONLYGUEST") };
    124116
    125117/**
     
    138130    static const uint32_t s_aFlagList[] =
    139131    {
    140         /*
    141          * Note: TRANSIENT_RESET must come before TRANSIENT because
    142          * otherwise the RTStrNICmp with the flagNameLen parameter would
    143          * fail below.
    144          */
    145         TRANSIENT_RESET, TRANSIENT, READONLY, RDONLYGUEST, RDONLYHOST
     132        TRANSIENT, READONLY, RDONLYGUEST, RDONLYHOST, TRANSRESET
    146133    };
    147134    const char *pcszNext = pcszFlags;
     
    194181    static const uint32_t s_aFlagList[] =
    195182    {
    196         TRANSIENT_RESET, TRANSIENT, READONLY, RDONLYGUEST, RDONLYHOST
     183        TRANSIENT, READONLY, RDONLYGUEST, RDONLYHOST, TRANSRESET
    197184    };
    198185    char *pszNext = pszFlags;
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