Lines Matching defs:HGCMService

76  *  The HGCMService is an (in future) abstract class that implements
81 class HGCMService
86 static HGCMService *sm_pSvcListHead;
87 static HGCMService *sm_pSvcListTail;
96 HGCMService *m_pSvcNext;
97 HGCMService *m_pSvcPrev;
130 HGCMService();
131 ~HGCMService() {};
146 static int ResolveService(HGCMService **ppsvc, const char *pszServiceName);
188 int Init(HGCMService *pSvc);
191 HGCMService *pService;
203 int HGCMClient::Init(HGCMService *pSvc)
225 HGCMService *HGCMService::sm_pSvcListHead = NULL;
226 HGCMService *HGCMService::sm_pSvcListTail = NULL;
227 int HGCMService::sm_cServices = 0;
229 HGCMService::HGCMService()
259 int HGCMService::loadServiceDLL(void)
288 Log(("HGCMService::loadServiceDLL: Error resolving the service entry point %s, rc = %d, m_pfnLoad = %p\n",
318 Log(("HGCMService::loadServiceDLL: at least one of function pointers is NULL\n"));
349 void HGCMService::unloadServiceDLL(void)
510 HGCMService *pSvc = (HGCMService *)pvUser;
758 /* static */ DECLCALLBACK(void) HGCMService::svcHlpCallComplete(VBOXHGCMCALLHANDLE callHandle, int32_t rc)
776 /* static */ DECLCALLBACK(void) HGCMService::svcHlpDisconnectClient(void *pvInstance, uint32_t u32ClientId)
778 HGCMService *pService = static_cast <HGCMService *> (pvInstance);
803 int HGCMService::instanceCreate(const char *pszServiceLibrary, const char *pszServiceName)
860 void HGCMService::instanceDestroy(void)
884 int HGCMService::saveClientState(uint32_t u32ClientId, PSSMHANDLE pSSM)
908 int HGCMService::loadClientState(uint32_t u32ClientId, PSSMHANDLE pSSM)
941 /* static */ int HGCMService::LoadService(const char *pszServiceLibrary, const char *pszServiceName)
947 HGCMService *pSvc;
948 int rc = HGCMService::ResolveService(&pSvc, pszServiceName);
959 pSvc = new HGCMService();
1006 void HGCMService::UnloadService(void)
1043 /* static */ void HGCMService::UnloadAll(void)
1060 /* static */ int HGCMService::ResolveService(HGCMService **ppSvc, const char *pszServiceName)
1070 HGCMService *pSvc = sm_pSvcListHead;
1101 void HGCMService::ReferenceService(void)
1111 void HGCMService::ReleaseService(void)
1131 /* static */ void HGCMService::Reset(void)
1135 HGCMService *pSvc = sm_pSvcListHead;
1147 HGCMService *pNextSvc = pSvc->m_pSvcNext;
1168 /* static */ int HGCMService::SaveState(PSSMHANDLE pSSM)
1181 HGCMService *pSvc = sm_pSvcListHead;
1232 /* static */ int HGCMService::LoadState(PSSMHANDLE pSSM)
1266 HGCMService *pSvc;
1324 int HGCMService::CreateAndConnectClient(uint32_t *pu32ClientIdOut, uint32_t u32ClientIdIn)
1413 int HGCMService::DisconnectClient(uint32_t u32ClientId, bool fFromService)
1472 int HGCMService::RegisterExtension(HGCMSVCEXTHANDLE handle,
1500 void HGCMService::UnregisterExtension(HGCMSVCEXTHANDLE handle)
1531 int HGCMService::GuestCall(PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmd, uint32_t u32ClientId, uint32_t u32Function,
1536 LogFlow(("MAIN::HGCMService::Call\n"));
1560 Log(("MAIN::HGCMService::Call: Message allocation failed: %Rrc\n", rc));
1574 int HGCMService::HostCall(uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM *paParms)
1613 int HGCMService::HandleAcquired()
1619 int HGCMService::HandleReleased()
1630 int HGCMService::HostFastCallAsync(uint32_t u32Function, VBOXHGCMSVCPARM *pParm, PHGCMHOSTFASTCALLCB pfnCompletion,
1759 HGCMService *pService;
1766 HGCMService *pService;
1833 HGCMService *pService;
1834 rc = HGCMService::ResolveService(&pService, pMsg->pszServiceName);
1862 HGCMService *pService = pClient->pService;
1877 rc = HGCMService::LoadService(pMsg->pszServiceLibrary, pMsg->pszServiceName);
1888 HGCMService *pService;
1889 rc = HGCMService::ResolveService(&pService, pMsg->pszServiceName);
1907 HGCMService *pService;
1908 rc = HGCMService::ResolveService(&pService, pMsg->pszServiceName);
1943 HGCMService::Reset();
1952 rc = HGCMService::LoadState(pMsg->pSSM);
1961 rc = HGCMService::SaveState(pMsg->pSSM);
1968 HGCMService::UnloadAll();
1993 HGCMService *pService;
1994 rc = HGCMService::ResolveService(&pService, handle->pszServiceName);
2020 HGCMService *pService;
2021 rc = HGCMService::ResolveService(&pService, pMsg->handle->pszServiceName);
2481 pMsg->pService = (HGCMService *)hSvc;
2503 HGCMService *pService = (HGCMService *)hSvc;