From a27728407e0168ae2727300cde983d916fc85eb2 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 21 Apr 2011 15:28:34 +0200 Subject: Easyhack: Add visibility markup to all component_get* functions --- testtools/source/bridgetest/bridgetest.cxx | 4 ++-- testtools/source/bridgetest/constructors.cxx | 4 ++-- testtools/source/bridgetest/cppobj.cxx | 4 ++-- testtools/source/performance/ubobject.cxx | 4 ++-- testtools/source/performance/ubtest.cxx | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'testtools') diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index 13fef199ee2c..1a698721a575 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -1297,13 +1297,13 @@ static Reference< XInterface > SAL_CALL TestBridgeImpl_create( extern "C" { //================================================================================================== -void SAL_CALL component_getImplementationEnvironment( +SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** ) { *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; } //================================================================================================== -void * SAL_CALL component_getFactory( +SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * ) { void * pRet = 0; diff --git a/testtools/source/bridgetest/constructors.cxx b/testtools/source/bridgetest/constructors.cxx index 5de51bae5ccf..a9e2cffea2a2 100644 --- a/testtools/source/bridgetest/constructors.cxx +++ b/testtools/source/bridgetest/constructors.cxx @@ -497,14 +497,14 @@ css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames2() { { 0, 0, 0, 0, 0, 0 } }; } -extern "C" void * SAL_CALL component_getFactory( +extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( char const * implName, void * serviceManager, void * registryKey) { return ::cppu::component_getFactoryHelper( implName, serviceManager, registryKey, entries); } -extern "C" void SAL_CALL component_getImplementationEnvironment( +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( char const ** envTypeName, uno_Environment **) { *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx index cde3533c71eb..f6d0e2fcc6d6 100644 --- a/testtools/source/bridgetest/cppobj.cxx +++ b/testtools/source/bridgetest/cppobj.cxx @@ -1184,13 +1184,13 @@ static Reference< XInterface > SAL_CALL Test_Impl_create( const Reference< XMult extern "C" { //================================================================================================== -void SAL_CALL component_getImplementationEnvironment( +SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** ) { *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; } //================================================================================================== -void * SAL_CALL component_getFactory( +SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * ) { void * pRet = 0; diff --git a/testtools/source/performance/ubobject.cxx b/testtools/source/performance/ubobject.cxx index d244711ea297..bfbe47f07faf 100644 --- a/testtools/source/performance/ubobject.cxx +++ b/testtools/source/performance/ubobject.cxx @@ -257,7 +257,7 @@ static Reference< XInterface > SAL_CALL ServiceImpl_create( const Reference< XMu extern "C" { //================================================================================================== -void SAL_CALL component_getImplementationEnvironment( +SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv ) { *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; @@ -285,7 +285,7 @@ sal_Bool SAL_CALL component_writeInfo( return sal_False; } //================================================================================================== -void * SAL_CALL component_getFactory( +SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) { void * pRet = 0; diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx index d0ead0dad4a6..5146c40be388 100644 --- a/testtools/source/performance/ubtest.cxx +++ b/testtools/source/performance/ubtest.cxx @@ -1288,7 +1288,7 @@ sal_Int32 TestImpl::run( const Sequence< OUString > & rArgs ) extern "C" { //================================================================================================== -void SAL_CALL component_getImplementationEnvironment( +SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv ) { *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; @@ -1316,7 +1316,7 @@ sal_Bool SAL_CALL component_writeInfo( return sal_False; } //================================================================================================== -void * SAL_CALL component_getFactory( +SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) { void * pRet = 0; -- cgit