Changeset 45078 in vbox
- Timestamp:
- Mar 18, 2013 9:09:20 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r44897 r45078 2228 2228 2229 2229 2230 /** @} */ 2231 2232 /** @name VBox Guest Control Status Codes 2233 * @{ 2234 */ 2235 /** Guest side reported an error. */ 2236 #define VERR_GSTCTL_GUEST_ERROR (-7100) 2237 /** @} */ 2238 2239 2230 2240 /* SED-END */ 2231 2241 -
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r45010 r45078 482 482 switch (rc) 483 483 { 484 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */484 case VERR_GSTCTL_GUEST_ERROR: 485 485 hr = GuestSession::setErrorExternal(this, guestRc); 486 486 break; -
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r43162 r45078 263 263 switch (rc) 264 264 { 265 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */265 case VERR_GSTCTL_GUEST_ERROR: 266 266 hr = GuestProcess::setErrorExternal(this, guestRc); 267 267 break; -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r45077 r45078 939 939 } 940 940 else 941 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */941 vrc = VERR_GSTCTL_GUEST_ERROR; 942 942 943 943 if (pGuestRc) … … 1164 1164 } 1165 1165 else 1166 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1166 vrc = VERR_GSTCTL_GUEST_ERROR; 1167 1167 1168 1168 if (pGuestRc) … … 1295 1295 } 1296 1296 else 1297 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1297 vrc = VERR_GSTCTL_GUEST_ERROR; 1298 1298 1299 1299 if (pGuestRc) … … 1332 1332 if (pGuestRc) 1333 1333 *pGuestRc = mData.mRC; /* Return last set error. */ 1334 return VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1334 return VERR_GSTCTL_GUEST_ERROR; 1335 1335 } 1336 1336 … … 1441 1441 if (pGuestRc) 1442 1442 *pGuestRc = mData.mRC; /* Return last set error (if any). */ 1443 return RT_SUCCESS(mData.mRC) ? VINF_SUCCESS : VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1443 return RT_SUCCESS(mData.mRC) ? VINF_SUCCESS : VERR_GSTCTL_GUEST_ERROR; 1444 1444 } 1445 1445 … … 1471 1471 { 1472 1472 waitResult = pEvent->GetWaitResult(); 1473 int waitRc = pEvent->GetWaitRc(); 1474 1475 LogFlowThisFunc(("Waiting event returned rc=%Rrc\n", waitRc)); 1473 int guestRc = pEvent->GetWaitRc(); 1474 if (RT_FAILURE(guestRc)) 1475 vrc = VERR_GSTCTL_GUEST_ERROR; 1476 1477 LogFlowThisFunc(("Waiting event returned rc=%Rrc\n", guestRc)); 1476 1478 1477 1479 if (pGuestRc) 1478 *pGuestRc = waitRc; 1479 1480 vrc = RT_SUCCESS(waitRc) ? VINF_SUCCESS : VERR_GENERAL_FAILURE; /** @todo Special guest control rc needed! */ 1480 *pGuestRc = guestRc; 1481 1481 } 1482 1482 … … 1603 1603 } 1604 1604 else 1605 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1605 vrc = VERR_GSTCTL_GUEST_ERROR; 1606 1606 1607 1607 if (pGuestRc) … … 1653 1653 switch (vrc) 1654 1654 { 1655 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */1655 case VERR_GSTCTL_GUEST_ERROR: 1656 1656 hr = GuestProcess::setErrorExternal(this, guestRc); 1657 1657 break; … … 1690 1690 switch (vrc) 1691 1691 { 1692 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */1692 case VERR_GSTCTL_GUEST_ERROR: 1693 1693 hr = GuestProcess::setErrorExternal(this, guestRc); 1694 1694 break; … … 1750 1750 switch (vrc) 1751 1751 { 1752 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */1752 case VERR_GSTCTL_GUEST_ERROR: 1753 1753 hr = GuestProcess::setErrorExternal(this, guestRc); 1754 1754 break; … … 1818 1818 switch (vrc) 1819 1819 { 1820 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */1820 case VERR_GSTCTL_GUEST_ERROR: 1821 1821 hr = GuestProcess::setErrorExternal(this, guestRc); 1822 1822 break; … … 1899 1899 ) 1900 1900 { 1901 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1901 vrc = VERR_GSTCTL_GUEST_ERROR; 1902 1902 } 1903 1903 … … 2049 2049 2050 2050 case ProcessWaitResult_Error: 2051 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */2051 vrc = VERR_GSTCTL_GUEST_ERROR; 2052 2052 break; 2053 2053 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r45010 r45078 554 554 } 555 555 else 556 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */556 vrc = VERR_GSTCTL_GUEST_ERROR; 557 557 558 558 if (pGuestRc) … … 597 597 int GuestSession::directoryCreateInternal(const Utf8Str &strPath, uint32_t uMode, uint32_t uFlags, int *pGuestRc) 598 598 { 599 /* pGuestRc is optional. */ 600 599 601 LogFlowThisFunc(("strPath=%s, uMode=%x, uFlags=%x\n", 600 602 strPath.c_str(), uMode, uFlags)); … … 640 642 } 641 643 642 if (vrc == VERR_GENERAL_FAILURE) /** @todo Special guest control rc needed! */ 644 if ( vrc == VERR_GSTCTL_GUEST_ERROR 645 && pGuestRc) 646 { 643 647 *pGuestRc = guestRc; 648 } 644 649 } 645 650 … … 693 698 } 694 699 695 if ( vrc == VERR_G ENERAL_FAILURE /** @todo Special guest control rc needed! */700 if ( vrc == VERR_GSTCTL_GUEST_ERROR 696 701 && pGuestRc) 702 { 697 703 *pGuestRc = guestRc; 704 } 698 705 699 706 LogFlowFuncLeaveRC(vrc); … … 900 907 } 901 908 902 if ( vrc == VERR_G ENERAL_FAILURE /** @todo Special guest control rc needed! */909 if ( vrc == VERR_GSTCTL_GUEST_ERROR 903 910 && pGuestRc) 911 { 904 912 *pGuestRc = guestRc; 913 } 905 914 906 915 LogFlowFuncLeaveRC(vrc); … … 1028 1037 } 1029 1038 1030 if ( vrc == VERR_G ENERAL_FAILURE /** @todo Special guest control rc needed! */1039 if ( vrc == VERR_GSTCTL_GUEST_ERROR 1031 1040 && pGuestRc) 1041 { 1032 1042 *pGuestRc = guestRc; 1043 } 1033 1044 1034 1045 LogFlowFuncLeaveRC(vrc); … … 1253 1264 } 1254 1265 else 1255 vrc = VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1266 vrc = VERR_GSTCTL_GUEST_ERROR; 1256 1267 1257 1268 if (pGuestRc) … … 1640 1651 if (pGuestRc) 1641 1652 *pGuestRc = mData.mRC; /* Return last set error. */ 1642 return VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1653 return VERR_GSTCTL_GUEST_ERROR; 1643 1654 } 1644 1655 … … 1715 1726 if (pGuestRc) 1716 1727 *pGuestRc = mData.mRC; /* Return last set error (if any). */ 1717 return RT_SUCCESS(mData.mRC) ? VINF_SUCCESS : VERR_G ENERAL_FAILURE; /** @todo Special guest control rc needed! */1728 return RT_SUCCESS(mData.mRC) ? VINF_SUCCESS : VERR_GSTCTL_GUEST_ERROR; 1718 1729 } 1719 1730 … … 1745 1756 { 1746 1757 waitResult = pEvent->GetWaitResult(); 1747 int waitRc = pEvent->GetWaitRc(); 1748 1749 LogFlowThisFunc(("Waiting event returned rc=%Rrc\n", waitRc)); 1758 int guestRc = pEvent->GetWaitRc(); 1759 if (RT_FAILURE(guestRc)) 1760 vrc = VERR_GSTCTL_GUEST_ERROR; 1761 1762 LogFlowThisFunc(("Waiting event returned rc=%Rrc\n", guestRc)); 1750 1763 1751 1764 if (pGuestRc) 1752 *pGuestRc = waitRc; 1753 1754 vrc = RT_SUCCESS(waitRc) ? VINF_SUCCESS : VERR_GENERAL_FAILURE; /** @todo Special guest control rc needed! */ 1765 *pGuestRc = guestRc; 1755 1766 } 1756 1767 … … 1963 1974 switch (rc) 1964 1975 { 1965 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */1976 case VERR_GSTCTL_GUEST_ERROR: 1966 1977 hr = GuestProcess::setErrorExternal(this, guestRc); 1967 1978 break; … … 2019 2030 switch (rc) 2020 2031 { 2021 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2032 case VERR_GSTCTL_GUEST_ERROR: 2022 2033 hr = GuestProcess::setErrorExternal(this, guestRc); 2023 2034 break; … … 2060 2071 switch (rc) 2061 2072 { 2062 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2073 case VERR_GSTCTL_GUEST_ERROR: 2063 2074 hr = GuestProcess::setErrorExternal(this, guestRc); 2064 2075 break; … … 2170 2181 switch (vrc) 2171 2182 { 2172 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2183 case VERR_GSTCTL_GUEST_ERROR: 2173 2184 hr = GuestProcess::setErrorExternal(this, guestRc); 2174 2185 break; … … 2372 2383 switch (vrc) 2373 2384 { 2374 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2385 case VERR_GSTCTL_GUEST_ERROR: 2375 2386 hr = GuestProcess::setErrorExternal(this, guestRc); 2376 2387 break; … … 2411 2422 switch (vrc) 2412 2423 { 2413 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2424 case VERR_GSTCTL_GUEST_ERROR: 2414 2425 hr = GuestProcess::setErrorExternal(this, guestRc); 2415 2426 break; … … 2471 2482 switch (vrc) 2472 2483 { 2473 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2484 case VERR_GSTCTL_GUEST_ERROR: 2474 2485 hr = GuestProcess::setErrorExternal(this, guestRc); 2475 2486 break; … … 2522 2533 switch (vrc) 2523 2534 { 2524 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2535 case VERR_GSTCTL_GUEST_ERROR: 2525 2536 hr = GuestProcess::setErrorExternal(this, guestRc); 2526 2537 break; … … 2566 2577 switch (vrc) 2567 2578 { 2568 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2579 case VERR_GSTCTL_GUEST_ERROR: 2569 2580 hr = GuestProcess::setErrorExternal(this, guestRc); 2570 2581 break; … … 2858 2869 switch (vrc) 2859 2870 { 2860 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */2871 case VERR_GSTCTL_GUEST_ERROR: 2861 2872 hr = GuestSession::setErrorExternal(this, guestRc); 2862 2873 break; -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r45010 r45078 324 324 switch (rc) 325 325 { 326 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */326 case VERR_GSTCTL_GUEST_ERROR: 327 327 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 328 328 GuestProcess::guestErrorToString(guestRc)); … … 419 419 switch (rc) 420 420 { 421 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */421 case VERR_GSTCTL_GUEST_ERROR: 422 422 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 423 423 GuestProcess::guestErrorToString(guestRc)); … … 643 643 switch (rc) 644 644 { 645 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */645 case VERR_GSTCTL_GUEST_ERROR: 646 646 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 647 647 GuestProcess::guestErrorToString(guestRc)); … … 672 672 switch (rc) 673 673 { 674 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */674 case VERR_GSTCTL_GUEST_ERROR: 675 675 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 676 676 GuestProcess::guestErrorToString(guestRc)); … … 703 703 switch (rc) 704 704 { 705 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */705 case VERR_GSTCTL_GUEST_ERROR: 706 706 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 707 707 GuestProcess::guestErrorToString(guestRc)); … … 941 941 switch (rc) 942 942 { 943 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */943 case VERR_GSTCTL_GUEST_ERROR: 944 944 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 945 945 GuestProcess::guestErrorToString(guestRc)); … … 992 992 break; 993 993 994 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */994 case VERR_GSTCTL_GUEST_ERROR: 995 995 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 996 996 GuestProcess::guestErrorToString(guestRc)); … … 1231 1231 switch (rc) 1232 1232 { 1233 case VERR_G ENERAL_FAILURE: /** @todo Special guest control rc needed! */1233 case VERR_GSTCTL_GUEST_ERROR: 1234 1234 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1235 1235 GuestProcess::guestErrorToString(guestRc));
Note:
See TracChangeset
for help on using the changeset viewer.