Changeset 75740 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 26, 2018 3:59:11 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126941
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/HGCMThread.h
r75541 r75740 44 44 * or from HGCM. 45 45 * @param pMsgCore Pointer to just processed message. 46 */ 47 typedef DECLCALLBACK(void) HGCMMSGCALLBACK(int32_t result, HGCMMsgCore *pMsgCore); 46 * 47 * @return Restricted set of VBox status codes when guest call message: 48 * @retval VINF_SUCCESS on success 49 * @retval VERR_CANCELLED if the request was cancelled. 50 * @retval VERR_ALREADY_RESET if the VM is resetting. 51 * @retval VERR_NOT_AVAILABLE if HGCM has been disconnected from the VMMDev 52 * (shouldn't happen). 53 */ 54 typedef DECLCALLBACK(int) HGCMMSGCALLBACK(int32_t result, HGCMMsgCore *pMsgCore); 55 /** Pointer to a message completeion callback function. */ 48 56 typedef HGCMMSGCALLBACK *PHGCMMSGCALLBACK; 49 57 -
trunk/src/VBox/Main/src-client/HGCM.cpp
r75574 r75740 895 895 896 896 897 static DECLCALLBACK( void) hgcmMsgCompletionCallback(int32_t result, HGCMMsgCore *pMsgCore)897 static DECLCALLBACK(int) hgcmMsgCompletionCallback(int32_t result, HGCMMsgCore *pMsgCore) 898 898 { 899 899 /* Call the VMMDev port interface to issue IRQ notification. */ … … 902 902 LogFlow(("MAIN::hgcmMsgCompletionCallback: message %p\n", pMsgCore)); 903 903 904 if (pMsgHdr->pHGCMPort && !g_fResetting) 905 { 906 pMsgHdr->pHGCMPort->pfnCompleted(pMsgHdr->pHGCMPort, g_fSaveState? VINF_HGCM_SAVE_STATE: result, pMsgHdr->pCmd); 907 } 904 if (pMsgHdr->pHGCMPort) 905 { 906 if (!g_fResetting) 907 return pMsgHdr->pHGCMPort->pfnCompleted(pMsgHdr->pHGCMPort, 908 g_fSaveState ? VINF_HGCM_SAVE_STATE : result, pMsgHdr->pCmd); 909 return VERR_ALREADY_RESET; /* best I could find. */ 910 } 911 return VERR_NOT_AVAILABLE; 908 912 } 909 913 … … 1723 1727 #ifdef VBOX_WITH_CRHGSMI 1724 1728 1725 static DECLCALLBACK( void) hgcmMsgFastCallCompletionCallback(int32_t result, HGCMMsgCore *pMsgCore)1729 static DECLCALLBACK(int) hgcmMsgFastCallCompletionCallback(int32_t result, HGCMMsgCore *pMsgCore) 1726 1730 { 1727 1731 /* Call the VMMDev port interface to issue IRQ notification. */ … … 1731 1735 if (pMsg->pfnCompletion) 1732 1736 pMsg->pfnCompletion(result, pMsg->u32Function, &pMsg->Param, pMsg->pvCompletion); 1737 return VINF_SUCCESS; 1733 1738 } 1734 1739
Note:
See TracChangeset
for help on using the changeset viewer.