Changeset 36219 in vbox for trunk/include/VBox/HostServices
- Timestamp:
- Mar 9, 2011 10:57:28 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70433
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestPropertySvc.h
r36214 r36219 60 60 { 61 61 NILFLAG = 0, 62 /** Transient until VM gets shut down. */ 62 63 TRANSIENT = RT_BIT(1), 63 64 RDONLYGUEST = RT_BIT(2), 64 65 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), 67 69 READONLY = RDONLYGUEST | RDONLYHOST, 68 ALLFLAGS = TRANSIENT | READONLY | TRANS IENT_RESET70 ALLFLAGS = TRANSIENT | READONLY | TRANSRESET 69 71 }; 70 72 … … 87 89 case READONLY: 88 90 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"; 95 93 default: 96 94 break; … … 115 113 * RDONLYGUEST, RDONLYHOST and RDONLY 116 114 */ 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") }; 115 enum { MAX_FLAGS_LEN = sizeof("TRANSRESET","RDONLYGUEST") }; 124 116 125 117 /** … … 138 130 static const uint32_t s_aFlagList[] = 139 131 { 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 146 133 }; 147 134 const char *pcszNext = pcszFlags; … … 194 181 static const uint32_t s_aFlagList[] = 195 182 { 196 TRANSIENT _RESET, TRANSIENT, READONLY, RDONLYGUEST, RDONLYHOST183 TRANSIENT, READONLY, RDONLYGUEST, RDONLYHOST, TRANSRESET 197 184 }; 198 185 char *pszNext = pszFlags;
Note:
See TracChangeset
for help on using the changeset viewer.