Lines Matching refs:stuff

125 	struct dotnet_runtime_stuff *stuff;  in dotnet_init()  local
129 stuff = malloc(sizeof(*stuff)); in dotnet_init()
130 if (!stuff) { in dotnet_init()
133 memset(stuff, 0, sizeof(*stuff)); in dotnet_init()
137 &IID_ICorRuntimeHost, (LPVOID*)&stuff->dotnet_host); in dotnet_init()
144 hr = ICorRuntimeHost_Start(stuff->dotnet_host); in dotnet_init()
149 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in dotnet_init()
154 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in dotnet_init()
158 COMG(dotnet_runtime_stuff) = stuff; in dotnet_init()
166 if (stuff->dotnet_domain) { in dotnet_init()
167 IUnknown_Release(stuff->dotnet_domain); in dotnet_init()
169 if (stuff->dotnet_host) { in dotnet_init()
170 ICorRuntimeHost_Stop(stuff->dotnet_host); in dotnet_init()
171 ICorRuntimeHost_Release(stuff->dotnet_host); in dotnet_init()
173 free(stuff); in dotnet_init()
190 struct dotnet_runtime_stuff *stuff; in PHP_FUNCTION() local
201 stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff); in PHP_FUNCTION()
202 if (stuff == NULL) { in PHP_FUNCTION()
212 stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff); in PHP_FUNCTION()
214 } else if (stuff->dotnet_domain == NULL) { in PHP_FUNCTION()
216 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in PHP_FUNCTION()
228 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in PHP_FUNCTION()
262 …hr = stuff->dotnet_domain->lpVtbl->CreateInstance(stuff->dotnet_domain, oleassembly_sys, oletype_s… in PHP_FUNCTION()
324 struct dotnet_runtime_stuff *stuff = COMG(dotnet_runtime_stuff); in php_com_dotnet_mshutdown() local
326 if (stuff->dotnet_domain) { in php_com_dotnet_mshutdown()
327 IDispatch_Release(stuff->dotnet_domain); in php_com_dotnet_mshutdown()
329 if (stuff->dotnet_host) { in php_com_dotnet_mshutdown()
330 ICorRuntimeHost_Stop(stuff->dotnet_host); in php_com_dotnet_mshutdown()
331 ICorRuntimeHost_Release(stuff->dotnet_host); in php_com_dotnet_mshutdown()
332 stuff->dotnet_host = NULL; in php_com_dotnet_mshutdown()
334 free(stuff); in php_com_dotnet_mshutdown()
340 struct dotnet_runtime_stuff *stuff = COMG(dotnet_runtime_stuff); in php_com_dotnet_rshutdown() local
342 if (stuff->dotnet_domain) { in php_com_dotnet_rshutdown()
343 IDispatch_Release(stuff->dotnet_domain); in php_com_dotnet_rshutdown()
344 stuff->dotnet_domain = NULL; in php_com_dotnet_rshutdown()