Lines Matching refs:pEnv
93 uno_DefaultEnvironment * pEnv,
182 uno_DefaultEnvironment * pEnv, in append() argument
188 (*pEnv->acquireInterface)( pEnv, pInterface ); in append()
196 pEnv->aPtr2ObjectMap.insert( Ptr2ObjectMap::value_type( in append()
256 uno_ExtEnvironment * pEnv, void ** ppInterface, in defenv_registerInterface() argument
259 OSL_ENSURE( pEnv && ppInterface && pOId && pTypeDescr, "### null ptr!" ); in defenv_registerInterface()
263 static_cast< uno_DefaultEnvironment * >( pEnv ); in defenv_registerInterface()
288 (*pEnv->acquireInterface)( pEnv, pInterface ); in defenv_registerInterface()
290 (*pEnv->releaseInterface)( pEnv, *ppInterface ); in defenv_registerInterface()
303 uno_ExtEnvironment * pEnv, void ** ppInterface, uno_freeProxyFunc freeProxy, in defenv_registerProxyInterface() argument
306 OSL_ENSURE( pEnv && ppInterface && pOId && pTypeDescr && freeProxy, in defenv_registerProxyInterface()
311 static_cast< uno_DefaultEnvironment * >( pEnv ); in defenv_registerProxyInterface()
345 (*pEnv->acquireInterface)( pEnv, pInterface ); in defenv_registerProxyInterface()
348 (*freeProxy)( pEnv, *ppInterface ); in defenv_registerProxyInterface()
362 uno_ExtEnvironment * pEnv = va_arg(*pParam, uno_ExtEnvironment *); in s_stub_defenv_revokeInterface() local
365 OSL_ENSURE( pEnv && pInterface, "### null ptr!" ); in s_stub_defenv_revokeInterface()
367 static_cast< uno_DefaultEnvironment * >( pEnv ); in s_stub_defenv_revokeInterface()
396 (*rEntry.fpFreeProxy)( pEnv, rEntry.pInterface ); in s_stub_defenv_revokeInterface()
400 (*pEnv->releaseInterface)( pEnv, rEntry.pInterface ); in s_stub_defenv_revokeInterface()
443 (*fpFreeProxy)( pEnv, pInterface ); in s_stub_defenv_revokeInterface()
450 static void SAL_CALL defenv_revokeInterface(uno_ExtEnvironment * pEnv, void * pInterface) in defenv_revokeInterface() argument
452 uno_Environment_invoke(&pEnv->aBase, s_stub_defenv_revokeInterface, pEnv, pInterface); in defenv_revokeInterface()
457 uno_ExtEnvironment * pEnv, rtl_uString ** ppOId, void * pInterface ) in defenv_getObjectIdentifier() argument
459 OSL_ENSURE( pEnv && ppOId && pInterface, "### null ptr!" ); in defenv_getObjectIdentifier()
467 static_cast< uno_DefaultEnvironment * >( pEnv ); in defenv_getObjectIdentifier()
475 (*pEnv->computeObjectIdentifier)( pEnv, ppOId, pInterface ); in defenv_getObjectIdentifier()
487 uno_ExtEnvironment * pEnv, void ** ppInterface, in defenv_getRegisteredInterface() argument
490 OSL_ENSURE( pEnv && ppInterface && pOId && pTypeDescr, "### null ptr!" ); in defenv_getRegisteredInterface()
493 (*pEnv->releaseInterface)( pEnv, *ppInterface ); in defenv_getRegisteredInterface()
499 static_cast< uno_DefaultEnvironment * >( pEnv ); in defenv_getRegisteredInterface()
509 (*pEnv->acquireInterface)( pEnv, pIEntry->pInterface ); in defenv_getRegisteredInterface()
517 uno_ExtEnvironment * pEnv, void *** pppInterfaces, sal_Int32 * pnLen, in defenv_getRegisteredInterfaces() argument
520 OSL_ENSURE( pEnv && pppInterfaces && pnLen && memAlloc, "### null ptr!" ); in defenv_getRegisteredInterfaces()
522 static_cast< uno_DefaultEnvironment * >( pEnv ); in defenv_getRegisteredInterfaces()
533 (*pEnv->acquireInterface)( pEnv, ppInterfaces[nPos++] = (*iPos).first ); in defenv_getRegisteredInterfaces()
542 static void SAL_CALL defenv_acquire( uno_Environment * pEnv ) in defenv_acquire() argument
544 uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv; in defenv_acquire()
550 static void SAL_CALL defenv_release( uno_Environment * pEnv ) in defenv_release() argument
552 uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv; in defenv_release()
556 if (pEnv->environmentDisposing) in defenv_release()
558 (*pEnv->environmentDisposing)( pEnv ); in defenv_release()
571 static void SAL_CALL defenv_acquireWeak( uno_Environment * pEnv ) in defenv_acquireWeak() argument
573 uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv; in defenv_acquireWeak()
578 static void SAL_CALL defenv_releaseWeak( uno_Environment * pEnv ) in defenv_releaseWeak() argument
580 uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv; in defenv_releaseWeak()
589 uno_Environment ** ppHardEnv, uno_Environment * pEnv ) in defenv_harden() argument
602 uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv; in defenv_harden()
612 *ppHardEnv = pEnv; in defenv_harden()
717 void * stream, uno_Environment * pEnv, const sal_Char * pFilter ) in uno_dumpEnvironment() argument
720 OSL_ENSURE( pEnv, "### null ptr!" ); in uno_dumpEnvironment()
723 if (! pEnv->pExtEnv) in uno_dumpEnvironment()
728 buf.append( pEnv->pTypeName ); in uno_dumpEnvironment()
737 buf.append( pEnv->pTypeName ); in uno_dumpEnvironment()
741 reinterpret_cast< uno_DefaultEnvironment * >(pEnv); in uno_dumpEnvironment()
807 uno_Environment * pEnv = 0; in uno_dumpEnvironmentByName() local
808 uno_getEnvironment( &pEnv, pEnvDcp, 0 ); in uno_dumpEnvironmentByName()
809 if (pEnv) in uno_dumpEnvironmentByName()
811 ::uno_dumpEnvironment( stream, pEnv, pFilter ); in uno_dumpEnvironmentByName()
812 (*pEnv->release)( pEnv ); in uno_dumpEnvironmentByName()
867 uno_ExtEnvironment * pEnv, rtl_uString ** ppOId, void * pInterface ) in unoenv_computeObjectIdentifier() argument
869 OSL_ENSURE( pEnv && ppOId && pInterface, "### null ptr!" ); in unoenv_computeObjectIdentifier()
888 oid.append( ((uno_Environment *) pEnv)->pTypeName ); in unoenv_computeObjectIdentifier()
892 uno_Environment * >(pEnv)->pContext ), 16 ); in unoenv_computeObjectIdentifier()
970 uno_Environment * pEnv = *ppEnv; in registerEnvironment() local
973 OUString::valueOf( reinterpret_cast< sal_IntPtr >(pEnv->pContext) ) ); in registerEnvironment()
974 aKey += pEnv->pTypeName; in registerEnvironment()
981 (*pEnv->acquireWeak)( pEnv ); in registerEnvironment()
984 OUString2EnvironmentMap::value_type( aKey, pEnv ) ) ); in registerEnvironment()
995 if (pEnv) in registerEnvironment()
996 (*pEnv->release)( pEnv ); in registerEnvironment()
1002 (*pEnv->acquireWeak)( pEnv ); in registerEnvironment()
1003 aName2EnvMap[ aKey ] = pEnv; in registerEnvironment()
1053 uno_Environment * pEnv, in loadEnv() argument
1072 (*fpInit)( pEnv ); // init of environment in loadEnv()
1086 uno_Environment * pEnv = &(new uno_DefaultEnvironment( rEnvDcp, pContext ))->aBase; in initDefaultEnvironment() local
1087 (*pEnv->acquire)( pEnv ); in initDefaultEnvironment()
1094 uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv; in initDefaultEnvironment()
1105 if(!loadEnv(libStem, pEnv, pContext)) in initDefaultEnvironment()
1107 pEnv->release(pEnv); in initDefaultEnvironment()
1120 if (!loadEnv(aStr, pEnv, pContext)) in initDefaultEnvironment()
1122 pEnv->release(pEnv); in initDefaultEnvironment()
1127 return pEnv; in initDefaultEnvironment()