Lines Matching refs:stuff
161 struct dotnet_runtime_stuff *stuff; in dotnet_init() local
165 stuff = malloc(sizeof(*stuff)); in dotnet_init()
166 if (!stuff) { in dotnet_init()
169 memset(stuff, 0, sizeof(*stuff)); in dotnet_init()
172 hr = dotnet_bind_runtime((LPVOID*)&stuff->dotnet_host); in dotnet_init()
178 hr = ICorRuntimeHost_Start(stuff->dotnet_host); in dotnet_init()
183 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in dotnet_init()
188 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in dotnet_init()
192 COMG(dotnet_runtime_stuff) = stuff; in dotnet_init()
200 if (stuff->dotnet_domain) { in dotnet_init()
201 IUnknown_Release(stuff->dotnet_domain); in dotnet_init()
203 if (stuff->dotnet_host) { in dotnet_init()
204 ICorRuntimeHost_Stop(stuff->dotnet_host); in dotnet_init()
205 ICorRuntimeHost_Release(stuff->dotnet_host); in dotnet_init()
207 free(stuff); in dotnet_init()
224 struct dotnet_runtime_stuff *stuff; in PHP_METHOD() local
242 stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff); in PHP_METHOD()
243 if (stuff == NULL) { in PHP_METHOD()
253 stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff); in PHP_METHOD()
255 } else if (stuff->dotnet_domain == NULL) { in PHP_METHOD()
257 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in PHP_METHOD()
269 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in PHP_METHOD()
295 …hr = stuff->dotnet_domain->lpVtbl->CreateInstance(stuff->dotnet_domain, oleassembly_sys, oletype_s… in PHP_METHOD()
357 struct dotnet_runtime_stuff *stuff = COMG(dotnet_runtime_stuff); in php_com_dotnet_mshutdown() local
359 if (stuff->dotnet_domain) { in php_com_dotnet_mshutdown()
360 IDispatch_Release(stuff->dotnet_domain); in php_com_dotnet_mshutdown()
362 if (stuff->dotnet_host) { in php_com_dotnet_mshutdown()
363 ICorRuntimeHost_Stop(stuff->dotnet_host); in php_com_dotnet_mshutdown()
364 ICorRuntimeHost_Release(stuff->dotnet_host); in php_com_dotnet_mshutdown()
365 stuff->dotnet_host = NULL; in php_com_dotnet_mshutdown()
367 free(stuff); in php_com_dotnet_mshutdown()
373 struct dotnet_runtime_stuff *stuff = COMG(dotnet_runtime_stuff); in php_com_dotnet_rshutdown() local
375 if (stuff->dotnet_domain) { in php_com_dotnet_rshutdown()
376 IDispatch_Release(stuff->dotnet_domain); in php_com_dotnet_rshutdown()
377 stuff->dotnet_domain = NULL; in php_com_dotnet_rshutdown()