Changeset 76958 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Jan 23, 2019 6:23:04 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128342
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 8 8 /branches/VBox-5.0/src/VBox:104938,104943,104950,104987-104988,104990,106453 9 9 /branches/VBox-5.1/src/VBox:112367,116543,116550,116568,116573 10 /branches/VBox-5.2/src/VBox:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,124263,124273,124277-124279,124284-124286,124288-124290,125768,125779-125780,125812 10 /branches/VBox-5.2/src/VBox:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,124263,124273,124277-124279,124284-124286,124288-124290,125768,125779-125780,125812,127158-127159,127162-127167,127180 11 11 /branches/andy/draganddrop/src/VBox:90781-91268 12 12 /branches/andy/guestctrl20/src/VBox:78916,78930
-
- Property svn:mergeinfo
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r76553 r76958 245 245 Assert(g_idControlSvcClient > 0); 246 246 247 /* Allocate a scratch buffer for commands which also send247 /* Allocate a scratch buffer for messages which also send 248 248 * payload data with them. */ 249 249 uint32_t cbScratchBuf = _64K; /** @todo Make buffer size configurable via guest properties/argv! */ … … 264 264 cRetrievalFailed = 0; /* Reset failed retrieval count. */ 265 265 VGSvcVerbose(4, "idMsg=%RU32 (%s) (%RU32 parms) retrieved\n", 266 idMsg, GstCtrlHost FnName((eHostFn)idMsg), ctxHost.uNumParms);266 idMsg, GstCtrlHostMsgtoStr((eHostMsg)idMsg), ctxHost.uNumParms); 267 267 268 268 /* … … 271 271 switch (idMsg) 272 272 { 273 case HOST_ CANCEL_PENDING_WAITS:273 case HOST_MSG_CANCEL_PENDING_WAITS: 274 274 VGSvcVerbose(1, "We were asked to quit ...\n"); 275 275 break; 276 276 277 case HOST_ SESSION_CREATE:277 case HOST_MSG_SESSION_CREATE: 278 278 rc = vgsvcGstCtrlHandleSessionOpen(&ctxHost); 279 279 break; 280 280 281 281 /* This message is also sent to the child session process (by the host). */ 282 case HOST_ SESSION_CLOSE:282 case HOST_MSG_SESSION_CLOSE: 283 283 rc = vgsvcGstCtrlHandleSessionClose(&ctxHost); 284 284 break; … … 289 289 rc = VbglR3GuestCtrlMsgSkip(g_idControlSvcClient, VERR_NOT_SUPPORTED, idMsg); 290 290 VGSvcVerbose(1, "Skipped unexpected message idMsg=%RU32 (%s), cParms=%RU32 (rc=%Rrc)\n", 291 idMsg, GstCtrlHost FnName((eHostFn)idMsg), ctxHost.uNumParms, rc);291 idMsg, GstCtrlHostMsgtoStr((eHostMsg)idMsg), ctxHost.uNumParms, rc); 292 292 } 293 293 else … … 300 300 301 301 /* Do we need to shutdown? */ 302 if (idMsg == HOST_ CANCEL_PENDING_WAITS)302 if (idMsg == HOST_MSG_CANCEL_PENDING_WAITS) 303 303 break; 304 304 … … 561 561 #endif 562 562 " --control-interval Specifies the interval at which to check for\n" 563 " new control commands. The default is 1000 ms.\n"563 " new control messages. The default is 1000 ms.\n" 564 564 , 565 565 /* methods */ -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r76553 r76958 939 939 *ppvScratchBuf, RT_MIN(cbInput, *pcbScratchBuf)); 940 940 if (RT_FAILURE(rc)) 941 VGSvcError("Error handling input commandfor PID=%RU32, rc=%Rrc\n", uPID, rc);941 VGSvcError("Error handling input message for PID=%RU32, rc=%Rrc\n", uPID, rc); 942 942 VGSvcGstCtrlProcessRelease(pProcess); 943 943 } … … 1129 1129 switch (uMsg) 1130 1130 { 1131 case HOST_ SESSION_CLOSE:1131 case HOST_MSG_SESSION_CLOSE: 1132 1132 /* Shutdown (this spawn). */ 1133 1133 rc = VGSvcGstCtrlSessionClose(pSession); … … 1135 1135 break; 1136 1136 1137 case HOST_ DIR_REMOVE:1137 case HOST_MSG_DIR_REMOVE: 1138 1138 if (fImpersonated) 1139 1139 rc = vgsvcGstCtrlSessionHandleDirRemove(pSession, pHostCtx); 1140 1140 break; 1141 1141 1142 case HOST_ EXEC_CMD:1142 case HOST_MSG_EXEC_CMD: 1143 1143 rc = vgsvcGstCtrlSessionHandleProcExec(pSession, pHostCtx); 1144 1144 break; 1145 1145 1146 case HOST_ EXEC_SET_INPUT:1146 case HOST_MSG_EXEC_SET_INPUT: 1147 1147 rc = vgsvcGstCtrlSessionHandleProcInput(pSession, pHostCtx, ppvScratchBuf, pcbScratchBuf); 1148 1148 break; 1149 1149 1150 case HOST_ EXEC_GET_OUTPUT:1150 case HOST_MSG_EXEC_GET_OUTPUT: 1151 1151 rc = vgsvcGstCtrlSessionHandleProcOutput(pSession, pHostCtx); 1152 1152 break; 1153 1153 1154 case HOST_ EXEC_TERMINATE:1154 case HOST_MSG_EXEC_TERMINATE: 1155 1155 rc = vgsvcGstCtrlSessionHandleProcTerminate(pSession, pHostCtx); 1156 1156 break; 1157 1157 1158 case HOST_ EXEC_WAIT_FOR:1158 case HOST_MSG_EXEC_WAIT_FOR: 1159 1159 rc = vgsvcGstCtrlSessionHandleProcWaitFor(pSession, pHostCtx); 1160 1160 break; 1161 1161 1162 case HOST_ FILE_OPEN:1162 case HOST_MSG_FILE_OPEN: 1163 1163 if (fImpersonated) 1164 1164 rc = vgsvcGstCtrlSessionHandleFileOpen(pSession, pHostCtx); 1165 1165 break; 1166 1166 1167 case HOST_ FILE_CLOSE:1167 case HOST_MSG_FILE_CLOSE: 1168 1168 if (fImpersonated) 1169 1169 rc = vgsvcGstCtrlSessionHandleFileClose(pSession, pHostCtx); 1170 1170 break; 1171 1171 1172 case HOST_ FILE_READ:1172 case HOST_MSG_FILE_READ: 1173 1173 if (fImpersonated) 1174 1174 rc = vgsvcGstCtrlSessionHandleFileRead(pSession, pHostCtx, ppvScratchBuf, pcbScratchBuf); 1175 1175 break; 1176 1176 1177 case HOST_ FILE_READ_AT:1177 case HOST_MSG_FILE_READ_AT: 1178 1178 if (fImpersonated) 1179 1179 rc = vgsvcGstCtrlSessionHandleFileReadAt(pSession, pHostCtx, ppvScratchBuf, pcbScratchBuf); 1180 1180 break; 1181 1181 1182 case HOST_ FILE_WRITE:1182 case HOST_MSG_FILE_WRITE: 1183 1183 if (fImpersonated) 1184 1184 rc = vgsvcGstCtrlSessionHandleFileWrite(pSession, pHostCtx, ppvScratchBuf, pcbScratchBuf); 1185 1185 break; 1186 1186 1187 case HOST_ FILE_WRITE_AT:1187 case HOST_MSG_FILE_WRITE_AT: 1188 1188 if (fImpersonated) 1189 1189 rc = vgsvcGstCtrlSessionHandleFileWriteAt(pSession, pHostCtx, ppvScratchBuf, pcbScratchBuf); 1190 1190 break; 1191 1191 1192 case HOST_ FILE_SEEK:1192 case HOST_MSG_FILE_SEEK: 1193 1193 if (fImpersonated) 1194 1194 rc = vgsvcGstCtrlSessionHandleFileSeek(pSession, pHostCtx); 1195 1195 break; 1196 1196 1197 case HOST_ FILE_TELL:1197 case HOST_MSG_FILE_TELL: 1198 1198 if (fImpersonated) 1199 1199 rc = vgsvcGstCtrlSessionHandleFileTell(pSession, pHostCtx); 1200 1200 break; 1201 1201 1202 case HOST_ PATH_RENAME:1202 case HOST_MSG_PATH_RENAME: 1203 1203 if (fImpersonated) 1204 1204 rc = vgsvcGstCtrlSessionHandlePathRename(pSession, pHostCtx); 1205 1205 break; 1206 1206 1207 case HOST_ PATH_USER_DOCUMENTS:1207 case HOST_MSG_PATH_USER_DOCUMENTS: 1208 1208 if (fImpersonated) 1209 1209 rc = vgsvcGstCtrlSessionHandlePathUserDocuments(pSession, pHostCtx); 1210 1210 break; 1211 1211 1212 case HOST_ PATH_USER_HOME:1212 case HOST_MSG_PATH_USER_HOME: 1213 1213 if (fImpersonated) 1214 1214 rc = vgsvcGstCtrlSessionHandlePathUserHome(pSession, pHostCtx); … … 1529 1529 { 1530 1530 /* 1531 * Allocate a scratch buffer for commands which also send payload data with them.1531 * Allocate a scratch buffer for messages which also send payload data with them. 1532 1532 * This buffer may grow if the host sends us larger chunks of data. 1533 1533 */
Note:
See TracChangeset
for help on using the changeset viewer.