Tag: cws_dev300_dba31b User: oj Date: 2008-08-27 13:16:33+0000 Modified: dba/dbaccess/source/core/misc/services.cxx
Log: export component File Changes: Directory: /dba/dbaccess/source/core/misc/ ========================================== File [changed]: services.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/misc/services.cxx?r1=1.18&r2=1.18.68.1 Delta lines: +9 -8 ------------------- --- services.cxx 2008-04-10 13:03:04+0000 1.18 +++ services.cxx 2008-08-27 13:16:30+0000 1.18.68.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: services.cxx,v $ - * $Revision: 1.18 $ + * $Revision: 1.18.68.1 $ * * This file is part of OpenOffice.org. * @@ -36,6 +36,7 @@ #include "module_dba.hxx" #include <osl/diagnose.h> #include "DatabaseDataProvider.hxx" +#include "dbaccessdllapi.h" /********************************************************************************************/ @@ -54,7 +55,7 @@ extern "C" void SAL_CALL createRegistryInfo_ODatabaseSource(); extern "C" void SAL_CALL createRegistryInfo_DataAccessDescriptorFactory(); -namespace { +namespace dba{ //-------------------------------------------------------------------------- ::cppu::ImplementationEntry entries[] = { { &::dbaccess::DatabaseDataProvider::Create, &::dbaccess::DatabaseDataProvider::getImplementationName_Static, &::dbaccess::DatabaseDataProvider::getSupportedServiceNames_Static, @@ -86,7 +87,7 @@ //--------------------------------------------------------------------------------------- -extern "C" void SAL_CALL component_getImplementationEnvironment( +extern "C" DBACCESS_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment( const sal_Char **ppEnvTypeName, uno_Environment ** ) @@ -96,7 +97,7 @@ } //--------------------------------------------------------------------------------------- -extern "C" sal_Bool SAL_CALL component_writeInfo( +extern "C" DBACCESS_DLLPUBLIC sal_Bool SAL_CALL component_writeInfo( void* pServiceManager, void* pRegistryKey ) @@ -107,7 +108,7 @@ return ::dba::DbaModule::getInstance().writeComponentInfos( static_cast< XMultiServiceFactory* >( pServiceManager ), static_cast< XRegistryKey* >( pRegistryKey ) ) - && cppu::component_writeInfoHelper(pServiceManager, pRegistryKey, entries); + && cppu::component_writeInfoHelper(pServiceManager, pRegistryKey, dba::entries); } catch (InvalidRegistryException& ) { @@ -118,7 +119,7 @@ } //--------------------------------------------------------------------------------------- -extern "C" void* SAL_CALL component_getFactory( +extern "C" DBACCESS_DLLPUBLIC void* SAL_CALL component_getFactory( const sal_Char* pImplementationName, void* pServiceManager, void* pRegistryKey) @@ -135,6 +136,6 @@ xRet->acquire(); else return cppu::component_getFactoryHelper( - pImplementationName, pServiceManager, pRegistryKey, entries); + pImplementationName, pServiceManager, pRegistryKey, dba::entries); return xRet.get(); }; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
