Lines Matching refs:stuff

127 	struct dotnet_runtime_stuff *stuff;  in dotnet_init()  local
131 stuff = malloc(sizeof(*stuff)); in dotnet_init()
132 if (!stuff) { in dotnet_init()
135 memset(stuff, 0, sizeof(*stuff)); in dotnet_init()
139 &IID_ICorRuntimeHost, (LPVOID*)&stuff->dotnet_host); in dotnet_init()
146 hr = ICorRuntimeHost_Start(stuff->dotnet_host); in dotnet_init()
151 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in dotnet_init()
156 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in dotnet_init()
160 COMG(dotnet_runtime_stuff) = stuff; in dotnet_init()
168 if (stuff->dotnet_domain) { in dotnet_init()
169 IUnknown_Release(stuff->dotnet_domain); in dotnet_init()
171 if (stuff->dotnet_host) { in dotnet_init()
172 ICorRuntimeHost_Stop(stuff->dotnet_host); in dotnet_init()
173 ICorRuntimeHost_Release(stuff->dotnet_host); in dotnet_init()
175 free(stuff); in dotnet_init()
192 struct dotnet_runtime_stuff *stuff; in PHP_FUNCTION() local
203 stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff); in PHP_FUNCTION()
204 if (stuff == NULL) { in PHP_FUNCTION()
215 stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff); in PHP_FUNCTION()
217 } else if (stuff->dotnet_domain == NULL) { in PHP_FUNCTION()
219 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in PHP_FUNCTION()
232 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in PHP_FUNCTION()
267 …hr = stuff->dotnet_domain->lpVtbl->CreateInstance(stuff->dotnet_domain, oleassembly_sys, oletype_s… in PHP_FUNCTION()
331 struct dotnet_runtime_stuff *stuff = COMG(dotnet_runtime_stuff); in php_com_dotnet_mshutdown() local
333 if (stuff->dotnet_domain) { in php_com_dotnet_mshutdown()
334 IDispatch_Release(stuff->dotnet_domain); in php_com_dotnet_mshutdown()
336 if (stuff->dotnet_host) { in php_com_dotnet_mshutdown()
337 ICorRuntimeHost_Stop(stuff->dotnet_host); in php_com_dotnet_mshutdown()
338 ICorRuntimeHost_Release(stuff->dotnet_host); in php_com_dotnet_mshutdown()
339 stuff->dotnet_host = NULL; in php_com_dotnet_mshutdown()
341 free(stuff); in php_com_dotnet_mshutdown()
347 struct dotnet_runtime_stuff *stuff = COMG(dotnet_runtime_stuff); in php_com_dotnet_rshutdown() local
349 if (stuff->dotnet_domain) { in php_com_dotnet_rshutdown()
350 IDispatch_Release(stuff->dotnet_domain); in php_com_dotnet_rshutdown()
351 stuff->dotnet_domain = NULL; in php_com_dotnet_rshutdown()