summaryrefslogtreecommitdiff
path: root/include/cppuhelper/shlib.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-01 01:15:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-01 01:15:30 +0200
commitd2e1dd559f4009a83f3ce6cb6617dfced010be74 (patch)
treeca0d7bcf880ff97105277b209c860eaf02d86335 /include/cppuhelper/shlib.hxx
parent02a872cb2cb68338a9459dd7d922001ee6c9a343 (diff)
[API CHANGE] Stricter requirements for shlib.hxx function arguments
rLibName -> uri must be an (absolute file) URI, rPath must be empty, and xKey must be null in loadSharedLibComponentFactory. While incompatible in theory, these functions should only be called internally, anyway. Change-Id: Iab144b199e4e7db62358283efec6877a5da19bab
Diffstat (limited to 'include/cppuhelper/shlib.hxx')
-rw-r--r--include/cppuhelper/shlib.hxx31
1 files changed, 14 insertions, 17 deletions
diff --git a/include/cppuhelper/shlib.hxx b/include/cppuhelper/shlib.hxx
index baf3a8d56ae4..bb6d4ede7dc8 100644
--- a/include/cppuhelper/shlib.hxx
+++ b/include/cppuhelper/shlib.hxx
@@ -31,21 +31,20 @@ namespace cppu
/** Loads a shared library component and gets the factory out of it. You can give either a
fully qualified libname or single lib name. The libname need not be pre/postfixed
- (e.g. xxx.dll). You can give parameter rPath to force lookup of the library in a specific
- directory.
+ (e.g. xxx.dll).
- @param rLibName name of the library
- @param rPath optional path
+ @param uri URI of the library
+ @param rPath deprecated, must be empty
@param rImplName implementation to be retrieved from the library
@param xMgr service manager to be provided to the component
- @param xKey registry key to be provided to the component
+ @param xKey deprecated, must be null
@return
factory instance (com::sun::star::lang::XSingleComponentFactory or legacy
com::sun::star::lang::XSingleServiceFactory)
*/
CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
SAL_CALL loadSharedLibComponentFactory(
- ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
+ ::rtl::OUString const & uri, ::rtl::OUString const & rPath,
::rtl::OUString const & rImplName,
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr,
::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey )
@@ -53,15 +52,14 @@ SAL_CALL loadSharedLibComponentFactory(
/** Loads a shared library component and gets the factory out of it. You can give either a
fully qualified libname or single lib name. The libname need not be pre/postfixed
- (e.g. xxx.dll). You can give parameter rPath to force lookup of the library in a specific
- directory. An optional 'prefix' parameter is used to determine the symbol
+ (e.g. xxx.dll). An optional 'prefix' parameter is used to determine the symbol
name of the entry point in the library.
- @param rLibName name of the library
- @param rPath optional path
+ @param uri URI of the library
+ @param rPath deprecated, must be empty
@param rImplName implementation to be retrieved from the library
@param xMgr service manager to be provided to the component
- @param xKey registry key to be provided to the component
+ @param xKey deprecated, must be null
@param rPrefix optional component prefix
@return
factory instance (com::sun::star::lang::XSingleComponentFactory or legacy
@@ -69,7 +67,7 @@ SAL_CALL loadSharedLibComponentFactory(
*/
CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
SAL_CALL loadSharedLibComponentFactory(
- ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
+ ::rtl::OUString const & uri, ::rtl::OUString const & rPath,
::rtl::OUString const & rImplName,
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr,
::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey,
@@ -78,19 +76,18 @@ SAL_CALL loadSharedLibComponentFactory(
/** Invokes component_writeInfo() function of specified component library. You can give either
a fully qualified libname or single lib name. The libname need not be pre/postfixed
- (e.g. xxx.dll). You can give parameter rPath to force lookup of the library in a specific
- directory.
+ (e.g. xxx.dll).
@deprecated component_writeInfo should no longer be used in new components
- @param rLibName name of the library
- @param rPath optional path
+ @param uri URI of the library
+ @param rPath deprecated, must be empty
@param xMgr service manager to be provided to the component
@param xKey registry key to be provided to the component
*/
CPPUHELPER_DLLPUBLIC void
SAL_CALL writeSharedLibComponentInfo(
- ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
+ ::rtl::OUString const & uri, ::rtl::OUString const & rPath,
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr,
::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey )
SAL_THROW( (::com::sun::star::registry::CannotRegisterImplementationException) );