Changeset 75406 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Nov 12, 2018 7:49:08 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/HGCM.cpp
r75385 r75406 132 132 static DECLCALLBACK(void) svcHlpCallComplete(VBOXHGCMCALLHANDLE callHandle, int32_t rc); 133 133 static DECLCALLBACK(void) svcHlpDisconnectClient(void *pvInstance, uint32_t u32ClientId); 134 static DECLCALLBACK(bool) svcHlpIsCallRestored(VBOXHGCMCALLHANDLE callHandle); 134 135 135 136 public: … … 755 756 } 756 757 758 /** 759 * @interface_method_impl{VBOXHGCMSVCHELPERS,pfnCallComplete} 760 */ 757 761 /* static */ DECLCALLBACK(void) HGCMService::svcHlpCallComplete(VBOXHGCMCALLHANDLE callHandle, int32_t rc) 758 762 { … … 773 777 } 774 778 779 /** 780 * @interface_method_impl{VBOXHGCMSVCHELPERS,pfnDisconnectClient} 781 */ 775 782 /* static */ DECLCALLBACK(void) HGCMService::svcHlpDisconnectClient(void *pvInstance, uint32_t u32ClientId) 776 783 { … … 781 788 pService->DisconnectClient(u32ClientId, true); 782 789 } 790 } 791 792 /** 793 * @interface_method_impl{VBOXHGCMSVCHELPERS,pfnIsCallRestored} 794 */ 795 /* static */ DECLCALLBACK(bool) HGCMService::svcHlpIsCallRestored(VBOXHGCMCALLHANDLE callHandle) 796 { 797 HGCMMsgHeader *pMsgHdr = (HGCMMsgHeader *)(callHandle); 798 AssertPtrReturn(pMsgHdr, false); 799 800 PVBOXHGCMCMD pCmd = pMsgHdr->pCmd; 801 AssertPtrReturn(pCmd, false); 802 803 PPDMIHGCMPORT pHgcmPort = pMsgHdr->pHGCMPort; 804 AssertPtrReturn(pHgcmPort, false); 805 806 return pHgcmPort->pfnIsCmdRestored(pHgcmPort, pCmd); 783 807 } 784 808 … … 836 860 m_svcHelpers.pvInstance = this; 837 861 m_svcHelpers.pfnDisconnectClient = svcHlpDisconnectClient; 862 m_svcHelpers.pfnIsCallRestored = svcHlpIsCallRestored; 838 863 839 864 /* Execute the load request on the service thread. */
Note:
See TracChangeset
for help on using the changeset viewer.