summaryrefslogtreecommitdiff
path: root/sal/inc
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-12-17 13:22:02 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2011-12-19 10:14:53 +0100
commitcf77e8a0b9dc26d5007c76388c3f09231f048bdd (patch)
tree1e7d3a909252dfd975507a0b945af046b89eb525 /sal/inc
parenta9e130ab82f3216334e432e9d6ee19a600b6c287 (diff)
sal: add visibility symbols
Diffstat (limited to 'sal/inc')
-rw-r--r--sal/inc/osl/conditn.h12
-rw-r--r--sal/inc/osl/diagnose.h12
-rw-r--r--sal/inc/osl/diagnose.hxx11
-rw-r--r--sal/inc/osl/file.h118
-rw-r--r--sal/inc/osl/interlck.h4
-rw-r--r--sal/inc/osl/module.h24
-rw-r--r--sal/inc/osl/mutex.h12
-rw-r--r--sal/inc/osl/nlsupport.h3
-rw-r--r--sal/inc/osl/pipe.h21
-rw-r--r--sal/inc/osl/process.h57
-rw-r--r--sal/inc/osl/profile.h40
-rw-r--r--sal/inc/osl/security.h30
-rw-r--r--sal/inc/osl/semaphor.h10
-rw-r--r--sal/inc/osl/signal.h12
-rw-r--r--sal/inc/osl/socket.h149
-rw-r--r--sal/inc/osl/thread.h42
-rw-r--r--sal/inc/osl/time.h17
-rw-r--r--sal/inc/osl/util.h2
-rw-r--r--sal/inc/rtl/alloc.h34
-rw-r--r--sal/inc/rtl/bootstrap.h24
-rw-r--r--sal/inc/rtl/byteseq.h22
-rw-r--r--sal/inc/rtl/cipher.h30
-rw-r--r--sal/inc/rtl/crc.h2
-rw-r--r--sal/inc/rtl/digest.h82
-rw-r--r--sal/inc/rtl/locale.h18
-rw-r--r--sal/inc/rtl/logfile.h6
-rw-r--r--sal/inc/rtl/math.h28
-rw-r--r--sal/inc/rtl/memory.h12
-rw-r--r--sal/inc/rtl/process.h6
-rw-r--r--sal/inc/rtl/random.h8
-rw-r--r--sal/inc/rtl/strbuf.h15
-rw-r--r--sal/inc/rtl/string.h157
-rw-r--r--sal/inc/rtl/tencinfo.h31
-rw-r--r--sal/inc/rtl/textcvt.h26
-rw-r--r--sal/inc/rtl/unload.h16
-rw-r--r--sal/inc/rtl/uri.h11
-rw-r--r--sal/inc/rtl/ustrbuf.h20
-rw-r--r--sal/inc/rtl/ustring.h211
-rw-r--r--sal/inc/rtl/uuid.h8
-rw-r--r--sal/inc/sal/detail/log.h2
-rw-r--r--sal/inc/sal/log.hxx2
-rw-r--r--sal/inc/sal/main.h4
-rw-r--r--sal/inc/sal/saldllapi.h15
-rw-r--r--sal/inc/sal/types.h2
44 files changed, 812 insertions, 556 deletions
diff --git a/sal/inc/osl/conditn.h b/sal/inc/osl/conditn.h
index 88478c377bf3..94088a87c7b2 100644
--- a/sal/inc/osl/conditn.h
+++ b/sal/inc/osl/conditn.h
@@ -49,25 +49,25 @@ typedef enum {
The condition is in the reset-state.
@returns 0 if condition could not be created.
*/
-oslCondition SAL_CALL osl_createCondition(void);
+SAL_DLLPUBLIC oslCondition SAL_CALL osl_createCondition(void);
/** Free the memory used by the condition.
@param Condition the condition handle.
*/
-void SAL_CALL osl_destroyCondition(oslCondition Condition);
+SAL_DLLPUBLIC void SAL_CALL osl_destroyCondition(oslCondition Condition);
/** Sets condition to True => wait() will not block, check() returns True.
NOTE: ALL threads waiting on this condition are unblocked!
@param Condition handle to a created condition.
@return False if system-call failed.
*/
-sal_Bool SAL_CALL osl_setCondition(oslCondition Condition);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setCondition(oslCondition Condition);
/** Sets condition to False => wait() will block, check() returns False
@param Condition handle to a created condition.
@return False if system-call failed.
*/
-sal_Bool SAL_CALL osl_resetCondition(oslCondition Condition);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_resetCondition(oslCondition Condition);
/** Blocks if condition is not set<BR>
If condition has been destroyed prematurely, wait() will
@@ -76,14 +76,14 @@ sal_Bool SAL_CALL osl_resetCondition(oslCondition Condition);
@param pTimeout Tiemout value or NULL for infinite waiting
@return False if system-call failed.
*/
-oslConditionResult SAL_CALL osl_waitCondition(oslCondition Condition, const TimeValue* pTimeout);
+SAL_DLLPUBLIC oslConditionResult SAL_CALL osl_waitCondition(oslCondition Condition, const TimeValue* pTimeout);
/** Queries the state of the condition without blocking.
@param Condition handle to a created condition.
@return True: condition is set. <BR>
False: condition is not set. <BR>
*/
-sal_Bool SAL_CALL osl_checkCondition(oslCondition Condition);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_checkCondition(oslCondition Condition);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/diagnose.h b/sal/inc/osl/diagnose.h
index 12357aa9bd61..dad4669b5dce 100644
--- a/sal/inc/osl/diagnose.h
+++ b/sal/inc/osl/diagnose.h
@@ -99,10 +99,10 @@ extern "C" {
Diagnostic support
*/
-void SAL_CALL osl_breakDebug(void);
-sal_Bool SAL_CALL osl_assertFailedLine(const sal_Char* pszFileName, sal_Int32 nLine, const sal_Char* pszMessage);
-void SAL_CALL osl_trace(const sal_Char* pszFormat, ...);
-sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszErrorMessage);
+SAL_DLLPUBLIC void SAL_CALL osl_breakDebug(void);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_assertFailedLine(const sal_Char* pszFileName, sal_Int32 nLine, const sal_Char* pszMessage);
+SAL_DLLPUBLIC void SAL_CALL osl_trace(const sal_Char* pszFormat, ...);
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszErrorMessage);
/*
For message delivery
@@ -123,13 +123,13 @@ typedef void (SAL_CALL *pfunc_osl_printDetailedDebugMessage)( const sal_Char * p
The given message handler must be able to cope with a <NULL/> message.
*/
-pfunc_osl_printDebugMessage SAL_CALL osl_setDebugMessageFunc( pfunc_osl_printDebugMessage pNewFunc );
+SAL_DLLPUBLIC pfunc_osl_printDebugMessage SAL_CALL osl_setDebugMessageFunc( pfunc_osl_printDebugMessage pNewFunc );
/** sets a delivery function for detailed message information.
The given message handler must be able to cope with a <NULL/> message.
*/
-pfunc_osl_printDetailedDebugMessage SAL_CALL osl_setDetailedDebugMessageFunc( pfunc_osl_printDetailedDebugMessage pNewFunc );
+SAL_DLLPUBLIC pfunc_osl_printDetailedDebugMessage SAL_CALL osl_setDetailedDebugMessageFunc( pfunc_osl_printDetailedDebugMessage pNewFunc );
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/diagnose.hxx b/sal/inc/osl/diagnose.hxx
index 45a6fdd3cf7c..7a8f5c189875 100644
--- a/sal/inc/osl/diagnose.hxx
+++ b/sal/inc/osl/diagnose.hxx
@@ -54,26 +54,27 @@ struct ObjectRegistryData;
extern "C" {
/** @internal */
-bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName )
+SAL_DLLPUBLIC bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses(
+ char const* pName )
SAL_THROW_EXTERN_C();
/** @internal */
-bool SAL_CALL osl_detail_ObjectRegistry_checkObjectCount(
+SAL_DLLPUBLIC bool SAL_CALL osl_detail_ObjectRegistry_checkObjectCount(
::osl::detail::ObjectRegistryData const& rData, ::std::size_t nExpected )
SAL_THROW_EXTERN_C();
/** @internal */
-void SAL_CALL osl_detail_ObjectRegistry_registerObject(
+SAL_DLLPUBLIC void SAL_CALL osl_detail_ObjectRegistry_registerObject(
::osl::detail::ObjectRegistryData & rData, void const* pObj )
SAL_THROW_EXTERN_C();
/** @internal */
-void SAL_CALL osl_detail_ObjectRegistry_revokeObject(
+SAL_DLLPUBLIC void SAL_CALL osl_detail_ObjectRegistry_revokeObject(
::osl::detail::ObjectRegistryData & rData, void const* pObj )
SAL_THROW_EXTERN_C();
/** @internal */
-::osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex()
+SAL_DLLPUBLIC ::osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex()
SAL_THROW_EXTERN_C();
} // extern "C"
diff --git a/sal/inc/osl/file.h b/sal/inc/osl/file.h
index c5ff5585f578..cc12b1c616f8 100644
--- a/sal/inc/osl/file.h
+++ b/sal/inc/osl/file.h
@@ -172,7 +172,8 @@ typedef void *oslDirectoryItem;
@see osl_closeDirectory()
*/
-oslFileError SAL_CALL osl_openDirectory( rtl_uString *pustrDirectoryURL, oslDirectory *pDirectory);
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_openDirectory(
+ rtl_uString *pustrDirectoryURL, oslDirectory *pDirectory);
/** Retrieve the next item of a previously opened directory.
@@ -206,7 +207,7 @@ oslFileError SAL_CALL osl_openDirectory( rtl_uString *pustrDirectoryURL, oslDire
@see osl_getFileStatus()
*/
-oslFileError SAL_CALL osl_getNextDirectoryItem(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getNextDirectoryItem(
oslDirectory Directory,
oslDirectoryItem *pItem,
sal_uInt32 uHint
@@ -228,7 +229,8 @@ oslFileError SAL_CALL osl_getNextDirectoryItem(
@see osl_openDirectory()
*/
-oslFileError SAL_CALL osl_closeDirectory(oslDirectory Directory);
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_closeDirectory(
+ oslDirectory Directory);
/** Retrieve a single directory item.
@@ -267,7 +269,7 @@ oslFileError SAL_CALL osl_closeDirectory(oslDirectory Directory);
@see osl_getNextDirectoryItem()
*/
-oslFileError SAL_CALL osl_getDirectoryItem(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getDirectoryItem(
rtl_uString *pustrFileURL,
oslDirectoryItem *pItem
);
@@ -290,7 +292,8 @@ oslFileError SAL_CALL osl_getDirectoryItem(
@see osl_releaseDirectoryItem()
*/
-oslFileError SAL_CALL osl_acquireDirectoryItem( oslDirectoryItem Item );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_acquireDirectoryItem(
+ oslDirectoryItem Item );
/** Decrease the refcount of a directory item handle.
@@ -312,7 +315,8 @@ oslFileError SAL_CALL osl_acquireDirectoryItem( oslDirectoryItem Item );
@see osl_acquireDirectoryItem()
*/
-oslFileError SAL_CALL osl_releaseDirectoryItem( oslDirectoryItem Item );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_releaseDirectoryItem(
+ oslDirectoryItem Item );
/* File types */
@@ -435,7 +439,8 @@ struct _oslFileStatus {
@see oslFileStatus
*/
-oslFileError SAL_CALL osl_getFileStatus( oslDirectoryItem Item, oslFileStatus *pStatus, sal_uInt32 uFieldMask );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getFileStatus(
+ oslDirectoryItem Item, oslFileStatus *pStatus, sal_uInt32 uFieldMask );
typedef void *oslVolumeDeviceHandle;
@@ -457,7 +462,8 @@ typedef void *oslVolumeDeviceHandle;
@see osl_getVolumeInformation()
*/
-oslFileError SAL_CALL osl_unmountVolumeDevice( oslVolumeDeviceHandle Handle );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_unmountVolumeDevice(
+ oslVolumeDeviceHandle Handle );
/** Automount a volume device.
@@ -476,7 +482,8 @@ oslFileError SAL_CALL osl_unmountVolumeDevice( oslVolumeDeviceHandle Handle );
@see osl_getVolumeInformation()
*/
-oslFileError SAL_CALL osl_automountVolumeDevice( oslVolumeDeviceHandle Handle );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_automountVolumeDevice(
+ oslVolumeDeviceHandle Handle );
/** Release a volume device handle.
@@ -497,7 +504,8 @@ oslFileError SAL_CALL osl_automountVolumeDevice( oslVolumeDeviceHandle Handle );
@see osl_getVolumeInformation()
*/
-oslFileError SAL_CALL osl_releaseVolumeDeviceHandle( oslVolumeDeviceHandle Handle );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_releaseVolumeDeviceHandle(
+ oslVolumeDeviceHandle Handle );
/** Acquire a volume device handle.
@@ -517,7 +525,8 @@ oslFileError SAL_CALL osl_releaseVolumeDeviceHandle( oslVolumeDeviceHandle Handl
@see osl_getVolumeInformation()
*/
-oslFileError SAL_CALL osl_acquireVolumeDeviceHandle( oslVolumeDeviceHandle Handle );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_acquireVolumeDeviceHandle(
+ oslVolumeDeviceHandle Handle );
/** Get the full qualified URL where a device is mounted to.
@@ -548,7 +557,8 @@ oslFileError SAL_CALL osl_acquireVolumeDeviceHandle( oslVolumeDeviceHandle Handl
@see osl_unmountVolumeDevice()
*/
-oslFileError SAL_CALL osl_getVolumeDeviceMountPath( oslVolumeDeviceHandle Handle, rtl_uString **ppustrDirectoryURL);
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getVolumeDeviceMountPath(
+ oslVolumeDeviceHandle Handle, rtl_uString **ppustrDirectoryURL);
/* Volume attributes */
@@ -643,7 +653,7 @@ struct _oslVolumeInfo {
@see oslVolumeInfo
*/
-oslFileError SAL_CALL osl_getVolumeInformation(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getVolumeInformation(
rtl_uString *pustrDirectoryURL,
oslVolumeInfo *pInfo,
sal_uInt32 uFieldMask );
@@ -706,7 +716,8 @@ typedef void *oslFileHandle;
@see osl_getFileSize()
*/
-oslFileError SAL_CALL osl_openFile( rtl_uString *pustrFileURL, oslFileHandle *pHandle, sal_uInt32 uFlags );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_openFile(
+ rtl_uString *pustrFileURL, oslFileHandle *pHandle, sal_uInt32 uFlags );
#define osl_Pos_Absolut 1
#define osl_Pos_Current 2
@@ -732,7 +743,8 @@ oslFileError SAL_CALL osl_openFile( rtl_uString *pustrFileURL, oslFileHandle *pH
@see osl_getFilePos()
*/
-oslFileError SAL_CALL osl_setFilePos( oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uPos ) SAL_WARN_UNUSED_RESULT;
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_setFilePos(
+ oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uPos ) SAL_WARN_UNUSED_RESULT;
/** Retrieve the current position of the internal pointer of an open file.
@@ -754,7 +766,8 @@ oslFileError SAL_CALL osl_setFilePos( oslFileHandle Handle, sal_uInt32 uHow, sal
@see osl_writeFile()
*/
-oslFileError SAL_CALL osl_getFilePos( oslFileHandle Handle, sal_uInt64 *pPos );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getFilePos(
+ oslFileHandle Handle, sal_uInt64 *pPos );
/** Set the file size of an open file.
@@ -779,7 +792,8 @@ oslFileError SAL_CALL osl_getFilePos( oslFileHandle Handle, sal_uInt64 *pPos );
@see osl_getFileSize()
*/
-oslFileError SAL_CALL osl_setFileSize( oslFileHandle Handle, sal_uInt64 uSize );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_setFileSize(
+ oslFileHandle Handle, sal_uInt64 uSize );
/** Get the file size of an open file.
@@ -803,7 +817,8 @@ oslFileError SAL_CALL osl_setFileSize( oslFileHandle Handle, sal_uInt64 uSize );
@see osl_getFileStatus()
*/
-oslFileError SAL_CALL osl_getFileSize( oslFileHandle Handle, sal_uInt64 *pSize );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getFileSize(
+ oslFileHandle Handle, sal_uInt64 *pSize );
/** Map flags.
@@ -824,8 +839,7 @@ oslFileError SAL_CALL osl_getFileSize( oslFileHandle Handle, sal_uInt64 *pSize )
@since UDK 3.2.10
*/
-oslFileError
-SAL_CALL osl_mapFile (
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_mapFile (
oslFileHandle Handle,
void** ppAddr,
sal_uInt64 uLength,
@@ -838,8 +852,7 @@ SAL_CALL osl_mapFile (
@since UDK 3.2.10
*/
-oslFileError
-SAL_CALL osl_unmapFile (
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_unmapFile (
void* pAddr,
sal_uInt64 uLength
);
@@ -880,7 +893,8 @@ SAL_CALL osl_unmapFile (
@see osl_setFilePos()
*/
-oslFileError SAL_CALL osl_readFile( oslFileHandle Handle, void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 *pBytesRead );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_readFile(
+ oslFileHandle Handle, void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 *pBytesRead );
/** Test if the end of a file is reached.
@@ -908,7 +922,8 @@ oslFileError SAL_CALL osl_readFile( oslFileHandle Handle, void *pBuffer, sal_uIn
@see osl_setFilePos()
*/
-oslFileError SAL_CALL osl_isEndOfFile( oslFileHandle Handle, sal_Bool *pIsEOF );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_isEndOfFile(
+ oslFileHandle Handle, sal_Bool *pIsEOF );
/** Write a number of bytes to a file.
@@ -948,7 +963,8 @@ oslFileError SAL_CALL osl_isEndOfFile( oslFileHandle Handle, sal_Bool *pIsEOF );
@see osl_setFilePos()
*/
-oslFileError SAL_CALL osl_writeFile( oslFileHandle Handle, const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 *pBytesWritten );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_writeFile(
+ oslFileHandle Handle, const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 *pBytesWritten );
/** Read a number of bytes from a specified offset in a file.
@@ -956,7 +972,7 @@ oslFileError SAL_CALL osl_writeFile( oslFileHandle Handle, const void *pBuffer,
@since UDK 3.2.10
*/
-oslFileError SAL_CALL osl_readFileAt(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_readFileAt(
oslFileHandle Handle,
sal_uInt64 uOffset,
void* pBuffer,
@@ -971,7 +987,7 @@ oslFileError SAL_CALL osl_readFileAt(
@since UDK 3.2.10
*/
-oslFileError SAL_CALL osl_writeFileAt(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_writeFileAt(
oslFileHandle Handle,
sal_uInt64 uOffset,
const void* pBuffer,
@@ -1007,7 +1023,8 @@ oslFileError SAL_CALL osl_writeFileAt(
@see osl_setFilePos()
*/
-oslFileError SAL_CALL osl_readLine( oslFileHandle Handle, sal_Sequence** ppSequence );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_readLine(
+ oslFileHandle Handle, sal_Sequence** ppSequence );
/** Synchronize the memory representation of a file with that on the physical medium.
@@ -1043,7 +1060,7 @@ oslFileError SAL_CALL osl_readLine( oslFileHandle Handle, sal_Sequence** ppSeque
@see osl_openFile()
@see osl_writeFile()
*/
-oslFileError SAL_CALL osl_syncFile(oslFileHandle Handle);
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_syncFile( oslFileHandle Handle );
/** Close an open file.
@@ -1062,7 +1079,7 @@ oslFileError SAL_CALL osl_syncFile(oslFileHandle Handle);
@see osl_openFile()
*/
-oslFileError SAL_CALL osl_closeFile( oslFileHandle Handle );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_closeFile( oslFileHandle Handle );
/** Create a directory.
@@ -1092,7 +1109,7 @@ oslFileError SAL_CALL osl_closeFile( oslFileHandle Handle );
@see osl_removeDirectory()
*/
-oslFileError SAL_CALL osl_createDirectory( rtl_uString* pustrDirectoryURL );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_createDirectory( rtl_uString* pustrDirectoryURL );
/** Remove an empty directory.
@@ -1123,7 +1140,7 @@ oslFileError SAL_CALL osl_createDirectory( rtl_uString* pustrDirectoryURL );
@see osl_createDirectory()
*/
-oslFileError SAL_CALL osl_removeDirectory( rtl_uString* pustrDirectoryURL );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_removeDirectory( rtl_uString* pustrDirectoryURL );
/** Function pointer representing a function that will be called by osl_createDirectoryPath
if a directory has been created.
@@ -1201,7 +1218,7 @@ typedef void (SAL_CALL *oslDirectoryCreationCallbackFunc)(void* pData, rtl_uStri
@see oslFileError
@see osl_createDirectory
*/
-oslFileError SAL_CALL osl_createDirectoryPath(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_createDirectoryPath(
rtl_uString* aDirectoryUrl,
oslDirectoryCreationCallbackFunc aDirectoryCreationCallbackFunc,
void* pData);
@@ -1234,7 +1251,8 @@ oslFileError SAL_CALL osl_createDirectoryPath(
@see osl_openFile()
*/
-oslFileError SAL_CALL osl_removeFile( rtl_uString* pustrFileURL );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_removeFile(
+ rtl_uString* pustrFileURL );
/** Copy a file to a new destination.
@@ -1263,7 +1281,8 @@ oslFileError SAL_CALL osl_removeFile( rtl_uString* pustrFileURL );
@see osl_removeFile()
*/
-oslFileError SAL_CALL osl_copyFile( rtl_uString* pustrSourceFileURL, rtl_uString *pustrDestFileURL );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_copyFile(
+ rtl_uString* pustrSourceFileURL, rtl_uString *pustrDestFileURL );
/** Move a file or directory to a new destination or renames it.
@@ -1290,7 +1309,8 @@ oslFileError SAL_CALL osl_copyFile( rtl_uString* pustrSourceFileURL, rtl_uString
@see osl_copyFile()
*/
-oslFileError SAL_CALL osl_moveFile( rtl_uString* pustrSourceFileURL, rtl_uString *pustrDestFileURL );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_moveFile(
+ rtl_uString* pustrSourceFileURL, rtl_uString *pustrDestFileURL );
/** Determine a valid unused canonical name for a requested name.
@@ -1314,7 +1334,8 @@ oslFileError SAL_CALL osl_moveFile( rtl_uString* pustrSourceFileURL, rtl_uString
@see osl_getFileStatus()
*/
-oslFileError SAL_CALL osl_getCanonicalName( rtl_uString *pustrRequestedURL, rtl_uString **ppustrValidURL);
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getCanonicalName(
+ rtl_uString *pustrRequestedURL, rtl_uString **ppustrValidURL);
/** Convert a path relative to a given directory into an full qualified file URL.
@@ -1352,7 +1373,7 @@ oslFileError SAL_CALL osl_getCanonicalName( rtl_uString *pustrRequestedURL, rtl_
@see osl_getFileStatus()
*/
-oslFileError SAL_CALL osl_getAbsoluteFileURL(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getAbsoluteFileURL(
rtl_uString* pustrBaseDirectoryURL,
rtl_uString *pustrRelativeFileURL,
rtl_uString **ppustrAbsoluteFileURL );
@@ -1373,7 +1394,8 @@ oslFileError SAL_CALL osl_getAbsoluteFileURL(
@see osl_getSystemPathFromFileURL()
*/
-oslFileError SAL_CALL osl_getFileURLFromSystemPath( rtl_uString *pustrSystemPath, rtl_uString **ppustrFileURL);
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getFileURLFromSystemPath(
+ rtl_uString *pustrSystemPath, rtl_uString **ppustrFileURL);
/** Searche a full qualified system path or a file URL.
@@ -1404,7 +1426,8 @@ oslFileError SAL_CALL osl_getFileURLFromSystemPath( rtl_uString *pustrSystemPath
@see osl_getSystemPathFromFileURL()
*/
-oslFileError SAL_CALL osl_searchFileURL( rtl_uString *pustrFileName, rtl_uString *pustrSearchPath, rtl_uString **ppustrFileURL );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_searchFileURL(
+ rtl_uString *pustrFileName, rtl_uString *pustrSearchPath, rtl_uString **ppustrFileURL );
/** Convert a file URL into a system dependend path.
@@ -1422,7 +1445,8 @@ oslFileError SAL_CALL osl_searchFileURL( rtl_uString *pustrFileName, rtl_uString
@see osl_getFileURLFromSystemPath()
*/
-oslFileError SAL_CALL osl_getSystemPathFromFileURL( rtl_uString *pustrFileURL, rtl_uString **ppustrSystemPath);
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getSystemPathFromFileURL(
+ rtl_uString *pustrFileURL, rtl_uString **ppustrSystemPath);
/** Function pointer representing the function called back from osl_abbreviateSystemPath
@@ -1461,7 +1485,7 @@ typedef sal_uInt32 (SAL_CALL *oslCalcTextWidthFunc)( rtl_uString *ustrText );
@see oslCalcTextWidthFunc
*/
-oslFileError SAL_CALL osl_abbreviateSystemPath(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_abbreviateSystemPath(
rtl_uString *ustrSystemPath,
rtl_uString **pustrCompacted,
sal_uInt32 uMaxWidth,
@@ -1483,7 +1507,8 @@ oslFileError SAL_CALL osl_abbreviateSystemPath(
@see osl_getFileStatus()
*/
-oslFileError SAL_CALL osl_setFileAttributes( rtl_uString *pustrFileURL, sal_uInt64 uAttributes );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_setFileAttributes(
+ rtl_uString *pustrFileURL, sal_uInt64 uAttributes );
/** Set the file time.
@@ -1508,7 +1533,7 @@ oslFileError SAL_CALL osl_setFileAttributes( rtl_uString *pustrFileURL, sal_uInt
@see osl_getFileStatus()
*/
-oslFileError SAL_CALL osl_setFileTime(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_setFileTime(
rtl_uString *pustrFileURL,
const TimeValue *aCreationTime,
const TimeValue *aLastAccessTime,
@@ -1525,7 +1550,8 @@ oslFileError SAL_CALL osl_setFileTime(
osl_File_E_NOENT no such file or directory not found
*/
-oslFileError SAL_CALL osl_getTempDirURL( rtl_uString **pustrTempDirURL );
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_getTempDirURL(
+ rtl_uString **pustrTempDirURL );
/** Creates a temporary file in the directory provided by the caller or the
@@ -1580,7 +1606,7 @@ oslFileError SAL_CALL osl_getTempDirURL( rtl_uString **pustrTempDirURL );
@see osl_getTempDirURL()
*/
-oslFileError SAL_CALL osl_createTempFile(
+SAL_DLLPUBLIC oslFileError SAL_CALL osl_createTempFile(
rtl_uString* pustrDirectoryURL,
oslFileHandle* pHandle,
rtl_uString** ppustrTempFileURL);
diff --git a/sal/inc/osl/interlck.h b/sal/inc/osl/interlck.h
index 63a4adfaa3fa..23557f934ffd 100644
--- a/sal/inc/osl/interlck.h
+++ b/sal/inc/osl/interlck.h
@@ -41,13 +41,13 @@ typedef sal_Int32 oslInterlockedCount;
@param Address of counter variable
@return The result of the operation is zero, the value of the count variable.
*/
-oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount);
+SAL_DLLPUBLIC oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount);
/** Decrement the count variable addressed by pCount.
@param Address of counter variable
@return The result of the operation is the new value is of the count variable.
*/
-oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount* pCount);
+SAL_DLLPUBLIC oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount* pCount);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/module.h b/sal/inc/osl/module.h
index 67842325eb62..7d00284d5843 100644
--- a/sal/inc/osl/module.h
+++ b/sal/inc/osl/module.h
@@ -73,14 +73,14 @@ typedef void ( SAL_CALL *oslGenericFunction )( void );
@param strModuleName denotes the name of the module to be loaded.
@return NULL if the module could not be loaded, otherwise a handle to the module.
*/
-oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMode);
+SAL_DLLPUBLIC oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMode);
/** Load a shared library or module.
@param pModuleName denotes the name of the module to be loaded.
@return NULL if the module could not be loaded, otherwise a handle to the module.
@since UDK 3.6
*/
-oslModule SAL_CALL osl_loadModuleAscii(const sal_Char *pModuleName, sal_Int32 nRtldMode);
+SAL_DLLPUBLIC oslModule SAL_CALL osl_loadModuleAscii(const sal_Char *pModuleName, sal_Int32 nRtldMode);
/** Load a module located relative to some other module.
@@ -99,7 +99,7 @@ oslModule SAL_CALL osl_loadModuleAscii(const sal_Char *pModuleName, sal_Int32 nR
@since UDK 3.2.8
*/
-oslModule SAL_CALL osl_loadModuleRelative(
+SAL_DLLPUBLIC oslModule SAL_CALL osl_loadModuleRelative(
oslGenericFunction baseModule, rtl_uString * relativePath, sal_Int32 mode);
/** Load a module located relative to some other module.
@@ -146,16 +146,16 @@ oslModule SAL_CALL osl_loadModuleRelativeAscii(
@see osl_getFunctionSymbol
@see osl_getAsciiFunctionSymbol
*/
-sal_Bool SAL_CALL osl_getModuleHandle(rtl_uString *pModuleName, oslModule *pResult);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getModuleHandle(rtl_uString *pModuleName, oslModule *pResult);
/** Release the module
*/
-void SAL_CALL osl_unloadModule(oslModule Module);
+SAL_DLLPUBLIC void SAL_CALL osl_unloadModule(oslModule Module);
/** lookup the specified symbol name.
@return address of the symbol or NULL if lookup failed.
*/
-void* SAL_CALL osl_getSymbol( oslModule Module, rtl_uString *strSymbolName);
+SAL_DLLPUBLIC void* SAL_CALL osl_getSymbol( oslModule Module, rtl_uString *strSymbolName);
/** Lookup the specified function symbol name.
@@ -179,7 +179,8 @@ void* SAL_CALL osl_getSymbol( oslModule Module, rtl_uString *strSymbolName);
@see osl_getSymbol
@see osl_getAsciiFunctionSymbol
*/
-oslGenericFunction SAL_CALL osl_getFunctionSymbol( oslModule Module, rtl_uString *ustrFunctionSymbolName );
+SAL_DLLPUBLIC oslGenericFunction SAL_CALL osl_getFunctionSymbol(
+ oslModule Module, rtl_uString *ustrFunctionSymbolName );
/** Lookup the specified function symbol name.
@@ -203,7 +204,8 @@ oslGenericFunction SAL_CALL osl_getFunctionSymbol( oslModule Module, rtl_uString
@see osl_getModuleHandle
@see osl_getFunctionSymbol
*/
-oslGenericFunction SAL_CALL osl_getAsciiFunctionSymbol(oslModule Module, const sal_Char *pSymbol);
+SAL_DLLPUBLIC oslGenericFunction SAL_CALL osl_getAsciiFunctionSymbol(
+ oslModule Module, const sal_Char *pSymbol );
/** Lookup URL of module which is mapped at the specified address.
@@ -211,7 +213,8 @@ oslGenericFunction SAL_CALL osl_getAsciiFunctionSymbol(oslModule Module, const s
@param pustrURL receives the URL of the module that is mapped at pv.
@return sal_True on success, sal_False if no module can be found at the specified address.
*/
-sal_Bool SAL_CALL osl_getModuleURLFromAddress( void *pv, rtl_uString **pustrURL );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getModuleURLFromAddress(
+ void *pv, rtl_uString **pustrURL );
/** Lookup URL of module which is mapped at the specified function address.
@@ -234,7 +237,8 @@ sal_Bool SAL_CALL osl_getModuleURLFromAddress( void *pv, rtl_uString **pustrURL
@see osl_getModuleURLFromAddress
*/
-sal_Bool SAL_CALL osl_getModuleURLFromFunctionAddress( oslGenericFunction pf, rtl_uString **pustrFunctionURL );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getModuleURLFromFunctionAddress(
+ oslGenericFunction pf, rtl_uString **pustrFunctionURL );
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/mutex.h b/sal/inc/osl/mutex.h
index ca5e978111c9..6efa8218768f 100644
--- a/sal/inc/osl/mutex.h
+++ b/sal/inc/osl/mutex.h
@@ -41,35 +41,35 @@ typedef struct _oslMutexImpl * oslMutex;
/** Create a thread-local mutex.
@return 0 if the mutex could not be created, otherwise a handle to the mutex.
*/
-oslMutex SAL_CALL osl_createMutex(void);
+SAL_DLLPUBLIC oslMutex SAL_CALL osl_createMutex(void);
/** Release the OS-structures and free mutex data-structure.
@param Mutex the mutex-handle
*/
-void SAL_CALL osl_destroyMutex(oslMutex Mutex);
+SAL_DLLPUBLIC void SAL_CALL osl_destroyMutex(oslMutex Mutex);
/** Acquire the mutex, block if already acquired by another thread.
@param Mutex handle to a created mutex.
@return False if system-call fails.
*/
-sal_Bool SAL_CALL osl_acquireMutex(oslMutex Mutex);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_acquireMutex(oslMutex Mutex);
/** Try to acquire the mutex without blocking.
@param Mutex handle to a created mutex.
@return False if it could not be acquired.
*/
-sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutex Mutex);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutex Mutex);
/** Release the mutex.
@param Mutex handle to a created mutex.
@return False if system-call fails.
*/
-sal_Bool SAL_CALL osl_releaseMutex(oslMutex Mutex);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_releaseMutex(oslMutex Mutex);
/** Returns a unique and global mutex.
@return the global mutex.
*/
-oslMutex * SAL_CALL osl_getGlobalMutex(void);
+SAL_DLLPUBLIC oslMutex * SAL_CALL osl_getGlobalMutex(void);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/nlsupport.h b/sal/inc/osl/nlsupport.h
index 9c04d8cd0996..3b66c8ec7ed7 100644
--- a/sal/inc/osl/nlsupport.h
+++ b/sal/inc/osl/nlsupport.h
@@ -49,7 +49,8 @@ extern "C" {
description or RTL_TEXTENCODING_DONTKNOW if no mapping is available.
*/
-rtl_TextEncoding SAL_CALL osl_getTextEncodingFromLocale( rtl_Locale * pLocale );
+SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL osl_getTextEncodingFromLocale(
+ rtl_Locale * pLocale );
#ifdef __cplusplus
diff --git a/sal/inc/osl/pipe.h b/sal/inc/osl/pipe.h
index f29b9f0b925d..1245d856156a 100644
--- a/sal/inc/osl/pipe.h
+++ b/sal/inc/osl/pipe.h
@@ -62,38 +62,39 @@ typedef struct oslPipeImpl * oslPipe;
/**
*/
-oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options, oslSecurity Security);
+SAL_DLLPUBLIC oslPipe SAL_CALL osl_createPipe(
+ rtl_uString *strPipeName, oslPipeOptions Options, oslSecurity Security);
/** decreases the refcount of the pipe.
If the refcount drops to zero, the handle is destroyed.
*/
-void SAL_CALL osl_releasePipe( oslPipe );
+SAL_DLLPUBLIC void SAL_CALL osl_releasePipe( oslPipe );
/** increases the refcount of the pipe.
*/
-void SAL_CALL osl_acquirePipe( oslPipe Pipe );
+SAL_DLLPUBLIC void SAL_CALL osl_acquirePipe( oslPipe Pipe );
/** closes the pipe, any read,write or accept actions stop immeadiatly.
*/
-void SAL_CALL osl_closePipe( oslPipe );
+SAL_DLLPUBLIC void SAL_CALL osl_closePipe( oslPipe );
-oslPipe SAL_CALL osl_acceptPipe(oslPipe Pipe);
+SAL_DLLPUBLIC oslPipe SAL_CALL osl_acceptPipe(oslPipe Pipe);
-sal_Int32 SAL_CALL osl_sendPipe(oslPipe Pipe, const void* pBuffer, sal_Int32 BufferSize);
-sal_Int32 SAL_CALL osl_receivePipe(oslPipe Pipe, void* pBuffer, sal_Int32 BufferSize);
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendPipe(oslPipe Pipe, const void* pBuffer, sal_Int32 BufferSize);
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receivePipe(oslPipe Pipe, void* pBuffer, sal_Int32 BufferSize);
/** Reads blocking from the pipe.
@return Number of read bytes. If less than BufferSize, the pipe was closed.
*/
-sal_Int32 SAL_CALL osl_readPipe( oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize );
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_readPipe( oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize );
/** Writes blocking onto the pipe.
@return Number of written bytes. If less than BufferSize, the pipe was closed.
*/
-sal_Int32 SAL_CALL osl_writePipe( oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize );
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_writePipe( oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize );
-oslPipeError SAL_CALL osl_getLastPipeError(oslPipe Pipe);
+SAL_DLLPUBLIC oslPipeError SAL_CALL osl_getLastPipeError(oslPipe Pipe);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/process.h b/sal/inc/osl/process.h
index 8a64b82f5a4e..2eb2954ab5d4 100644
--- a/sal/inc/osl/process.h
+++ b/sal/inc/osl/process.h
@@ -176,7 +176,7 @@ typedef void* oslProcess;
@see osl_freeProcessHandle
@see osl_loginUser
*/
-oslProcessError SAL_CALL osl_executeProcess(
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_executeProcess(
rtl_uString* ustrImageName,
rtl_uString* ustrArguments[],
sal_uInt32 nArguments,
@@ -262,7 +262,7 @@ oslProcessError SAL_CALL osl_executeProcess(
@see osl_loginUser
@see osl_closeFile
*/
-oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO(
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO(
rtl_uString* strImageName,
rtl_uString* ustrArguments[],
sal_uInt32 nArguments,
@@ -283,7 +283,8 @@ oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO(
@see osl_getProcess
@see osl_joinProcess
*/
-oslProcessError SAL_CALL osl_terminateProcess(oslProcess Process);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_terminateProcess(
+ oslProcess Process);
/** @deprecated
@@ -292,13 +293,15 @@ oslProcessError SAL_CALL osl_terminateProcess(oslProcess Process);
@return the process handle on success, NULL in all other cases
*/
-oslProcess SAL_CALL osl_getProcess(oslProcessIdentifier Ident);
+SAL_DLLPUBLIC oslProcess SAL_CALL osl_getProcess(
+ oslProcessIdentifier Ident);
/** Free the specified proces-handle.
@param Process [in]
*/
-void SAL_CALL osl_freeProcessHandle(oslProcess Process);
+SAL_DLLPUBLIC void SAL_CALL osl_freeProcessHandle(
+ oslProcess Process);
/** Wait for completation of the specified childprocess.
@@ -306,7 +309,8 @@ void SAL_CALL osl_freeProcessHandle(oslProcess Process);
@return ols_Process_E_None
@see osl_executeProcess
*/
-oslProcessError SAL_CALL osl_joinProcess(oslProcess Process);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_joinProcess(
+ oslProcess Process);
/** Wait with a timeout for the completion of the specified child
process.
@@ -325,7 +329,8 @@ oslProcessError SAL_CALL osl_joinProcess(oslProcess Process);
@see osl_executeProcess
*/
-oslProcessError SAL_CALL osl_joinProcessWithTimeout(oslProcess Process, const TimeValue* pTimeout);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_joinProcessWithTimeout(
+ oslProcess Process, const TimeValue* pTimeout);
/** Retrieves information about a Process
@param Process [in] the process handle of the process
@@ -342,21 +347,22 @@ oslProcessError SAL_CALL osl_joinProcessWithTimeout(oslProcess Process, const Ti
retrieved valid information fields.
@return osl_Process_E_None on success, osl_Process_E_Unknown on failure.
*/
-oslProcessError SAL_CALL osl_getProcessInfo(oslProcess Process, oslProcessData Fields,
- oslProcessInfo* pInfo);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_getProcessInfo(
+ oslProcess Process, oslProcessData Fields, oslProcessInfo* pInfo);
/** Get the filename of the executable.
@param strFile [out] the string that receives the executable file path.
@return osl_Process_E_None or does not return.
@see osl_executeProcess
*/
-oslProcessError SAL_CALL osl_getExecutableFile(rtl_uString **strFile);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_getExecutableFile(
+ rtl_uString **strFile);
/** @return the number of commandline arguments passed to the main-function of
this process
@see osl_getCommandArg
*/
-sal_uInt32 SAL_CALL osl_getCommandArgCount(void);
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getCommandArgCount(void);
/** Get the nArg-th command-line argument passed to the main-function of this process.
@param nArg [in] The number of the argument to return.
@@ -364,7 +370,8 @@ sal_uInt32 SAL_CALL osl_getCommandArgCount(void);
@return osl_Process_E_None or does not return.
@see osl_executeProcess
*/
-oslProcessError SAL_CALL osl_getCommandArg(sal_uInt32 nArg, rtl_uString **strCommandArg);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_getCommandArg(
+ sal_uInt32 nArg, rtl_uString **strCommandArg);
/** Set the command-line arguments as passed to the main-function of this process.
@@ -379,13 +386,14 @@ oslProcessError SAL_CALL osl_getCommandArg(sal_uInt32 nArg, rtl_uString **strCom
@see osl_getCommandArgCount
@see osl_getCommandArg
*/
-void SAL_CALL osl_setCommandArgs (int argc, char **argv);
+SAL_DLLPUBLIC void SAL_CALL osl_setCommandArgs (int argc, char **argv);
/** Get the value of one enviroment variable.
@param strVar [in] denotes the name of the variable to get.
@param strValue [out] string that receives the value of environment variable.
*/
-oslProcessError SAL_CALL osl_getEnvironment(rtl_uString *strVar, rtl_uString **strValue);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_getEnvironment(
+ rtl_uString *strVar, rtl_uString **strValue);
/** Set the value of one enviroment variable.
@param strVar [in] denotes the name of the variable to set.
@@ -393,14 +401,16 @@ oslProcessError SAL_CALL osl_getEnvironment(rtl_uString *strVar, rtl_uString **s
@since UDK 3.2.13
*/
-oslProcessError SAL_CALL osl_setEnvironment(rtl_uString *strVar, rtl_uString *strValue);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_setEnvironment(
+ rtl_uString *strVar, rtl_uString *strValue);
/** Unsets the value of one enviroment variable.
@param strVar [in] denotes the name of the variable to unset.
@since UDK 3.2.13
*/
-oslProcessError SAL_CALL osl_clearEnvironment(rtl_uString *strVar);
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_clearEnvironment(
+ rtl_uString *strVar);
/** Get the working directory of the current process as a file URL.
@@ -408,7 +418,8 @@ oslProcessError SAL_CALL osl_clearEnvironment(rtl_uString *strVar);
@param pustrWorkingDir [out] string that receives the working directory file URL.
*/
-oslProcessError SAL_CALL osl_getProcessWorkingDir( rtl_uString **pustrWorkingDir );
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_getProcessWorkingDir(
+ rtl_uString **pustrWorkingDir );
/** Get the locale the process is currently running in.
@@ -419,7 +430,8 @@ oslProcessError SAL_CALL osl_getProcessWorkingDir( rtl_uString **pustrWorkingDir
@see osl_setProcessLocale
*/
-oslProcessError SAL_CALL osl_getProcessLocale( rtl_Locale ** ppLocale );
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_getProcessLocale(
+ rtl_Locale ** ppLocale );
/** Change the locale of the process.
@@ -427,12 +439,15 @@ oslProcessError SAL_CALL osl_getProcessLocale( rtl_Locale ** ppLocale );
@see osl_getProcessLocale
*/
-oslProcessError SAL_CALL osl_setProcessLocale( rtl_Locale * pLocale );
+SAL_DLLPUBLIC oslProcessError SAL_CALL osl_setProcessLocale(
+ rtl_Locale * pLocale );
-sal_Bool SAL_CALL osl_sendResourcePipe(oslPipe Pipe, oslSocket Socket);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_sendResourcePipe(
+ oslPipe Pipe, oslSocket Socket );
-oslSocket SAL_CALL osl_receiveResourcePipe(oslPipe Pipe);
+SAL_DLLPUBLIC oslSocket SAL_CALL osl_receiveResourcePipe(
+ oslPipe Pipe );
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/profile.h b/sal/inc/osl/profile.h
index 341085918104..28e9be4cbba6 100644
--- a/sal/inc/osl/profile.h
+++ b/sal/inc/osl/profile.h
@@ -52,37 +52,43 @@ typedef void* oslProfile;
@return 0 if the profile could not be created, otherwise a handle to the profile.
@deprecated
*/
-oslProfile SAL_CALL osl_openProfile(rtl_uString *strProfileName, oslProfileOption Options);
+SAL_DLLPUBLIC oslProfile SAL_CALL osl_openProfile(
+ rtl_uString *strProfileName, oslProfileOption Options);
/** Deprecated API.
Close the opened profile an flush all data to the disk.
@param Profile handle to a opened profile.
@deprecated
*/
-sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_closeProfile(
+ oslProfile Profile);
/** Deprecated API.
@deprecated
*/
-sal_Bool SAL_CALL osl_flushProfile(oslProfile Profile);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_flushProfile(
+ oslProfile Profile);
/** Deprecated API.
@deprecated
*/
-sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_readProfileString(
+ oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_Char* pszString, sal_uInt32 MaxLen,
const sal_Char* pszDefault);
/** Deprecated API.
@deprecated
*/
-sal_Bool SAL_CALL osl_readProfileBool(oslProfile Profile,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_readProfileBool(
+ oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_Bool Default);
/** Deprecated API.
@deprecated
*/
-sal_uInt32 SAL_CALL osl_readProfileIdent(oslProfile Profile,
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_readProfileIdent(
+ oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_uInt32 FirstId, const sal_Char* Strings[],
sal_uInt32 Default);
@@ -90,19 +96,22 @@ sal_uInt32 SAL_CALL osl_readProfileIdent(oslProfile Profile,
/** Deprecated API.
@deprecated
*/
-sal_Bool SAL_CALL osl_writeProfileString(oslProfile Profile,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileString(
+ oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
const sal_Char* pszString);
/** Deprecated API.
@deprecated
*/
-sal_Bool SAL_CALL osl_writeProfileBool(oslProfile Profile,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileBool(
+ oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_Bool Value);
/** Deprecated API.
@deprecated
*/
-sal_Bool SAL_CALL osl_writeProfileIdent(oslProfile Profile,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileIdent(
+ oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_uInt32 FirstId, const sal_Char* Strings[],
sal_uInt32 Value);
@@ -113,8 +122,9 @@ sal_Bool SAL_CALL osl_writeProfileIdent(oslProfile Profile,
@return False if section or entry could not be found.
@deprecated
*/
-sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile,
- const sal_Char *pszSection, const sal_Char *pszEntry);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_removeProfileEntry(
+ oslProfile Profile,
+ const sal_Char *pszSection, const sal_Char *pszEntry);
/** Deprecated API.
Get all entries belonging to the specified section.
@@ -122,8 +132,9 @@ sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile,
@return Pointer to a array of pointers.
@deprecated
*/
-sal_uInt32 SAL_CALL osl_getProfileSectionEntries(oslProfile Profile, const sal_Char *pszSection,
- sal_Char* pszBuffer, sal_uInt32 MaxLen);
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSectionEntries(
+ oslProfile Profile, const sal_Char *pszSection,
+ sal_Char* pszBuffer, sal_uInt32 MaxLen);
/** Deprecated API.
Get all section entries
@@ -131,7 +142,8 @@ sal_uInt32 SAL_CALL osl_getProfileSectionEntries(oslProfile Profile, const sal_C
@return Pointer to a array of pointers.
@deprecated
*/
-sal_uInt32 SAL_CALL osl_getProfileSections(oslProfile Profile, sal_Char* pszBuffer, sal_uInt32 MaxLen);
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSections(
+ oslProfile Profile, sal_Char* pszBuffer, sal_uInt32 MaxLen);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/security.h b/sal/inc/osl/security.h
index 6c26df96a397..2b91321ec2fc 100644
--- a/sal/inc/osl/security.h
+++ b/sal/inc/osl/security.h
@@ -56,7 +56,7 @@ typedef void* oslSecurity;
@see osl_executeProcess
@see osl_executeApplication
*/
-oslSecurity SAL_CALL osl_getCurrentSecurity(void);
+SAL_DLLPUBLIC oslSecurity SAL_CALL osl_getCurrentSecurity(void);
/** Deprecated API
Create a security handle for the denoted user.
@@ -69,7 +69,7 @@ oslSecurity SAL_CALL osl_getCurrentSecurity(void);
@see osl_executeProcess
@see osl_executeApplication
*/
-oslSecurityError SAL_CALL osl_loginUser(
+SAL_DLLPUBLIC oslSecurityError SAL_CALL osl_loginUser(
rtl_uString *strUserName,
rtl_uString *strPasswd,
oslSecurity *pSecurity
@@ -87,7 +87,7 @@ oslSecurityError SAL_CALL osl_loginUser(
@see osl_executeProcess
@see osl_executeApplication
*/
-oslSecurityError SAL_CALL osl_loginUserOnFileServer(
+SAL_DLLPUBLIC oslSecurityError SAL_CALL osl_loginUserOnFileServer(
rtl_uString *strUserName,
rtl_uString *strPasswd,
rtl_uString *strFileServer,
@@ -98,41 +98,47 @@ oslSecurityError SAL_CALL osl_loginUserOnFileServer(
@param Security [in] the security handle for th user.
@return True, if the user has adminsitrator rights, otherwise false.
*/
-sal_Bool SAL_CALL osl_isAdministrator(oslSecurity Security);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isAdministrator(
+ oslSecurity Security);
/** Free the security handle, created by osl_loginUser or osl_getCurrentSecurity.
@param Security [in] the security handle.
@see osl_loginUser
*/
-void SAL_CALL osl_freeSecurityHandle(oslSecurity Security);
+SAL_DLLPUBLIC void SAL_CALL osl_freeSecurityHandle(
+ oslSecurity Security);
/** Get the login ident for the user of this security handle.
@param Security [in] the security handle.
@param strIdent [out] the string that receives the ident on success.
@return True, if the security handle is valid, otherwise False.
*/
-sal_Bool SAL_CALL osl_getUserIdent(oslSecurity Security, rtl_uString **strIdent);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserIdent(
+ oslSecurity Security, rtl_uString **strIdent);
/** Get the login name for the user of this security handle.
@param Security [in] the security handle.
@param pszName [out] the string that receives the user name on success.
@return True, if the security handle is valid, otherwise False.
*/
-sal_Bool SAL_CALL osl_getUserName(oslSecurity Security, rtl_uString **strName);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserName(
+ oslSecurity Security, rtl_uString **strName);
/** Get the home directory of the user of this security handle.
@param Security [in] the security handle.
@param strDirectory [out] the string that receives the directory path on success.
@return True, if the security handle is valid, otherwise False.
*/
-sal_Bool SAL_CALL osl_getHomeDir(oslSecurity Security, rtl_uString **strDirectory);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getHomeDir(
+ oslSecurity Security, rtl_uString **strDirectory);
/** Get the directory for configuration data of the user of this security handle.
@param Security [in] the security handle.
@param strDirectory [out] the string that receives the directory path on success.
@return True, if the security handle is valid, otherwise False.
*/
-sal_Bool SAL_CALL osl_getConfigDir(oslSecurity Security, rtl_uString **strDirectory);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getConfigDir(
+ oslSecurity Security, rtl_uString **strDirectory);
/** Load Profile of the User
@@ -141,7 +147,8 @@ sal_Bool SAL_CALL osl_getConfigDir(oslSecurity Security, rtl_uString **strDirect
@return True if the Profile could successfully loaded, False otherwise.
*/
-sal_Bool SAL_CALL osl_loadUserProfile(oslSecurity Security);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_loadUserProfile(
+ oslSecurity Security);
/** Unload a User Profile
@@ -150,7 +157,8 @@ sal_Bool SAL_CALL osl_loadUserProfile(oslSecurity Security);
@return nothing is returned!
*/
-void SAL_CALL osl_unloadUserProfile(oslSecurity Security);
+SAL_DLLPUBLIC void SAL_CALL osl_unloadUserProfile(
+ oslSecurity Security);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/semaphor.h b/sal/inc/osl/semaphor.h
index 8b117451f646..0a10a37dbe2f 100644
--- a/sal/inc/osl/semaphor.h
+++ b/sal/inc/osl/semaphor.h
@@ -47,7 +47,7 @@ typedef void* oslSemaphore;
immedeatly successfull.
@return 0 if the semaphore could not be created, otherwise a handle to the sem.
*/
-oslSemaphore SAL_CALL osl_createSemaphore(sal_uInt32 initialCount);
+SAL_DLLPUBLIC oslSemaphore SAL_CALL osl_createSemaphore(sal_uInt32 initialCount);
/** Release the OS-structures and free semaphore data-structure
@@ -56,7 +56,7 @@ oslSemaphore SAL_CALL osl_createSemaphore(sal_uInt32 initialCount);
@return fbbb
*/
-void SAL_CALL osl_destroySemaphore(oslSemaphore Semaphore);
+SAL_DLLPUBLIC void SAL_CALL osl_destroySemaphore(oslSemaphore Semaphore);
/** acquire() decreases the count. It will block if it tries to
decrease below zero.
@@ -66,7 +66,7 @@ void SAL_CALL osl_destroySemaphore(oslSemaphore Semaphore);
@return False if the system-call failed.
*/
-sal_Bool SAL_CALL osl_acquireSemaphore(oslSemaphore Semaphore);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_acquireSemaphore(oslSemaphore Semaphore);
/** tryToAcquire() tries to decreases the count. It will
return with False if it would decrease the count below zero.
@@ -76,7 +76,7 @@ sal_Bool SAL_CALL osl_acquireSemaphore(oslSemaphore Semaphore);
@deprecated
Must not be used, as unnamed semaphores are not supported on Mac OS X.
*/
-sal_Bool SAL_CALL osl_tryToAcquireSemaphore(oslSemaphore Semaphore);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_tryToAcquireSemaphore(oslSemaphore Semaphore);
/** release() increases the count.
@@ -85,7 +85,7 @@ sal_Bool SAL_CALL osl_tryToAcquireSemaphore(oslSemaphore Semaphore);
@return False if the system-call failed.
*/
-sal_Bool SAL_CALL osl_releaseSemaphore(oslSemaphore Semaphore);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_releaseSemaphore(oslSemaphore Semaphore);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/signal.h b/sal/inc/osl/signal.h
index 9314a6f4fd82..782eb5fd9ec9 100644
--- a/sal/inc/osl/signal.h
+++ b/sal/inc/osl/signal.h
@@ -84,11 +84,14 @@ typedef struct
*/
typedef oslSignalAction (SAL_CALL *oslSignalHandlerFunction)(void* pData, oslSignalInfo* pInfo);
-oslSignalHandler SAL_CALL osl_addSignalHandler(oslSignalHandlerFunction Handler, void* pData);
+SAL_DLLPUBLIC oslSignalHandler SAL_CALL osl_addSignalHandler(
+ oslSignalHandlerFunction Handler, void* pData);
-sal_Bool SAL_CALL osl_removeSignalHandler(oslSignalHandler hHandler);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_removeSignalHandler(
+ oslSignalHandler hHandler);
-oslSignalAction SAL_CALL osl_raiseSignal(sal_Int32 UserSignal, void* UserData);
+SAL_DLLPUBLIC oslSignalAction SAL_CALL osl_raiseSignal(
+ sal_Int32 UserSignal, void* UserData);
/** Enables or disables error reporting
@@ -102,7 +105,8 @@ oslSignalAction SAL_CALL osl_raiseSignal(sal_Int32 UserSignal, void* UserData);
sal_False if previous state of error reporting was disbaled<br>
*/
-sal_Bool SAL_CALL osl_setErrorReporting( sal_Bool bEnable );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setErrorReporting(
+ sal_Bool bEnable );
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/socket.h b/sal/inc/osl/socket.h
index f936102cdc43..1e81bb823090 100644
--- a/sal/inc/osl/socket.h
+++ b/sal/inc/osl/socket.h
@@ -216,18 +216,20 @@ typedef sal_uInt8 oslSocketIpxNodeNumber[6];
set to INADDR_ANY port 0.
@return 0 if address could not be created.
*/
-oslSocketAddr SAL_CALL osl_createEmptySocketAddr(oslAddrFamily Family);
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createEmptySocketAddr(
+ oslAddrFamily Family);
/** Creates a new SocketAddress and fills it from Addr.
*/
-oslSocketAddr SAL_CALL osl_copySocketAddr(oslSocketAddr Addr);
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_copySocketAddr(
+ oslSocketAddr Addr);
/** Compares the values of two SocketAddresses.
@return <code>sal_True</code> if both addresses denote the same socket address,
<code>sal_False</code> otherwise.
*/
-sal_Bool SAL_CALL osl_isEqualSocketAddr(
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isEqualSocketAddr(
oslSocketAddr Addr1, oslSocketAddr Addr2);
/** Uses the systems name-service interface to find an address for strHostname.
@@ -235,7 +237,8 @@ sal_Bool SAL_CALL osl_isEqualSocketAddr(
@return The desired address if one could be found, otherwise 0.
Don't forget to destroy the address if you don't need it any longer.
*/
-oslSocketAddr SAL_CALL osl_resolveHostname(rtl_uString *strHostname);
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_resolveHostname(
+ rtl_uString *strHostname);
/** Create an internet address usable for sending broadcast datagrams.
To limit the broadcast to your subnet, pass your hosts IP address
@@ -246,7 +249,7 @@ oslSocketAddr SAL_CALL osl_resolveHostname(rtl_uString *strHostname);
@param Port [in] port number in host byte order.
@return 0 if address could not be created.
*/
-oslSocketAddr SAL_CALL osl_createInetBroadcastAddr (
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createInetBroadcastAddr (
rtl_uString *strDottedAddr, sal_Int32 Port);
@@ -257,20 +260,22 @@ oslSocketAddr SAL_CALL osl_createInetBroadcastAddr (
@param Port [in] portnumber in host byte order.
@return 0 if address could not be created.
*/
-oslSocketAddr SAL_CALL osl_createInetSocketAddr (
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createInetSocketAddr (
rtl_uString *strDottedAddr, sal_Int32 Port);
/** Frees all resources allocated by Addr. The handle Addr must not
be used after the call anymore.
*/
-void SAL_CALL osl_destroySocketAddr(oslSocketAddr Addr);
+SAL_DLLPUBLIC void SAL_CALL osl_destroySocketAddr(
+ oslSocketAddr Addr);
/** Looks up the port-number designated to the specified service/protocol-pair.
(e.g. "ftp" "tcp").
@return OSL_INVALID_PORT if no appropriate entry was found, otherwise the port-number.
*/
-sal_Int32 SAL_CALL osl_getServicePort(rtl_uString *strServicename, rtl_uString *strProtocol);
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getServicePort(
+ rtl_uString *strServicename, rtl_uString *strProtocol);
@@ -278,28 +283,32 @@ sal_Int32 SAL_CALL osl_getServicePort(rtl_uString *strServicename, rtl_uString *
@return the family of the socket-address.
In case of an unknown family you get <code>osl_Socket_FamilyInvalid</code>.
*/
-oslAddrFamily SAL_CALL osl_getFamilyOfSocketAddr(oslSocketAddr Addr);
+SAL_DLLPUBLIC oslAddrFamily SAL_CALL osl_getFamilyOfSocketAddr(
+ oslSocketAddr Addr);
/** Retrieves the internet port-number of Addr.
@return the port-number of the address in host-byte order. If Addr
is not an address of type <code>osl_Socket_FamilyInet</code>, it returns <code>OSL_INVALID_PORT</code>
*/
-sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(oslSocketAddr Addr);
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(
+ oslSocketAddr Addr);
/** Sets the Port of Addr.
@param Port [in] is expected in host byte-order.
@return <code>sal_False</code> if Addr is not an inet-addr.
*/
-sal_Bool SAL_CALL osl_setInetPortOfSocketAddr(oslSocketAddr Addr, sal_Int32 Port);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setInetPortOfSocketAddr(
+ oslSocketAddr Addr, sal_Int32 Port);
/** Returns the hostname represented by Addr.
@param strHostname out-parameter. The hostname represented by the address. If
there is no hostname to be found, it returns 0.
*/
-oslSocketResult SAL_CALL osl_getHostnameOfSocketAddr(oslSocketAddr Addr, rtl_uString **strHostname);
+SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getHostnameOfSocketAddr(
+ oslSocketAddr Addr, rtl_uString **strHostname);
/** Gets the address in dotted decimal format.
@@ -309,18 +318,21 @@ oslSocketResult SAL_CALL osl_getHostnameOfSocketAddr(oslSocketAddr Addr, rtl_uSt
it returns 0.
@return <code>osl_Socket_Ok</code> or <code>osl_Socket_Error</code>
*/
-oslSocketResult SAL_CALL osl_getDottedInetAddrOfSocketAddr(oslSocketAddr Addr, rtl_uString **strDottedInetAddr);
+SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getDottedInetAddrOfSocketAddr(
+ oslSocketAddr Addr, rtl_uString **strDottedInetAddr);
/** Sets the addr field in the struct sockaddr with pByteSeq. pByteSeq must be in network byte order.
*/
-oslSocketResult SAL_CALL osl_setAddrOfSocketAddr( oslSocketAddr Addr, sal_Sequence *pByteSeq );
+SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_setAddrOfSocketAddr(
+ oslSocketAddr Addr, sal_Sequence *pByteSeq );
/** Returns the addr field in the struct sockaddr.
@param ppByteSeq out parameter. After the call, *ppByteSeq contains the ipadrress
in network byteorder. *ppByteSeq may be 0 in case of an invalid socket handle.
@return <code>osl_Socket_Ok</code> or <code>osl_Socket_Error</code>
*/
-oslSocketResult SAL_CALL osl_getAddrOfSocketAddr( oslSocketAddr Addr, sal_Sequence **ppByteSeq );
+SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getAddrOfSocketAddr(
+ oslSocketAddr Addr, sal_Sequence **ppByteSeq );
/*
Opaque datatype HostAddr.
@@ -333,7 +345,8 @@ typedef struct oslHostAddrImpl * oslHostAddr;
@param Addr [in] The socket address to be stored.
@return The created address or 0 upon failure.
*/
-oslHostAddr SAL_CALL osl_createHostAddr(rtl_uString *strHostname, const oslSocketAddr Addr);
+SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_createHostAddr(
+ rtl_uString *strHostname, const oslSocketAddr Addr);
/** Create an oslHostAddr by resolving the given strHostname.
@@ -343,7 +356,7 @@ oslHostAddr SAL_CALL osl_createHostAddr(rtl_uString *strHostname, const oslSocke
@param strHostname [in] The hostname to be resolved.
@return The resulting address or 0 upon failure.
*/
-oslHostAddr SAL_CALL osl_createHostAddrByName(rtl_uString *strHostname);
+SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_createHostAddrByName(rtl_uString *strHostname);
/** Create an oslHostAddr by reverse resolution of the given Addr.
@@ -353,38 +366,38 @@ oslHostAddr SAL_CALL osl_createHostAddrByName(rtl_uString *strHostname);
@param Addr [in] The socket address to be reverse resolved.
@return The resulting address or 0 upon failure.
*/
-oslHostAddr SAL_CALL osl_createHostAddrByAddr(const oslSocketAddr Addr);
+SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_createHostAddrByAddr(const oslSocketAddr Addr);
/** Create a copy of the given Addr.
@return The copied address or 0 upon failure.
*/
-oslHostAddr SAL_CALL osl_copyHostAddr(const oslHostAddr Addr);
+SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_copyHostAddr(const oslHostAddr Addr);
/** Frees all resources allocated by Addr. The handle Addr must not
be used after the call anymore.
*/
-void SAL_CALL osl_destroyHostAddr(oslHostAddr Addr);
+SAL_DLLPUBLIC void SAL_CALL osl_destroyHostAddr(oslHostAddr Addr);
/** Get the hostname member of Addr.
@return The hostname or 0 upon failure.
*/
-void SAL_CALL osl_getHostnameOfHostAddr(const oslHostAddr Addr, rtl_uString **strHostname);
+SAL_DLLPUBLIC void SAL_CALL osl_getHostnameOfHostAddr(const oslHostAddr Addr, rtl_uString **strHostname);
/** Get the socket address member of Addr.
@return The socket address or 0 upon failure.
*/
-oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr(const oslHostAddr Addr);
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr(const oslHostAddr Addr);
/** Retrieve this machines hostname.
May not always be a fully qualified domain name (FQDN).
@param strLocalHostname out-parameter. The string that receives the local host name.
@return <code>sal_True</code> upon success, <code>sal_False</code> otherwise.
*/
-oslSocketResult SAL_CALL osl_getLocalHostname(rtl_uString **strLocalHostname);
+SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getLocalHostname(rtl_uString **strLocalHostname);
/**@} end section oslHostAddr
@@ -402,21 +415,22 @@ typedef struct oslSocketImpl * oslSocket;
/** increases the refcount of the socket handle by one
*/
-void SAL_CALL osl_acquireSocket( oslSocket Socket );
+SAL_DLLPUBLIC void SAL_CALL osl_acquireSocket( oslSocket Socket );
/** decreases the refcount of the socket handle by one.
If the refcount drops to zero, the underlying socket handle
is destroyed and becomes invalid.
*/
-void SAL_CALL osl_releaseSocket( oslSocket Socket );
+SAL_DLLPUBLIC void SAL_CALL osl_releaseSocket( oslSocket Socket );
/** Create a socket of the specified Family and Type. The semantic of
the Protocol parameter depends on the given family and type.
@return 0 if socket could not be created, otherwise you get a handle
to the allocated socket-datastructure.
*/
-oslSocket SAL_CALL osl_createSocket(oslAddrFamily Family,
+SAL_DLLPUBLIC oslSocket SAL_CALL osl_createSocket(
+ oslAddrFamily Family,
oslSocketType Type,
oslProtocol Protocol);
@@ -426,7 +440,7 @@ oslSocket SAL_CALL osl_createSocket(oslAddrFamily Family,
@return 0 if socket-address could not be created, otherwise you get
the created Socket-Address.
*/
-oslSocketAddr SAL_CALL osl_getLocalAddrOfSocket(oslSocket Socket);
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getLocalAddrOfSocket(oslSocket Socket);
/** Retrieves the Address of the remote end of the socket.
Note that a socket must be connected before
@@ -434,7 +448,7 @@ oslSocketAddr SAL_CALL osl_getLocalAddrOfSocket(oslSocket Socket);
@return 0 if socket-address could not be created, otherwise you get
the created Socket-Address.
*/
-oslSocketAddr SAL_CALL osl_getPeerAddrOfSocket(oslSocket Socket);
+SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getPeerAddrOfSocket(oslSocket Socket);
/** Binds the given address to the socket.
@param Socket [in]
@@ -442,7 +456,8 @@ oslSocketAddr SAL_CALL osl_getPeerAddrOfSocket(oslSocket Socket);
@return <code>sal_False</code> if the bind failed, <code> sal_True</code> if successful.
@see osl_getLastSocketError()
*/
-sal_Bool SAL_CALL osl_bindAddrToSocket(oslSocket Socket,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_bindAddrToSocket(
+ oslSocket Socket,
oslSocketAddr Addr);
/** Connects the socket to the given address.
@@ -456,9 +471,10 @@ sal_Bool SAL_CALL osl_bindAddrToSocket(oslSocket Socket,
<code>osl_Socket_Interrupted</code> if operation was interrupted
<code>osl_Socket_Error</code> if the connection failed.
*/
-oslSocketResult SAL_CALL osl_connectSocketTo(oslSocket Socket,
- oslSocketAddr Addr,
- const TimeValue* pTimeout);
+SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_connectSocketTo(
+ oslSocket Socket,
+ oslSocketAddr Addr,
+ const TimeValue* pTimeout);
/** Prepares the socket to act as an acceptor of incoming connections.
@@ -468,7 +484,8 @@ oslSocketResult SAL_CALL osl_connectSocketTo(oslSocket Socket,
-1, the systems default value will be used (Usually 5).
@return <code>sal_False</code> if the listen failed.
*/
-sal_Bool SAL_CALL osl_listenOnSocket(oslSocket Socket,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_listenOnSocket(
+ oslSocket Socket,
sal_Int32 MaxPendingConnections);
@@ -478,7 +495,8 @@ sal_Bool SAL_CALL osl_listenOnSocket(oslSocket Socket,
@return 0 if the accept-call failed, otherwise you get a socket
representing the new connection.
*/
-oslSocket SAL_CALL osl_acceptConnectionOnSocket(oslSocket Socket,
+SAL_DLLPUBLIC oslSocket SAL_CALL osl_acceptConnectionOnSocket
+ (oslSocket Socket,
oslSocketAddr* pAddr);
/** Tries to receive BytesToRead data from the connected socket,
@@ -501,7 +519,8 @@ oslSocket SAL_CALL osl_acceptConnectionOnSocket(oslSocket Socket,
@return the number of received bytes.
*/
-sal_Int32 SAL_CALL osl_receiveSocket(oslSocket Socket,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveSocket(
+ oslSocket Socket,
void* pBuffer,
sal_uInt32 BytesToRead,
oslSocketMsgFlag Flag);
@@ -528,7 +547,8 @@ sal_Int32 SAL_CALL osl_receiveSocket(oslSocket Socket,
@return the number of received bytes.
*/
-sal_Int32 SAL_CALL osl_receiveFromSocket(oslSocket Socket,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveFromSocket(
+ oslSocket Socket,
oslSocketAddr SenderAddr,
void* pBuffer,
sal_uInt32 BufferSize,
@@ -552,7 +572,8 @@ sal_Int32 SAL_CALL osl_receiveFromSocket(oslSocket Socket,
@return the number of transfered bytes.
*/
-sal_Int32 SAL_CALL osl_sendSocket(oslSocket Socket,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendSocket(
+ oslSocket Socket,
const void* pBuffer,
sal_uInt32 BytesToSend,
oslSocketMsgFlag Flag);
@@ -582,7 +603,8 @@ sal_Int32 SAL_CALL osl_sendSocket(oslSocket Socket,
@return the number of transfered bytes.
*/
-sal_Int32 SAL_CALL osl_sendToSocket(oslSocket Socket,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendToSocket(
+ oslSocket Socket,
oslSocketAddr ReceiverAddr,
const void* pBuffer,
sal_uInt32 BytesToSend,
@@ -599,7 +621,8 @@ sal_Int32 SAL_CALL osl_sendToSocket(oslSocket Socket,
@param Socket the Socket to perfom the operation on.
@param pTimeout if NULL, the operation will block without a timeout.
*/
-sal_Bool SAL_CALL osl_isReceiveReady(oslSocket Socket, const TimeValue* pTimeout);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isReceiveReady(
+ oslSocket Socket, const TimeValue* pTimeout);
/** Checks if send operations will block.
You can specify a timeout-value in seconds/microseconds that denotes
@@ -611,7 +634,8 @@ sal_Bool SAL_CALL osl_isReceiveReady(oslSocket Socket, const TimeValue* pTimeout
@param pTimeout if NULL, the operation will block without a timeout. Otherwise
the time define by timeout value.
*/
-sal_Bool SAL_CALL osl_isSendReady(oslSocket Socket, const TimeValue* pTimeout);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isSendReady(
+ oslSocket Socket, const TimeValue* pTimeout);
/** Checks if a request for out-of-band data will block.
You can specify a timeout-value in seconds/microseconds that denotes
@@ -622,7 +646,8 @@ sal_Bool SAL_CALL osl_isSendReady(oslSocket Socket, const TimeValue* pTimeout);
@param Socket the Socket to perfom the operation on.
@param pTimeout if NULL, the operation will block without a timeout.
*/
-sal_Bool SAL_CALL osl_isExceptionPending(oslSocket Socket, const TimeValue* pTimeout);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isExceptionPending(
+ oslSocket Socket, const TimeValue* pTimeout);
/** Shuts down communication on a connected socket.
@param Direction denotes which end of the socket
@@ -634,7 +659,7 @@ sal_Bool SAL_CALL osl_isExceptionPending(oslSocket Socket, const TimeValue* pTim
</ul>
@return <code>sal_True</code> if the socket could be closed down.
*/
-sal_Bool SAL_CALL osl_shutdownSocket(oslSocket Socket,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_shutdownSocket(oslSocket Socket,
oslSocketDirection Direction);
/** Retrieves attributes associated with the socket.
@@ -721,7 +746,7 @@ sal_Bool SAL_CALL osl_shutdownSocket(oslSocket Socket,
pBuffer.
@see osl_setSocketOption()
*/
-sal_Int32 SAL_CALL osl_getSocketOption(oslSocket Socket,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getSocketOption( oslSocket Socket,
oslSocketOptionLevel Level,
oslSocketOption Option,
void* pBuffer,
@@ -747,7 +772,7 @@ sal_Int32 SAL_CALL osl_getSocketOption(oslSocket Socket,
@return True if the option could be changed.
*/
-sal_Bool SAL_CALL osl_setSocketOption(oslSocket Socket,
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setSocketOption( oslSocket Socket,
oslSocketOptionLevel Level,
oslSocketOption Option,
void* pBuffer,
@@ -759,15 +784,16 @@ sal_Bool SAL_CALL osl_setSocketOption(oslSocket Socket,
<code>sal_False</code> disables non-blocking mode.
@return <code>sal_True</code> if mode could be changed.
*/
-sal_Bool SAL_CALL osl_enableNonBlockingMode(oslSocket Socket,
- sal_Bool On);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_enableNonBlockingMode(
+ oslSocket Socket, sal_Bool On);
/** Query state of non-blocking-mode of the socket.
@param Socket Query mode for this socket.
@return True if non-blocking-mode is enabled.
*/
-sal_Bool SAL_CALL osl_isNonBlockingMode(oslSocket Socket);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isNonBlockingMode(
+ oslSocket Socket);
/** Queries the socket for its type.
@@ -782,19 +808,22 @@ sal_Bool SAL_CALL osl_isNonBlockingMode(oslSocket Socket);
</ul>
*/
-oslSocketType SAL_CALL osl_getSocketType(oslSocket Socket);
+SAL_DLLPUBLIC oslSocketType SAL_CALL osl_getSocketType(
+ oslSocket Socket);
/** returns a string which describes the last socket error.
@param strError out-parameter. The string that receives the error message.
*/
-void SAL_CALL osl_getLastSocketErrorDescription(oslSocket Socket, rtl_uString **strError);
+SAL_DLLPUBLIC void SAL_CALL osl_getLastSocketErrorDescription(
+ oslSocket Socket, rtl_uString **strError);
/** returns a constant decribing the last error for the socket system.
@return <code>osl_Socket_E_NONE</code> if no error occurred,
<code>osl_invalid_SocketError</code> if an unknown (unmapped)
error occurred, otherwise an enum describing the error.
*/
-oslSocketError SAL_CALL osl_getLastSocketError(oslSocket Socket);
+SAL_DLLPUBLIC oslSocketError SAL_CALL osl_getLastSocketError(
+ oslSocket Socket);
/** Type for the representation of socket sets.
*/
@@ -803,36 +832,36 @@ typedef struct oslSocketSetImpl * oslSocketSet;
/** Creates a set of sockets to be used with osl_demultiplexSocketEvents().
@return A oslSocketSet or 0 if creation failed.
*/
-oslSocketSet SAL_CALL osl_createSocketSet(void);
+SAL_DLLPUBLIC oslSocketSet SAL_CALL osl_createSocketSet(void);
/** Destroys a oslSocketSet.
*/
-void SAL_CALL osl_destroySocketSet(oslSocketSet Set);
+SAL_DLLPUBLIC void SAL_CALL osl_destroySocketSet(oslSocketSet Set);
/** Clears the set from all previously added sockets.
@param Set the set to be cleared.
*/
-void SAL_CALL osl_clearSocketSet(oslSocketSet Set);
+SAL_DLLPUBLIC void SAL_CALL osl_clearSocketSet(oslSocketSet Set);
/** Adds a socket to the set.
@param Set the set were the socket is added.
@param Socket the socket to be added.
*/
-void SAL_CALL osl_addToSocketSet(oslSocketSet Set, oslSocket Socket);
+SAL_DLLPUBLIC void SAL_CALL osl_addToSocketSet(oslSocketSet Set, oslSocket Socket);
/** Removes a socket from the set.
@param Set the set were the socket is removed from.
@param Socket the socket to be removed.
*/
-void SAL_CALL osl_removeFromSocketSet(oslSocketSet Set, oslSocket Socket);
+SAL_DLLPUBLIC void SAL_CALL osl_removeFromSocketSet(oslSocketSet Set, oslSocket Socket);
/** Checks if socket is in the set.
@param Set the set to be checked.
@param Socket check if this socket is in the set.
@return <code>sal_True</code> if socket is in the set.
*/
-sal_Bool SAL_CALL osl_isInSocketSet(oslSocketSet Set, oslSocket Socket);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isInSocketSet(oslSocketSet Set, oslSocket Socket);
/** Checks multiple sockets for events.
@param IncomingSet Checks the sockets in this set
@@ -849,14 +878,14 @@ sal_Bool SAL_CALL osl_isInSocketSet(oslSocketSet Set, oslSocket Socket);
@return -1 on errors, otherwise the number of sockets with
pending events. In case of timeout, the number might be 0.
*/
-sal_Int32 SAL_CALL osl_demultiplexSocketEvents(oslSocketSet IncomingSet,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_demultiplexSocketEvents(oslSocketSet IncomingSet,
oslSocketSet OutgoingSet,
oslSocketSet OutOfBandSet,
const TimeValue* pTimeout);
/** Closes the socket terminating any ongoing dataflow.
*/
-void SAL_CALL osl_closeSocket(oslSocket Socket);
+SAL_DLLPUBLIC void SAL_CALL osl_closeSocket(oslSocket Socket);
/** Retrieves n bytes from the stream and copies them into pBuffer.
@@ -867,7 +896,7 @@ void SAL_CALL osl_closeSocket(oslSocket Socket);
@return the number of read bytes. The number will only be smaller than
n if an exceptional condition (e.g. connection closed) occurs.
*/
-sal_Int32 SAL_CALL osl_readSocket( oslSocket Socket, void *pBuffer, sal_Int32 nSize );
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_readSocket( oslSocket Socket, void *pBuffer, sal_Int32 nSize );
/** Writes n bytes from pBuffer to the stream. The method avoids
@@ -877,7 +906,7 @@ sal_Int32 SAL_CALL osl_readSocket( oslSocket Socket, void *pBuffer, sal_Int32 nS
@return the number of written bytes. The number will only be smaller than
n if an exceptional condition (e.g. connection closed) occurs.
*/
-sal_Int32 SAL_CALL osl_writeSocket( oslSocket Socket, const void *pBuffer, sal_Int32 nSize );
+SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_writeSocket( oslSocket Socket, const void *pBuffer, sal_Int32 nSize );
/**@} end section oslSocket
*/
diff --git a/sal/inc/osl/thread.h b/sal/inc/osl/thread.h
index 5fa84d898cdc..cf44a281c0bb 100644
--- a/sal/inc/osl/thread.h
+++ b/sal/inc/osl/thread.h
@@ -77,7 +77,7 @@ typedef void* oslThreadKey;
running.
@return 0 if creation failed, otherwise a handle to the thread
*/
-oslThread SAL_CALL osl_createThread(oslWorkerFunction pWorker, void* pThreadData);
+SAL_DLLPUBLIC oslThread SAL_CALL osl_createThread(oslWorkerFunction pWorker, void* pThreadData);
/** Create the thread, using the function-ptr pWorker as
its main (worker) function. This functions receives in
@@ -86,62 +86,62 @@ oslThread SAL_CALL osl_createThread(oslWorkerFunction pWorker, void* pThreadData
To wake-up the thread, use resume().
@return 0 if creation failed, otherwise a handle to the thread
*/
-oslThread SAL_CALL osl_createSuspendedThread(oslWorkerFunction pWorker, void* pThreadData);
+SAL_DLLPUBLIC oslThread SAL_CALL osl_createSuspendedThread(oslWorkerFunction pWorker, void* pThreadData);
/** Get the identifier for the specified thread or if parameter
Thread is NULL of the current active thread.
@return identifier of the thread
*/
-oslThreadIdentifier SAL_CALL osl_getThreadIdentifier(oslThread Thread);
+SAL_DLLPUBLIC oslThreadIdentifier SAL_CALL osl_getThreadIdentifier(oslThread Thread);
/** Release the thread handle.
If Thread is NULL, the function won't do anything.
Note that we do not interfere with the actual running of
the thread, we just free up the memory needed by the handle.
*/
-void SAL_CALL osl_destroyThread(oslThread Thread);
+SAL_DLLPUBLIC void SAL_CALL osl_destroyThread(oslThread Thread);
/** Wake-up a thread that was suspended with suspend() or
createSuspended(). The oslThread must be valid!
*/
-void SAL_CALL osl_resumeThread(oslThread Thread);
+SAL_DLLPUBLIC void SAL_CALL osl_resumeThread(oslThread Thread);
/** Suspend the execution of the thread. If you want the thread
to continue, call resume(). The oslThread must be valid!
*/
-void SAL_CALL osl_suspendThread(oslThread Thread);
+SAL_DLLPUBLIC void SAL_CALL osl_suspendThread(oslThread Thread);
/** Changes the threads priority.
The oslThread must be valid!
*/
-void SAL_CALL osl_setThreadPriority(oslThread Thread, oslThreadPriority Priority);
+SAL_DLLPUBLIC void SAL_CALL osl_setThreadPriority(oslThread Thread, oslThreadPriority Priority);
/** Retrieves the threads priority.
Returns oslThreadPriorityUnknown for invalid Thread-argument or
terminated thread. (I.e.: The oslThread might be invalid.)
*/
-oslThreadPriority SAL_CALL osl_getThreadPriority(const oslThread Thread);
+SAL_DLLPUBLIC oslThreadPriority SAL_CALL osl_getThreadPriority(const oslThread Thread);
/** Returns True if the thread was created and has not terminated yet.
Note that according to this definition a "running" thread might be
suspended! Also returns False is Thread is NULL.
*/
-sal_Bool SAL_CALL osl_isThreadRunning(const oslThread Thread);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isThreadRunning(const oslThread Thread);
/** Blocks the calling thread until Thread has terminated.
Returns immediately if Thread is NULL.
*/
-void SAL_CALL osl_joinWithThread(oslThread Thread);
+SAL_DLLPUBLIC void SAL_CALL osl_joinWithThread(oslThread Thread);
/** Blocks the calling thread at least for the given number
of time.
*/
-void SAL_CALL osl_waitThread(const TimeValue* pDelay);
+SAL_DLLPUBLIC void SAL_CALL osl_waitThread(const TimeValue* pDelay);
/** The requested thread will get terminate the next time
scheduleThread() is called.
*/
-void SAL_CALL osl_terminateThread(oslThread Thread);
+SAL_DLLPUBLIC void SAL_CALL osl_terminateThread(oslThread Thread);
/** Offers the rest of the threads time-slice to the OS.
scheduleThread() should be called in the working loop
@@ -149,7 +149,7 @@ void SAL_CALL osl_terminateThread(oslThread Thread);
processor. Returns False if the thread should terminate, so
the thread could free any allocated resources.
*/
-sal_Bool SAL_CALL osl_scheduleThread(oslThread Thread);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_scheduleThread(oslThread Thread);
/** Offers the rest of the threads time-slice to the OS.
Under POSIX you _need_ to yield(), otherwise, since the
@@ -158,7 +158,7 @@ sal_Bool SAL_CALL osl_scheduleThread(oslThread Thread);
only given to another thread if the current thread blocks
or uses yield().
*/
-void SAL_CALL osl_yieldThread(void);
+SAL_DLLPUBLIC void SAL_CALL osl_yieldThread(void);
/** Attempts to set the name of the current thread.
@@ -170,31 +170,31 @@ void SAL_CALL osl_yieldThread(void);
@param name the name of the thread; must not be null; on Linux, only the
first 16 characters are used
*/
-void SAL_CALL osl_setThreadName(char const * name);
+SAL_DLLPUBLIC void SAL_CALL osl_setThreadName(char const * name);
/* Callback when data stored in a thread key is no longer needed */
typedef void (SAL_CALL *oslThreadKeyCallbackFunction)(void *);
/** Create a key to an associated thread local storage pointer. */
-oslThreadKey SAL_CALL osl_createThreadKey(oslThreadKeyCallbackFunction pCallback);
+SAL_DLLPUBLIC oslThreadKey SAL_CALL osl_createThreadKey(oslThreadKeyCallbackFunction pCallback);
/** Destroy a key to an associated thread local storage pointer. */
-void SAL_CALL osl_destroyThreadKey(oslThreadKey Key);
+SAL_DLLPUBLIC void SAL_CALL osl_destroyThreadKey(oslThreadKey Key);
/** Get to key associated thread specific data. */
-void* SAL_CALL osl_getThreadKeyData(oslThreadKey Key);
+SAL_DLLPUBLIC void* SAL_CALL osl_getThreadKeyData(oslThreadKey Key);
/** Set to key associated thread specific data. */
-sal_Bool SAL_CALL osl_setThreadKeyData(oslThreadKey Key, void *pData);
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setThreadKeyData(oslThreadKey Key, void *pData);
/** Get the current thread local text encoding. */
-rtl_TextEncoding SAL_CALL osl_getThreadTextEncoding(void);
+SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL osl_getThreadTextEncoding(void);
/** Set the thread local text encoding.
@return the old text encoding.
*/
-rtl_TextEncoding SAL_CALL osl_setThreadTextEncoding(rtl_TextEncoding Encoding);
+SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL osl_setThreadTextEncoding(rtl_TextEncoding Encoding);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/time.h b/sal/inc/osl/time.h
index 9ccd653b6018..2715e40128d1 100644
--- a/sal/inc/osl/time.h
+++ b/sal/inc/osl/time.h
@@ -106,7 +106,8 @@ typedef struct _oslDateTime
/** Get the current system time as TimeValue.
@return false if any error occurs.
*/
-sal_Bool SAL_CALL osl_getSystemTime( TimeValue* pTimeVal );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getSystemTime(
+ TimeValue* pTimeVal );
/** Get the GMT from a TimeValue and fill a struct oslDateTime
@@ -115,7 +116,8 @@ sal_Bool SAL_CALL osl_getSystemTime( TimeValue* pTimeVal );
@return sal_False if any error occurs else sal_True.
*/
-sal_Bool SAL_CALL osl_getDateTimeFromTimeValue( TimeValue* pTimeVal, oslDateTime* pDateTime );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getDateTimeFromTimeValue(
+ TimeValue* pTimeVal, oslDateTime* pDateTime );
/** Get the GMT from a oslDateTime and fill a TimeValue
@@ -124,7 +126,8 @@ sal_Bool SAL_CALL osl_getDateTimeFromTimeValue( TimeValue* pTimeVal, oslDateTime
@return sal_False if any error occurs else sal_True.
*/
-sal_Bool SAL_CALL osl_getTimeValueFromDateTime( oslDateTime* pDateTime, TimeValue* pTimeVal );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getTimeValueFromDateTime(
+ oslDateTime* pDateTime, TimeValue* pTimeVal );
/** Convert GMT to local time
@@ -133,7 +136,8 @@ sal_Bool SAL_CALL osl_getTimeValueFromDateTime( oslDateTime* pDateTime, TimeValu
@return sal_False if any error occurs else sal_True.
*/
-sal_Bool SAL_CALL osl_getLocalTimeFromSystemTime( TimeValue* pSystemTimeVal, TimeValue* pLocalTimeVal );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getLocalTimeFromSystemTime(
+ TimeValue* pSystemTimeVal, TimeValue* pLocalTimeVal );
/** Convert local time to GMT
@@ -142,14 +146,15 @@ sal_Bool SAL_CALL osl_getLocalTimeFromSystemTime( TimeValue* pSystemTimeVal, Tim
@return sal_False if any error occurs else sal_True.
*/
-sal_Bool SAL_CALL osl_getSystemTimeFromLocalTime( TimeValue* pLocalTimeVal, TimeValue* pSystemTimeVal );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getSystemTimeFromLocalTime(
+ TimeValue* pLocalTimeVal, TimeValue* pSystemTimeVal );
/** Get the value of the global timer
@return current timer value in milli seconds
*/
-sal_uInt32 SAL_CALL osl_getGlobalTimer(void);
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getGlobalTimer(void);
#ifdef __cplusplus
}
diff --git a/sal/inc/osl/util.h b/sal/inc/osl/util.h
index e72cb7a9e172..330279d513c6 100644
--- a/sal/inc/osl/util.h
+++ b/sal/inc/osl/util.h
@@ -45,7 +45,7 @@ extern "C" {
implemented on the platform. In this case, pEthernetAddr is
unchanged.
*/
-sal_Bool SAL_CALL osl_getEthernetAddress( sal_uInt8 *pEthernetAddr );
+SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getEthernetAddress( sal_uInt8 *pEthernetAddr );
#ifdef __cplusplus
}
diff --git a/sal/inc/rtl/alloc.h b/sal/inc/rtl/alloc.h
index dac0a2c42e53..35c7e5b308b4 100644
--- a/sal/inc/rtl/alloc.h
+++ b/sal/inc/rtl/alloc.h
@@ -43,7 +43,7 @@ extern "C" {
@param Bytes [in] memory size.
@return pointer to allocated memory.
*/
-void * SAL_CALL rtl_allocateMemory (
+SAL_DLLPUBLIC void * SAL_CALL rtl_allocateMemory (
sal_Size Bytes
) SAL_THROW_EXTERN_C();
@@ -62,7 +62,7 @@ void * SAL_CALL rtl_allocateMemory (
@param Bytes [in] new memory size.
@return pointer to reallocated memory. May differ from Ptr.
*/
-void * SAL_CALL rtl_reallocateMemory (
+SAL_DLLPUBLIC void * SAL_CALL rtl_reallocateMemory (
void * Ptr,
sal_Size Bytes
) SAL_THROW_EXTERN_C();
@@ -72,7 +72,7 @@ void * SAL_CALL rtl_reallocateMemory (
@param Ptr [in] pointer to previously allocated memory.
@return none. Memory is released. Ptr is invalid.
*/
-void SAL_CALL rtl_freeMemory (
+SAL_DLLPUBLIC void SAL_CALL rtl_freeMemory (
void * Ptr
) SAL_THROW_EXTERN_C();
@@ -84,7 +84,7 @@ void SAL_CALL rtl_freeMemory (
@param Bytes [in] memory size.
@return pointer to allocated and zero'ed memory.
*/
-void * SAL_CALL rtl_allocateZeroMemory (
+SAL_DLLPUBLIC void * SAL_CALL rtl_allocateZeroMemory (
sal_Size Bytes
) SAL_THROW_EXTERN_C();
@@ -94,7 +94,7 @@ void * SAL_CALL rtl_allocateZeroMemory (
@param Bytes [in] memory size.
@return none. Memory is zero'ed and released. Ptr is invalid.
*/
-void SAL_CALL rtl_freeZeroMemory (
+SAL_DLLPUBLIC void SAL_CALL rtl_freeZeroMemory (
void * Ptr,
sal_Size Bytes
) SAL_THROW_EXTERN_C();
@@ -121,8 +121,7 @@ typedef struct rtl_arena_st rtl_arena_type;
*
* @see rtl_arena_destroy()
*/
-rtl_arena_type *
-SAL_CALL rtl_arena_create (
+SAL_DLLPUBLIC rtl_arena_type * SAL_CALL rtl_arena_create (
const char * pName,
sal_Size quantum,
sal_Size quantum_cache_max,
@@ -140,8 +139,7 @@ SAL_CALL rtl_arena_create (
*
* @see rtl_arena_create()
*/
-void
-SAL_CALL rtl_arena_destroy (
+SAL_DLLPUBLIC void SAL_CALL rtl_arena_destroy (
rtl_arena_type * pArena
) SAL_THROW_EXTERN_C();
@@ -155,8 +153,7 @@ SAL_CALL rtl_arena_destroy (
*
* @see rtl_arena_free()
*/
-void *
-SAL_CALL rtl_arena_alloc (
+SAL_DLLPUBLIC void * SAL_CALL rtl_arena_alloc (
rtl_arena_type * pArena,
sal_Size * pBytes
) SAL_THROW_EXTERN_C();
@@ -172,8 +169,7 @@ SAL_CALL rtl_arena_alloc (
*
* @see rtl_arena_alloc()
*/
-void
-SAL_CALL rtl_arena_free (
+SAL_DLLPUBLIC void SAL_CALL rtl_arena_free (
rtl_arena_type * pArena,
void * pAddr,
sal_Size nBytes
@@ -203,8 +199,7 @@ typedef struct rtl_cache_st rtl_cache_type;
*
* @see rtl_cache_destroy()
*/
-rtl_cache_type *
-SAL_CALL rtl_cache_create (
+SAL_DLLPUBLIC rtl_cache_type * SAL_CALL rtl_cache_create (
const char * pName,
sal_Size nObjSize,
sal_Size nObjAlign,
@@ -225,8 +220,7 @@ SAL_CALL rtl_cache_create (
*
* @see rtl_cache_create()
*/
-void
-SAL_CALL rtl_cache_destroy (
+SAL_DLLPUBLIC void SAL_CALL rtl_cache_destroy (
rtl_cache_type * pCache
) SAL_THROW_EXTERN_C();
@@ -237,8 +231,7 @@ SAL_CALL rtl_cache_destroy (
*
* @return pointer to allocated object, or NULL upon failure.
*/
-void *
-SAL_CALL rtl_cache_alloc (
+SAL_DLLPUBLIC void * SAL_CALL rtl_cache_alloc (
rtl_cache_type * pCache
) SAL_THROW_EXTERN_C();
@@ -252,8 +245,7 @@ SAL_CALL rtl_cache_alloc (
*
* @see rtl_cache_alloc()
*/
-void
-SAL_CALL rtl_cache_free (
+SAL_DLLPUBLIC void SAL_CALL rtl_cache_free (
rtl_cache_type * pCache,
void * pObj
) SAL_THROW_EXTERN_C();
diff --git a/sal/inc/rtl/bootstrap.h b/sal/inc/rtl/bootstrap.h
index 500537b67ab8..a88b5ad9c0bc 100644
--- a/sal/inc/rtl/bootstrap.h
+++ b/sal/inc/rtl/bootstrap.h
@@ -125,7 +125,7 @@ extern "C" {
@param pName URL of the ini file; must not be null, must not be the empty
string
*/
-void SAL_CALL rtl_bootstrap_setIniFileName( rtl_uString *pName )
+SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_setIniFileName( rtl_uString *pName )
SAL_THROW_EXTERN_C();
/**
@@ -145,7 +145,8 @@ void SAL_CALL rtl_bootstrap_setIniFileName( rtl_uString *pName )
When a pDefault value is given, the function returns always
<code>sal_True</code>.
*/
-sal_Bool SAL_CALL rtl_bootstrap_get( rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault )
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_bootstrap_get(
+ rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault )
SAL_THROW_EXTERN_C();
/** Sets a bootstrap parameter.
@@ -155,7 +156,8 @@ sal_Bool SAL_CALL rtl_bootstrap_get( rtl_uString *pName, rtl_uString **ppValue,
@param pValue
value of bootstrap parameter
*/
-void SAL_CALL rtl_bootstrap_set( rtl_uString * pName, rtl_uString * pValue )
+SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_set(
+ rtl_uString * pName, rtl_uString * pValue )
SAL_THROW_EXTERN_C();
@@ -167,14 +169,14 @@ typedef void * rtlBootstrapHandle;
to the excutables name
@return Handle for a boostrap argument container
*/
-rtlBootstrapHandle SAL_CALL rtl_bootstrap_args_open(rtl_uString * pIniName)
+SAL_DLLPUBLIC rtlBootstrapHandle SAL_CALL rtl_bootstrap_args_open(rtl_uString * pIniName)
SAL_THROW_EXTERN_C();
/**
Closes a boostrap agument container.
@param handle [in] The handle got by <code>rtl_bootstrap_args_open()</code>
*/
-void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle)
+SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle)
SAL_THROW_EXTERN_C();
/**
@@ -185,7 +187,8 @@ void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle)
@return The status of the retrieval, <code>sal_True</code> on success.
*/
-sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault)
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(
+ rtlBootstrapHandle handle, rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault)
SAL_THROW_EXTERN_C();
@@ -193,7 +196,8 @@ sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_u
@param ppIniName contains after the call the name of the ini-filename.
*/
-void SAL_CALL rtl_bootstrap_get_iniName_from_handle(rtlBootstrapHandle handle, rtl_uString ** ppIniName)
+SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_get_iniName_from_handle(
+ rtlBootstrapHandle handle, rtl_uString ** ppIniName)
SAL_THROW_EXTERN_C();
/** Expands a macro using bootstrap variables.
@@ -201,14 +205,14 @@ void SAL_CALL rtl_bootstrap_get_iniName_from_handle(rtlBootstrapHandle handle, r
@param handle [in] The handle got by <code>rtl_bootstrap_args_open()</code>
@param macro [inout] The macro to be expanded
*/
-void SAL_CALL rtl_bootstrap_expandMacros_from_handle(
+SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_expandMacros_from_handle(
rtlBootstrapHandle handle, rtl_uString ** macro )
SAL_THROW_EXTERN_C();
/** Expands a macro using default bootstrap variables.
@param macro [inout] The macro to be expanded
*/
-void SAL_CALL rtl_bootstrap_expandMacros(
+SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_expandMacros(
rtl_uString ** macro )
SAL_THROW_EXTERN_C();
@@ -223,7 +227,7 @@ void SAL_CALL rtl_bootstrap_expandMacros(
@since UDK 3.2.9
*/
-void SAL_CALL rtl_bootstrap_encode(
+SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_encode(
rtl_uString const * value, rtl_uString ** encoded )
SAL_THROW_EXTERN_C();
diff --git a/sal/inc/rtl/byteseq.h b/sal/inc/rtl/byteseq.h
index d19db147d677..ee321c24e7b7 100644
--- a/sal/inc/rtl/byteseq.h
+++ b/sal/inc/rtl/byteseq.h
@@ -41,7 +41,7 @@ extern "C"
@param ppSequence sequence
*/
-void SAL_CALL rtl_byte_sequence_reference2One(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_reference2One(
sal_Sequence ** ppSequence )
SAL_THROW_EXTERN_C();
@@ -50,7 +50,7 @@ void SAL_CALL rtl_byte_sequence_reference2One(
@param ppSequence sequence
@param nSize new size of sequence
*/
-void SAL_CALL rtl_byte_sequence_realloc(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_realloc(
sal_Sequence ** ppSequence, sal_Int32 nSize )
SAL_THROW_EXTERN_C();
@@ -58,7 +58,7 @@ void SAL_CALL rtl_byte_sequence_realloc(
@param pSequence sequence, that is to be acquired
*/
-void SAL_CALL rtl_byte_sequence_acquire(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_acquire(
sal_Sequence *pSequence )
SAL_THROW_EXTERN_C();
@@ -66,7 +66,7 @@ void SAL_CALL rtl_byte_sequence_acquire(
@param pSequence sequence, that is to be released; invalid after call
*/
-void SAL_CALL rtl_byte_sequence_release(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_release(
sal_Sequence *pSequence )
SAL_THROW_EXTERN_C();
@@ -76,7 +76,7 @@ void SAL_CALL rtl_byte_sequence_release(
after the call, *ppSequence contains the newly constructed sequence
@param nLength length of new sequence
*/
-void SAL_CALL rtl_byte_sequence_construct(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_construct(
sal_Sequence **ppSequence , sal_Int32 nLength )
SAL_THROW_EXTERN_C();
@@ -86,7 +86,7 @@ void SAL_CALL rtl_byte_sequence_construct(
after the call, *ppSequence contains the newly constructed sequence
@param nLength length of new sequence
*/
-void SAL_CALL rtl_byte_sequence_constructNoDefault(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_constructNoDefault(
sal_Sequence **ppSequence , sal_Int32 nLength )
SAL_THROW_EXTERN_C();
@@ -97,7 +97,7 @@ void SAL_CALL rtl_byte_sequence_constructNoDefault(
@param pData initial data
@param nLength length of new sequence
*/
-void SAL_CALL rtl_byte_sequence_constructFromArray(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_constructFromArray(
sal_Sequence **ppSequence, const sal_Int8 *pData , sal_Int32 nLength )
SAL_THROW_EXTERN_C();
@@ -107,7 +107,7 @@ void SAL_CALL rtl_byte_sequence_constructFromArray(
after the call, *ppSequence references pSequence
@param pSequence the source sequence
*/
-void SAL_CALL rtl_byte_sequence_assign(
+SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_assign(
sal_Sequence **ppSequence , sal_Sequence *pSequence )
SAL_THROW_EXTERN_C();
@@ -115,7 +115,7 @@ void SAL_CALL rtl_byte_sequence_assign(
@return true, if the data within the sequences are identical; false otherwise
*/
-sal_Bool SAL_CALL rtl_byte_sequence_equals(
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_byte_sequence_equals(
sal_Sequence *pSequence1 , sal_Sequence *pSequence2 )
SAL_THROW_EXTERN_C();
@@ -125,7 +125,7 @@ sal_Bool SAL_CALL rtl_byte_sequence_equals(
has been called before, the pointer may be casted to a non const pointer and
the sequence may be modified
*/
-const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray(
+SAL_DLLPUBLIC const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray(
sal_Sequence *pSequence )
SAL_THROW_EXTERN_C();
@@ -134,7 +134,7 @@ const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray(
@param pSequence sequence handle
@return length of the sequence
*/
-sal_Int32 SAL_CALL rtl_byte_sequence_getLength(
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_byte_sequence_getLength(
sal_Sequence *pSequence )
SAL_THROW_EXTERN_C();
diff --git a/sal/inc/rtl/cipher.h b/sal/inc/rtl/cipher.h
index 7656eb6b4d2a..8a67d56cbbec 100644
--- a/sal/inc/rtl/cipher.h
+++ b/sal/inc/rtl/cipher.h
@@ -123,7 +123,7 @@ typedef enum __rtl_CipherError rtlCipherError;
@param Mode [in] cipher mode.
@return Cipher handle, or 0 upon failure.
*/
-rtlCipher SAL_CALL rtl_cipher_create (
+SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_create (
rtlCipherAlgorithm Algorithm,
rtlCipherMode Mode
) SAL_THROW_EXTERN_C();
@@ -140,7 +140,7 @@ rtlCipher SAL_CALL rtl_cipher_create (
@param nArgLen [in] initialization vector length in bytes.
@return rtl_Cipher_E_None upon success.
*/
-rtlCipherError SAL_CALL rtl_cipher_init (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_init (
rtlCipher Cipher,
rtlCipherDirection Direction,
const sal_uInt8 *pKeyData, sal_Size nKeyLen,
@@ -159,7 +159,7 @@ rtlCipherError SAL_CALL rtl_cipher_init (
@param nBufLen [in] ciphertext length in bytes.
@return rtl_Cipher_E_None upon success.
*/
-rtlCipherError SAL_CALL rtl_cipher_encode (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encode (
rtlCipher Cipher,
const void *pData, sal_Size nDatLen,
sal_uInt8 *pBuffer, sal_Size nBufLen
@@ -177,7 +177,7 @@ rtlCipherError SAL_CALL rtl_cipher_encode (
@param nBufLen [in] plaintext length in bytes.
@return rtl_Cipher_E_None upon success.
*/
-rtlCipherError SAL_CALL rtl_cipher_decode (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decode (
rtlCipher Cipher,
const void *pData, sal_Size nDatLen,
sal_uInt8 *pBuffer, sal_Size nBufLen
@@ -188,7 +188,7 @@ rtlCipherError SAL_CALL rtl_cipher_decode (
@param Cipher [in] cipher handle to be destroyed.
@return None. Cipher handle destroyed and invalid.
*/
-void SAL_CALL rtl_cipher_destroy (
+SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroy (
rtlCipher Cipher
) SAL_THROW_EXTERN_C();
@@ -204,7 +204,7 @@ void SAL_CALL rtl_cipher_destroy (
@see rtl_cipher_create()
*/
-rtlCipher SAL_CALL rtl_cipher_createBF (
+SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_createBF (
rtlCipherMode Mode
) SAL_THROW_EXTERN_C();
@@ -212,7 +212,7 @@ rtlCipher SAL_CALL rtl_cipher_createBF (
/** Inititialize a Blowfish cipher for the given direction.
@see rtl_cipher_init()
*/
-rtlCipherError SAL_CALL rtl_cipher_initBF (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_initBF (
rtlCipher Cipher,
rtlCipherDirection Direction,
const sal_uInt8 *pKeyData, sal_Size nKeyLen,
@@ -223,7 +223,7 @@ rtlCipherError SAL_CALL rtl_cipher_initBF (
/** Encode a buffer under the Blowfish cipher algorithm.
@see rtl_cipher_encode()
*/
-rtlCipherError SAL_CALL rtl_cipher_encodeBF (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encodeBF (
rtlCipher Cipher,
const void *pData, sal_Size nDatLen,
sal_uInt8 *pBuffer, sal_Size nBufLen
@@ -233,7 +233,7 @@ rtlCipherError SAL_CALL rtl_cipher_encodeBF (
/** Decode a buffer under the Blowfish cipher algorithm.
@see rtl_cipher_decode()
*/
-rtlCipherError SAL_CALL rtl_cipher_decodeBF (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decodeBF (
rtlCipher Cipher,
const void *pData, sal_Size nDatLen,
sal_uInt8 *pBuffer, sal_Size nBufLen
@@ -243,7 +243,7 @@ rtlCipherError SAL_CALL rtl_cipher_decodeBF (
/** Destroy a Blowfish cipher handle.
@see rtl_cipher_destroy()
*/
-void SAL_CALL rtl_cipher_destroyBF (
+SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroyBF (
rtlCipher Cipher
) SAL_THROW_EXTERN_C();
@@ -262,7 +262,7 @@ void SAL_CALL rtl_cipher_destroyBF (
@param Mode [in] cipher mode. Must be rtl_Cipher_ModeStream.
@return Cipher handle, or 0 upon failure.
*/
-rtlCipher SAL_CALL rtl_cipher_createARCFOUR (
+SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_createARCFOUR (
rtlCipherMode Mode
) SAL_THROW_EXTERN_C();
@@ -270,7 +270,7 @@ rtlCipher SAL_CALL rtl_cipher_createARCFOUR (
/** Inititialize a RC4 cipher for the given direction.
@see rtl_cipher_init()
*/
-rtlCipherError SAL_CALL rtl_cipher_initARCFOUR (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_initARCFOUR (
rtlCipher Cipher,
rtlCipherDirection Direction,
const sal_uInt8 *pKeyData, sal_Size nKeyLen,
@@ -281,7 +281,7 @@ rtlCipherError SAL_CALL rtl_cipher_initARCFOUR (
/** Encode a buffer under the RC4 cipher algorithm.
@see rtl_cipher_encode()
*/
-rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR (
rtlCipher Cipher,
const void *pData, sal_Size nDatLen,
sal_uInt8 *pBuffer, sal_Size nBufLen
@@ -291,7 +291,7 @@ rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR (
/** Decode a buffer under the RC4 cipher algorithm.
@see rtl_cipher_decode()
*/
-rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR (
+SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR (
rtlCipher Cipher,
const void *pData, sal_Size nDatLen,
sal_uInt8 *pBuffer, sal_Size nBufLen
@@ -301,7 +301,7 @@ rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR (
/** Destroy a RC4 cipher handle.
@see rtl_cipher_destroy()
*/
-void SAL_CALL rtl_cipher_destroyARCFOUR (
+SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroyARCFOUR (
rtlCipher Cipher
) SAL_THROW_EXTERN_C();
diff --git a/sal/inc/rtl/crc.h b/sal/inc/rtl/crc.h
index 8313795b85cf..be3b03b93683 100644
--- a/sal/inc/rtl/crc.h
+++ b/sal/inc/rtl/crc.h
@@ -48,7 +48,7 @@ extern "C" {
@param DatLen [in] data buffer length.
@return new CRC32 value.
*/
-sal_uInt32 SAL_CALL rtl_crc32 (
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_crc32 (
sal_uInt32 Crc,
const void *Data, sal_uInt32 DatLen
) SAL_THROW_EXTERN_C();
diff --git a/sal/inc/rtl/digest.h b/sal/inc/rtl/digest.h
index 5a87e024b298..c8640dfdfc7f 100644
--- a/sal/inc/rtl/digest.h
+++ b/sal/inc/rtl/digest.h
@@ -91,7 +91,7 @@ typedef enum __rtl_DigestError rtlDigestError;
@param Algorithm [in] digest algorithm.
@return Digest handle, or 0 upon failure.
*/
-rtlDigest SAL_CALL rtl_digest_create (
+SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_create (
rtlDigestAlgorithm Algorithm
) SAL_THROW_EXTERN_C();
@@ -101,7 +101,7 @@ rtlDigest SAL_CALL rtl_digest_create (
@param Digest [in] digest handle to be destroyed.
@return None.
*/
-void SAL_CALL rtl_digest_destroy (
+SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroy (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -110,7 +110,7 @@ void SAL_CALL rtl_digest_destroy (
@param Digest [in] digest handle.
@return digest algorithm, or rtl_Digest_AlgorithmInvalid upon failure.
*/
-rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm (
+SAL_DLLPUBLIC rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -119,7 +119,7 @@ rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm (
@param Digest [in] digest handle.
@return digest length, or 0 upon failure.
*/
-sal_uInt32 SAL_CALL rtl_digest_queryLength (
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_digest_queryLength (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -131,7 +131,7 @@ sal_uInt32 SAL_CALL rtl_digest_queryLength (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_init (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_init (
rtlDigest Digest,
const sal_uInt8 *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -144,7 +144,7 @@ rtlDigestError SAL_CALL rtl_digest_init (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_update (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_update (
rtlDigest Digest,
const void *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -162,7 +162,7 @@ rtlDigestError SAL_CALL rtl_digest_update (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_get (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_get (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -182,13 +182,13 @@ rtlDigestError SAL_CALL rtl_digest_get (
@see rtl_digest_create()
*/
-rtlDigest SAL_CALL rtl_digest_createMD2 (void) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createMD2 (void) SAL_THROW_EXTERN_C();
/** Destroy a MD2 digest handle.
@see rtl_digest_destroy()
*/
-void SAL_CALL rtl_digest_destroyMD2 (
+SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyMD2 (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -196,7 +196,7 @@ void SAL_CALL rtl_digest_destroyMD2 (
/** Update a MD2 digest with given data.
@see rtl_digest_update()
*/
-rtlDigestError SAL_CALL rtl_digest_updateMD2 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateMD2 (
rtlDigest Digest,
const void *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -205,7 +205,7 @@ rtlDigestError SAL_CALL rtl_digest_updateMD2 (
/** Finalize a MD2 digest and retrieve the digest value.
@see rtl_digest_get()
*/
-rtlDigestError SAL_CALL rtl_digest_getMD2 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getMD2 (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -225,7 +225,7 @@ rtlDigestError SAL_CALL rtl_digest_getMD2 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_MD2 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_MD2 (
const void *pData, sal_uInt32 nDatLen,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -245,13 +245,13 @@ rtlDigestError SAL_CALL rtl_digest_MD2 (
@see rtl_digest_create()
*/
-rtlDigest SAL_CALL rtl_digest_createMD5 (void) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createMD5 (void) SAL_THROW_EXTERN_C();
/** Destroy a MD5 digest handle.
@see rtl_digest_destroy()
*/
-void SAL_CALL rtl_digest_destroyMD5 (
+SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyMD5 (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -259,7 +259,7 @@ void SAL_CALL rtl_digest_destroyMD5 (
/** Update a MD5 digest with given data.
@see rtl_digest_update()
*/
-rtlDigestError SAL_CALL rtl_digest_updateMD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateMD5 (
rtlDigest Digest,
const void *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -268,7 +268,7 @@ rtlDigestError SAL_CALL rtl_digest_updateMD5 (
/** Finalize a MD5 digest and retrieve the digest value.
@see rtl_digest_get()
*/
-rtlDigestError SAL_CALL rtl_digest_getMD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getMD5 (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -281,7 +281,7 @@ rtlDigestError SAL_CALL rtl_digest_getMD5 (
@postcond Digest initialized to accept another update sequence.
@see rtl_digest_get()
*/
-rtlDigestError SAL_CALL rtl_digest_rawMD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_rawMD5 (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -301,7 +301,7 @@ rtlDigestError SAL_CALL rtl_digest_rawMD5 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_MD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_MD5 (
const void *pData, sal_uInt32 nDatLen,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -321,13 +321,13 @@ rtlDigestError SAL_CALL rtl_digest_MD5 (
@see rtl_digest_create()
*/
-rtlDigest SAL_CALL rtl_digest_createSHA (void) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createSHA (void) SAL_THROW_EXTERN_C();
/** Destroy a SHA digest handle.
@see rtl_digest_destroy()
*/
-void SAL_CALL rtl_digest_destroySHA (
+SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroySHA (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -335,7 +335,7 @@ void SAL_CALL rtl_digest_destroySHA (
/** Update a SHA digest with given data.
@see rtl_digest_update()
*/
-rtlDigestError SAL_CALL rtl_digest_updateSHA (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateSHA (
rtlDigest Digest,
const void *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -344,7 +344,7 @@ rtlDigestError SAL_CALL rtl_digest_updateSHA (
/** Finalize a SHA digest and retrieve the digest value.
@see rtl_digest_get()
*/
-rtlDigestError SAL_CALL rtl_digest_getSHA (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getSHA (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -364,7 +364,7 @@ rtlDigestError SAL_CALL rtl_digest_getSHA (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_SHA (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_SHA (
const void *pData, sal_uInt32 nDatLen,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -384,13 +384,13 @@ rtlDigestError SAL_CALL rtl_digest_SHA (
@see rtl_digest_create()
*/
-rtlDigest SAL_CALL rtl_digest_createSHA1 (void) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createSHA1 (void) SAL_THROW_EXTERN_C();
/** Destroy a SHA1 digest handle.
@see rtl_digest_destroy()
*/
-void SAL_CALL rtl_digest_destroySHA1 (
+SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroySHA1 (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -398,7 +398,7 @@ void SAL_CALL rtl_digest_destroySHA1 (
/** Update a SHA1 digest with given data.
@see rtl_digest_update()
*/
-rtlDigestError SAL_CALL rtl_digest_updateSHA1 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateSHA1 (
rtlDigest Digest,
const void *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -407,7 +407,7 @@ rtlDigestError SAL_CALL rtl_digest_updateSHA1 (
/** Finalize a SHA1 digest and retrieve the digest value.
@see rtl_digest_get()
*/
-rtlDigestError SAL_CALL rtl_digest_getSHA1 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getSHA1 (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -427,7 +427,7 @@ rtlDigestError SAL_CALL rtl_digest_getSHA1 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_SHA1 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_SHA1 (
const void *pData, sal_uInt32 nDatLen,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -447,13 +447,13 @@ rtlDigestError SAL_CALL rtl_digest_SHA1 (
@see rtl_digest_create()
*/
-rtlDigest SAL_CALL rtl_digest_createHMAC_MD5 (void) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createHMAC_MD5 (void) SAL_THROW_EXTERN_C();
/** Destroy a HMAC_MD5 digest handle.
@see rtl_digest_destroy()
*/
-void SAL_CALL rtl_digest_destroyHMAC_MD5 (
+SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyHMAC_MD5 (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -467,7 +467,7 @@ void SAL_CALL rtl_digest_destroyHMAC_MD5 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5 (
rtlDigest Digest,
const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen
) SAL_THROW_EXTERN_C();
@@ -476,7 +476,7 @@ rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5 (
/** Update a HMAC_MD5 digest with given data.
@see rtl_digest_update()
*/
-rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5 (
rtlDigest Digest,
const void *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -485,7 +485,7 @@ rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5 (
/** Finalize a HMAC_MD5 digest and retrieve the digest value.
@see rtl_digest_get()
*/
-rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5 (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -508,7 +508,7 @@ rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_HMAC_MD5 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_HMAC_MD5 (
const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen,
const void *pData, sal_uInt32 nDatLen,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
@@ -531,13 +531,13 @@ rtlDigestError SAL_CALL rtl_digest_HMAC_MD5 (
@see rtl_digest_create()
*/
-rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1 (void) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1 (void) SAL_THROW_EXTERN_C();
/** Destroy a HMAC_SHA1 digest handle.
@see rtl_digest_destroy()
*/
-void SAL_CALL rtl_digest_destroyHMAC_SHA1 (
+SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyHMAC_SHA1 (
rtlDigest Digest
) SAL_THROW_EXTERN_C();
@@ -551,7 +551,7 @@ void SAL_CALL rtl_digest_destroyHMAC_SHA1 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1 (
rtlDigest Digest,
const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen
) SAL_THROW_EXTERN_C();
@@ -560,7 +560,7 @@ rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1 (
/** Update a HMAC_SHA1 digest with given data.
@see rtl_digest_update()
*/
-rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1 (
rtlDigest Digest,
const void *pData, sal_uInt32 nDatLen
) SAL_THROW_EXTERN_C();
@@ -569,7 +569,7 @@ rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1 (
/** Finalize a HMAC_SHA1 digest and retrieve the digest value.
@see rtl_digest_get()
*/
-rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1 (
rtlDigest Digest,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
) SAL_THROW_EXTERN_C();
@@ -592,7 +592,7 @@ rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1 (
const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen,
const void *pData, sal_uInt32 nDatLen,
sal_uInt8 *pBuffer, sal_uInt32 nBufLen
@@ -619,7 +619,7 @@ rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1 (
@return rtl_Digest_E_None upon success.
*/
-rtlDigestError SAL_CALL rtl_digest_PBKDF2 (
+SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_PBKDF2 (
sal_uInt8 *pKeyData , sal_uInt32 nKeyLen,
const sal_uInt8 *pPassData, sal_uInt32 nPassLen,
const sal_uInt8 *pSaltData, sal_uInt32 nSaltLen,
diff --git a/sal/inc/rtl/locale.h b/sal/inc/rtl/locale.h
index f671800656c0..e29ed0e3c5e8 100644
--- a/sal/inc/rtl/locale.h
+++ b/sal/inc/rtl/locale.h
@@ -75,7 +75,8 @@ typedef struct _rtl_Locale
@param country uppercase two-letter ISO-3166 code. May be null.
@param variant vendor and browser specific code. May be null.
*/
-rtl_Locale * SAL_CALL rtl_locale_register( const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
+SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_register(
+ const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
/**
Common method of getting the current default Locale.
@@ -88,7 +89,7 @@ rtl_Locale * SAL_CALL rtl_locale_register( const sal_Unicode * language, const s
for different fields, e.g. in a spreadsheet.
<BR>Note that the initial setting will match the host system.
*/
-rtl_Locale * SAL_CALL rtl_locale_getDefault();
+SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_getDefault();
/**
Sets the default.
@@ -98,37 +99,38 @@ rtl_Locale * SAL_CALL rtl_locale_getDefault();
@param country uppercase two-letter ISO-3166 code.
@param variant vendor and browser specific code. See class description.
*/
-void SAL_CALL rtl_locale_setDefault( const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
+SAL_DLLPUBLIC void SAL_CALL rtl_locale_setDefault(
+ const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
/**
Getter for programmatic name of field,
a lowercased two-letter ISO 639-1 or three-letter ISO 639-3 code.
@see #getDisplayLanguage
*/
-rtl_uString * SAL_CALL rtl_locale_getLanguage( rtl_Locale * This );
+SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getLanguage( rtl_Locale * This );
/**
Getter for programmatic name of field,
an uppercased two-letter ISO-3166 code.
@see #getDisplayCountry
*/
-rtl_uString * SAL_CALL rtl_locale_getCountry( rtl_Locale * This );
+SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getCountry( rtl_Locale * This );
/**
Getter for programmatic name of field.
@see #getDisplayVariant
*/
-rtl_uString * SAL_CALL rtl_locale_getVariant( rtl_Locale * This );
+SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getVariant( rtl_Locale * This );
/**
Returns the hash code of the locale This.
*/
-sal_Int32 SAL_CALL rtl_locale_hashCode( rtl_Locale * This );
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_hashCode( rtl_Locale * This );
/**
Returns true if the locals are equal, otherwis false.
*/
-sal_Int32 SAL_CALL rtl_locale_equals( rtl_Locale * This, rtl_Locale * obj );
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_equals( rtl_Locale * This, rtl_Locale * obj );
#ifdef __cplusplus
}
diff --git a/sal/inc/rtl/logfile.h b/sal/inc/rtl/logfile.h
index fab9ed4d0264..ce89345a23b5 100644
--- a/sal/inc/rtl/logfile.h
+++ b/sal/inc/rtl/logfile.h
@@ -49,7 +49,7 @@ extern "C" {
@param ... An arbitrary number of arguments for fprintf, matching the
format string.
*/
-void SAL_CALL rtl_logfile_trace( const sal_Char* pszFormat, ... );
+SAL_DLLPUBLIC void SAL_CALL rtl_logfile_trace( const sal_Char* pszFormat, ... );
/** Like rtl_logfile_trace, but prefixing every log entry with the current time
and thread ID.
@@ -63,7 +63,7 @@ void SAL_CALL rtl_logfile_trace( const sal_Char* pszFormat, ... );
@since UDK 3.2.0
*/
-void SAL_CALL rtl_logfile_longTrace(char const * format, ...);
+SAL_DLLPUBLIC void SAL_CALL rtl_logfile_longTrace(char const * format, ...);
/** Return if a log file is written.
@@ -71,7 +71,7 @@ void SAL_CALL rtl_logfile_longTrace(char const * format, ...);
@since UDK 3.2.11
*/
-sal_Bool SAL_CALL rtl_logfile_hasLogFile( void );
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_logfile_hasLogFile( void );
#ifdef __cplusplus
}
diff --git a/sal/inc/rtl/math.h b/sal/inc/rtl/math.h
index 26a1029095b1..c2c087d3474a 100644
--- a/sal/inc/rtl/math.h
+++ b/sal/inc/rtl/math.h
@@ -203,7 +203,7 @@ enum rtl_math_DecimalPlaces
@param bEraseTrailingDecZeros
Trailing zeros in decimal places are erased.
*/
-void SAL_CALL rtl_math_doubleToString(rtl_String ** pResult,
+SAL_DLLPUBLIC void SAL_CALL rtl_math_doubleToString(rtl_String ** pResult,
sal_Int32 * pResultCapacity,
sal_Int32 nResultOffset, double fValue,
enum rtl_math_StringFormat eFormat,
@@ -278,7 +278,7 @@ void SAL_CALL rtl_math_doubleToString(rtl_String ** pResult,
@param bEraseTrailingDecZeros
Trailing zeros in decimal places are erased.
*/
-void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult,
+SAL_DLLPUBLIC void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult,
sal_Int32 * pResultCapacity,
sal_Int32 nResultOffset, double fValue,
enum rtl_math_StringFormat eFormat,
@@ -324,7 +324,7 @@ void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult,
found, *pParsedEnd == pBegin on return, even if there was leading
whitespace.
*/
-double SAL_CALL rtl_math_stringToDouble(
+SAL_DLLPUBLIC double SAL_CALL rtl_math_stringToDouble(
sal_Char const * pBegin, sal_Char const * pEnd, sal_Char cDecSeparator,
sal_Char cGroupSeparator, enum rtl_math_ConversionStatus * pStatus,
sal_Char const ** pParsedEnd) SAL_THROW_EXTERN_C();
@@ -364,7 +364,7 @@ double SAL_CALL rtl_math_stringToDouble(
found, *pParsedEnd == pBegin on return, even if there was leading
whitespace.
*/
-double SAL_CALL rtl_math_uStringToDouble(
+SAL_DLLPUBLIC double SAL_CALL rtl_math_uStringToDouble(
sal_Unicode const * pBegin, sal_Unicode const * pEnd,
sal_Unicode cDecSeparator, sal_Unicode cGroupSeparator,
enum rtl_math_ConversionStatus * pStatus, sal_Unicode const ** pParsedEnd)
@@ -383,7 +383,7 @@ double SAL_CALL rtl_math_uStringToDouble(
@param eMode
Specifies the rounding mode.
*/
-double SAL_CALL rtl_math_round(double fValue, int nDecPlaces,
+SAL_DLLPUBLIC double SAL_CALL rtl_math_round(double fValue, int nDecPlaces,
enum rtl_math_RoundingMode eMode)
SAL_THROW_EXTERN_C();
@@ -399,14 +399,14 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces,
@return
fVal * pow(10.0, nExp)
*/
-double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C();
/** Rounds value to 15 significant decimal digits.
@param fValue
The value to be rounded.
*/
-double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C();
/** Returns more accurate e^x-1 for x near 0 than calculating directly.
@@ -415,7 +415,7 @@ double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C();
@param fValue
The value x in the term e^x-1.
*/
-double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C();
/** Returns more accurate log(1+x) for x near 0 than calculating directly.
@@ -424,7 +424,7 @@ double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C();
@param fValue
The value x in the term log(1+x).
*/
-double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C();
/** Returns more accurate atanh(x) for x near 0 than calculating
0.5*log((1+x)/(1-x)).
@@ -434,7 +434,7 @@ double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C();
@param fValue
The value x in the term atanh(x).
*/
-double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C();
/** Returns values of the Errorfunction erf.
@@ -443,7 +443,7 @@ double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C();
@param fValue
The value x in the term erf(x).
*/
-double SAL_CALL rtl_math_erf(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_erf(double fValue) SAL_THROW_EXTERN_C();
/** Returns values of the complement Errorfunction erfc.
@@ -452,7 +452,7 @@ double SAL_CALL rtl_math_erf(double fValue) SAL_THROW_EXTERN_C();
@param fValue
The value x in the term erfc(x).
*/
-double SAL_CALL rtl_math_erfc(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_erfc(double fValue) SAL_THROW_EXTERN_C();
/** Returns values of the inverse hyperbolic sine.
@@ -461,7 +461,7 @@ double SAL_CALL rtl_math_erfc(double fValue) SAL_THROW_EXTERN_C();
@param fValue
The value x in the term asinh(x).
*/
-double SAL_CALL rtl_math_asinh(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_asinh(double fValue) SAL_THROW_EXTERN_C();
/** Returns values of the inverse hyperbolic cosine.
@@ -470,7 +470,7 @@ double SAL_CALL rtl_math_asinh(double fValue) SAL_THROW_EXTERN_C();
@param fValue
The value x in the term acosh(x).
*/
-double SAL_CALL rtl_math_acosh(double fValue) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_math_acosh(double fValue) SAL_THROW_EXTERN_C();
#if defined __cplusplus
}
diff --git a/sal/inc/rtl/memory.h b/sal/inc/rtl/memory.h
index 5ead5914c1e5..516040f1880d 100644
--- a/sal/inc/rtl/memory.h
+++ b/sal/inc/rtl/memory.h
@@ -36,12 +36,12 @@
extern "C" {
#endif
-void SAL_CALL rtl_zeroMemory(void *Ptr, sal_Size Bytes);
-void SAL_CALL rtl_fillMemory(void *Ptr, sal_Size Bytes, sal_uInt8 Fill);
-void SAL_CALL rtl_copyMemory(void *Dst, const void *Src, sal_Size Bytes);
-void SAL_CALL rtl_moveMemory(void *Dst, const void *Src, sal_Size Bytes);
-sal_Int32 SAL_CALL rtl_compareMemory(const void *MemA, const void *MemB, sal_Size Bytes);
-void* SAL_CALL rtl_findInMemory(const void *MemA, sal_uInt8 ch, sal_Size Bytes);
+SAL_DLLPUBLIC void SAL_CALL rtl_zeroMemory(void *Ptr, sal_Size Bytes);
+SAL_DLLPUBLIC void SAL_CALL rtl_fillMemory(void *Ptr, sal_Size Bytes, sal_uInt8 Fill);
+SAL_DLLPUBLIC void SAL_CALL rtl_copyMemory(void *Dst, const void *Src, sal_Size Bytes);
+SAL_DLLPUBLIC void SAL_CALL rtl_moveMemory(void *Dst, const void *Src, sal_Size Bytes);
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareMemory(const void *MemA, const void *MemB, sal_Size Bytes);
+SAL_DLLPUBLIC void* SAL_CALL rtl_findInMemory(const void *MemA, sal_uInt8 ch, sal_Size Bytes);
#ifdef __cplusplus
}
diff --git a/sal/inc/rtl/process.h b/sal/inc/rtl/process.h
index ae27cda80fe5..ae18e66b969a 100644
--- a/sal/inc/rtl/process.h
+++ b/sal/inc/rtl/process.h
@@ -48,7 +48,7 @@ extern "C" {
@param pTargetUUID 16 byte of memory
@see rtl_createUiid()
*/
-void SAL_CALL rtl_getGlobalProcessId( sal_uInt8 *pTargetUUID );
+SAL_DLLPUBLIC void SAL_CALL rtl_getGlobalProcessId( sal_uInt8 *pTargetUUID );
/** Get the nArg-th command-line argument passed to the main-function of this process.
@@ -62,7 +62,7 @@ void SAL_CALL rtl_getGlobalProcessId( sal_uInt8 *pTargetUUID );
@see osl_getCommandArg()
@see rtl_getCommandArgCount()
*/
-oslProcessError SAL_CALL rtl_getAppCommandArg(sal_uInt32 nArg, rtl_uString **strCommandArg);
+SAL_DLLPUBLIC oslProcessError SAL_CALL rtl_getAppCommandArg(sal_uInt32 nArg, rtl_uString **strCommandArg);
/** Returns the number of command line arguments at process start.
@@ -74,7 +74,7 @@ oslProcessError SAL_CALL rtl_getAppCommandArg(sal_uInt32 nArg, rtl_uString **str
@see osl_getCommandArgCount()
@see rtl_getCommandArg()
*/
-sal_uInt32 SAL_CALL rtl_getAppCommandArgCount();
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_getAppCommandArgCount();
#ifdef __cplusplus
}
diff --git a/sal/inc/rtl/random.h b/sal/inc/rtl/random.h
index 5e034161374b..45d8c0d48820 100644
--- a/sal/inc/rtl/random.h
+++ b/sal/inc/rtl/random.h
@@ -64,14 +64,14 @@ typedef enum __rtl_RandomError rtlRandomError;
/** Create a Random Pool.
@return initialized Random Pool, or NULL upon failure.
*/
-rtlRandomPool SAL_CALL rtl_random_createPool (void) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC rtlRandomPool SAL_CALL rtl_random_createPool (void) SAL_THROW_EXTERN_C();
/** Destroy a Random Pool.
@param Pool [in] a Random Pool.
@return none. Pool is invalid.
*/
-void SAL_CALL rtl_random_destroyPool (
+SAL_DLLPUBLIC void SAL_CALL rtl_random_destroyPool (
rtlRandomPool Pool
) SAL_THROW_EXTERN_C();
@@ -82,7 +82,7 @@ void SAL_CALL rtl_random_destroyPool (
@param nBufLen [in] the number of bytes to read from the buffer.
@return rtl_Random_E_None upon success.
*/
-rtlRandomError SAL_CALL rtl_random_addBytes (
+SAL_DLLPUBLIC rtlRandomError SAL_CALL rtl_random_addBytes (
rtlRandomPool Pool,
const void *Buffer,
sal_Size Bytes
@@ -95,7 +95,7 @@ rtlRandomError SAL_CALL rtl_random_addBytes (
@param nBufLen [in] the number of bytes to write to the buffer.
@return rtl_Random_E_None upon success.
*/
-rtlRandomError SAL_CALL rtl_random_getBytes (
+SAL_DLLPUBLIC rtlRandomError SAL_CALL rtl_random_getBytes (
rtlRandomPool Pool,
void *Buffer,
sal_Size Bytes
diff --git a/sal/inc/rtl/strbuf.h b/sal/inc/rtl/strbuf.h
index c1d929c1298b..deebd89d7d16 100644
--- a/sal/inc/rtl/strbuf.h
+++ b/sal/inc/rtl/strbuf.h
@@ -47,7 +47,8 @@ extern "C" {
@param value the initial value of the string.
@param count the length of value.
*/
-void SAL_CALL rtl_stringbuffer_newFromStr_WithLength( rtl_String ** newStr,
+SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_newFromStr_WithLength(
+ rtl_String ** newStr,
const sal_Char * value,
sal_Int32 count);
@@ -66,7 +67,8 @@ void SAL_CALL rtl_stringbuffer_newFromStr_WithLength( rtl_String ** newStr,
@param oldStr the initial value of the string.
@return the new capacity of the string buffer
*/
-sal_Int32 SAL_CALL rtl_stringbuffer_newFromStringBuffer( rtl_String ** newStr,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_stringbuffer_newFromStringBuffer(
+ rtl_String ** newStr,
sal_Int32 capacity,
rtl_String * olsStr );
@@ -87,7 +89,8 @@ sal_Int32 SAL_CALL rtl_stringbuffer_newFromStringBuffer( rtl_String ** newStr,
@param capacity in: old capicity, out: new capacity.
@param minimumCapacity the minimum desired capacity.
*/
-void SAL_CALL rtl_stringbuffer_ensureCapacity( /*inout*/rtl_String ** This,
+SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_ensureCapacity(
+ /*inout*/rtl_String ** This,
/*inout*/sal_Int32* capacity,
sal_Int32 minimumCapacity);
@@ -106,7 +109,8 @@ void SAL_CALL rtl_stringbuffer_ensureCapacity( /*inout*/rtl_String ** This,
@param ch a character array.
@param len the number of characters to append.
*/
-void SAL_CALL rtl_stringbuffer_insert( /*inout*/rtl_String ** This,
+SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_insert(
+ /*inout*/rtl_String ** This,
/*inout*/sal_Int32 * capacity,
sal_Int32 offset,
const sal_Char * str,
@@ -123,7 +127,8 @@ void SAL_CALL rtl_stringbuffer_insert( /*inout*/rtl_String ** This,
@param start The beginning index, inclusive
@param len The substring length
*/
-void SAL_CALL rtl_stringbuffer_remove( /*inout*/rtl_String ** This,
+SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_remove(
+ /*inout*/rtl_String ** This,
sal_Int32 start,
sal_Int32 len );
diff --git a/sal/inc/rtl/string.h b/sal/inc/rtl/string.h
index 65ecae5010f2..7b2354711f5a 100644
--- a/sal/inc/rtl/string.h
+++ b/sal/inc/rtl/string.h
@@ -51,7 +51,8 @@ extern "C" {
the length of the sequence of characters represented by this string,
excluding the terminating NUL character.
*/
-sal_Int32 SAL_CALL rtl_str_getLength( const sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_getLength(
+ const sal_Char * str ) SAL_THROW_EXTERN_C();
/** Compare two strings.
@@ -71,7 +72,8 @@ sal_Int32 SAL_CALL rtl_str_getLength( const sal_Char * str ) SAL_THROW_EXTERN_C(
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_str_compare( const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compare(
+ const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
/** Compare two strings.
@@ -98,7 +100,8 @@ sal_Int32 SAL_CALL rtl_str_compare( const sal_Char * first, const sal_Char * sec
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_str_compare_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compare_WithLength(
+ const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
/** Compare two strings with a maximum count of characters.
@@ -129,7 +132,8 @@ sal_Int32 SAL_CALL rtl_str_compare_WithLength( const sal_Char * first, sal_Int32
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength(
+ const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
/** Compare two strings from back to front.
@@ -156,7 +160,8 @@ sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength( const sal_Char * first,
compares less than the second string, and a value greater than 0 if the
first string compares greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_str_reverseCompare_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_reverseCompare_WithLength(
+ const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
/** Compare two strings, ignoring the case of ASCII characters.
@@ -177,7 +182,8 @@ sal_Int32 SAL_CALL rtl_str_reverseCompare_WithLength( const sal_Char * first, sa
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase( const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase(
+ const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
/** Compare two strings, ignoring the case of ASCII characters.
@@ -206,7 +212,8 @@ sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase( const sal_Char * first, const
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength(
+ const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
/** Compare two strings with a maximum count of characters, ignoring the case
of ASCII characters.
@@ -240,7 +247,8 @@ sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength( const sal_Char * f
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_shortenedCompareIgnoreAsciiCase_WithLength(
+ const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
/** Return a hash code for a string.
@@ -254,7 +262,8 @@ sal_Int32 SAL_CALL rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( const sal
@return
a hash code for the given string.
*/
-sal_Int32 SAL_CALL rtl_str_hashCode( const sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_hashCode(
+ const sal_Char * str ) SAL_THROW_EXTERN_C();
/** Return a hash code for a string.
@@ -271,7 +280,8 @@ sal_Int32 SAL_CALL rtl_str_hashCode( const sal_Char * str ) SAL_THROW_EXTERN_C()
@return
a hash code for the given string.
*/
-sal_Int32 SAL_CALL rtl_str_hashCode_WithLength( const sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_hashCode_WithLength(
+ const sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a character within a string.
@@ -287,7 +297,8 @@ sal_Int32 SAL_CALL rtl_str_hashCode_WithLength( const sal_Char * str, sal_Int32
the index (starting at 0) of the first occurrence of the character in the
string, or -1 if the character does not occur.
*/
-sal_Int32 SAL_CALL rtl_str_indexOfChar( const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfChar(
+ const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a character within a string.
@@ -305,7 +316,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfChar( const sal_Char * str, sal_Char ch ) SAL_
the index (starting at 0) of the first occurrence of the character in the
string, or -1 if the character does not occur.
*/
-sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength( const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength(
+ const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of a character within a string.
@@ -322,7 +334,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength( const sal_Char * str, sal_Int
string, or -1 if the character does not occur. The returned value is
always smaller than the string length.
*/
-sal_Int32 SAL_CALL rtl_str_lastIndexOfChar( const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfChar(
+ const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of a character within a string.
@@ -341,7 +354,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfChar( const sal_Char * str, sal_Char ch )
string, or -1 if the character does not occur. The returned value is
always smaller than the string length.
*/
-sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength( const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength(
+ const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a substring within a string.
@@ -358,7 +372,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength( const sal_Char * str, sal
the index (starting at 0) of the first character of the first occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_str_indexOfStr( const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfStr(
+ const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a substring within a string.
@@ -382,7 +397,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfStr( const sal_Char * str, const sal_Char * su
the index (starting at 0) of the first character of the first occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength( const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength(
+ const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of a substring within a string.
@@ -399,7 +415,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength( const sal_Char * str, sal_Int3
the index (starting at 0) of the first character of the last occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_str_lastIndexOfStr( const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfStr(
+ const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of a substring within a string.
@@ -423,7 +440,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfStr( const sal_Char * str, const sal_Char
the index (starting at 0) of the first character of the first occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength( const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength(
+ const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
/** Replace all occurrences of a single character within a string.
@@ -439,7 +457,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength( const sal_Char * str, sal_
@param newChar
the new character.
*/
-void SAL_CALL rtl_str_replaceChar( sal_Char * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_str_replaceChar(
+ sal_Char * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C();
/** Replace all occurrences of a single character within a string.
@@ -458,7 +477,8 @@ void SAL_CALL rtl_str_replaceChar( sal_Char * str, sal_Char oldChar, sal_Char ne
@param newChar
the new character.
*/
-void SAL_CALL rtl_str_replaceChar_WithLength( sal_Char * str, sal_Int32 len, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_str_replaceChar_WithLength(
+ sal_Char * str, sal_Int32 len, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C();
/** Convert all ASCII uppercase letters to lowercase within a string.
@@ -469,7 +489,8 @@ void SAL_CALL rtl_str_replaceChar_WithLength( sal_Char * str, sal_Int32 len, sal
@param str
a null-terminated string.
*/
-void SAL_CALL rtl_str_toAsciiLowerCase( sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiLowerCase(
+ sal_Char * str ) SAL_THROW_EXTERN_C();
/** Convert all ASCII uppercase letters to lowercase within a string.
@@ -483,7 +504,8 @@ void SAL_CALL rtl_str_toAsciiLowerCase( sal_Char * str ) SAL_THROW_EXTERN_C();
@param len
the length of the string.
*/
-void SAL_CALL rtl_str_toAsciiLowerCase_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiLowerCase_WithLength(
+ sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Convert all ASCII lowercase letters to uppercase within a string.
@@ -494,7 +516,8 @@ void SAL_CALL rtl_str_toAsciiLowerCase_WithLength( sal_Char * str, sal_Int32 len
@param str
a null-terminated string.
*/
-void SAL_CALL rtl_str_toAsciiUpperCase( sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiUpperCase(
+ sal_Char * str ) SAL_THROW_EXTERN_C();
/** Convert all ASCII lowercase letters to uppercase within a string.
@@ -508,7 +531,8 @@ void SAL_CALL rtl_str_toAsciiUpperCase( sal_Char * str ) SAL_THROW_EXTERN_C();
@param len
the length of the string.
*/
-void SAL_CALL rtl_str_toAsciiUpperCase_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiUpperCase_WithLength(
+ sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Remove white space from both ends of a string.
@@ -522,7 +546,8 @@ void SAL_CALL rtl_str_toAsciiUpperCase_WithLength( sal_Char * str, sal_Int32 len
@return
the new length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_trim( sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_trim(
+ sal_Char * str ) SAL_THROW_EXTERN_C();
/** Remove white space from both ends of the string.
@@ -540,7 +565,8 @@ sal_Int32 SAL_CALL rtl_str_trim( sal_Char * str ) SAL_THROW_EXTERN_C();
@return
the new length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_trim_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_trim_WithLength(
+ sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Create the string representation of a boolean.
@@ -560,7 +586,8 @@ sal_Int32 SAL_CALL rtl_str_trim_WithLength( sal_Char * str, sal_Int32 len ) SAL_
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_valueOfBoolean( sal_Char * str, sal_Bool b ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfBoolean(
+ sal_Char * str, sal_Bool b ) SAL_THROW_EXTERN_C();
#define RTL_STR_MAX_VALUEOFBOOLEAN 6
/** Create the string representation of a character.
@@ -576,7 +603,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfBoolean( sal_Char * str, sal_Bool b ) SAL_THRO
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_valueOfChar( sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfChar(
+ sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C();
#define RTL_STR_MAX_VALUEOFCHAR 2
/** Create the string representation of an integer.
@@ -598,7 +626,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfChar( sal_Char * str, sal_Char ch ) SAL_THROW_
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_valueOfInt32( sal_Char * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfInt32(
+ sal_Char * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C();
#define RTL_STR_MIN_RADIX 2
#define RTL_STR_MAX_RADIX 36
#define RTL_STR_MAX_VALUEOFINT32 33
@@ -622,7 +651,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfInt32( sal_Char * str, sal_Int32 i, sal_Int16
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_valueOfInt64( sal_Char * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfInt64(
+ sal_Char * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C();
#define RTL_STR_MAX_VALUEOFINT64 65
/** Create the string representation of a float.
@@ -640,7 +670,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfInt64( sal_Char * str, sal_Int64 l, sal_Int16
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_valueOfFloat( sal_Char * str, float f ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfFloat(
+ sal_Char * str, float f ) SAL_THROW_EXTERN_C();
#define RTL_STR_MAX_VALUEOFFLOAT 15
/** Create the string representation of a double.
@@ -658,7 +689,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfFloat( sal_Char * str, float f ) SAL_THROW_EXT
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_str_valueOfDouble( sal_Char * str, double d ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfDouble(
+ sal_Char * str, double d ) SAL_THROW_EXTERN_C();
#define RTL_STR_MAX_VALUEOFDOUBLE 25
/** Interpret a string as a boolean.
@@ -672,7 +704,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfDouble( sal_Char * str, double d ) SAL_THROW_E
@return
true if the string is "1" or "true" in any ASCII case, false otherwise.
*/
-sal_Bool SAL_CALL rtl_str_toBoolean( const sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_str_toBoolean(
+ const sal_Char * str ) SAL_THROW_EXTERN_C();
/** Interpret a string as an integer.
@@ -690,7 +723,8 @@ sal_Bool SAL_CALL rtl_str_toBoolean( const sal_Char * str ) SAL_THROW_EXTERN_C()
the integer value represented by the string, or 0 if the string does not
represent an integer.
*/
-sal_Int32 SAL_CALL rtl_str_toInt32( const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_toInt32(
+ const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
/** Interpret a string as a long integer.
@@ -708,7 +742,8 @@ sal_Int32 SAL_CALL rtl_str_toInt32( const sal_Char * str, sal_Int16 radix ) SAL_
the long integer value represented by the string, or 0 if the string does
not represent a long integer.
*/
-sal_Int64 SAL_CALL rtl_str_toInt64( const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_str_toInt64(
+ const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
/** Interpret a string as a float.
@@ -722,7 +757,8 @@ sal_Int64 SAL_CALL rtl_str_toInt64( const sal_Char * str, sal_Int16 radix ) SAL_
the float value represented by the string, or 0.0 if the string does not
represent a float.
*/
-float SAL_CALL rtl_str_toFloat( const sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC float SAL_CALL rtl_str_toFloat(
+ const sal_Char * str ) SAL_THROW_EXTERN_C();
/** Interpret a string as a double.
@@ -736,7 +772,8 @@ float SAL_CALL rtl_str_toFloat( const sal_Char * str ) SAL_THROW_EXTERN_C();
the float value represented by the string, or 0.0 if the string does not
represent a double.
*/
-double SAL_CALL rtl_str_toDouble( const sal_Char * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_str_toDouble(
+ const sal_Char * str ) SAL_THROW_EXTERN_C();
/* ======================================================================= */
@@ -766,7 +803,7 @@ typedef struct _rtl_String
@param str
a string.
*/
-void SAL_CALL rtl_string_acquire( rtl_String * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_acquire( rtl_String * str ) SAL_THROW_EXTERN_C();
/** Decrement the reference count of a string.
@@ -775,7 +812,7 @@ void SAL_CALL rtl_string_acquire( rtl_String * str ) SAL_THROW_EXTERN_C();
@param str
a string.
*/
-void SAL_CALL rtl_string_release( rtl_String * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_release( rtl_String * str ) SAL_THROW_EXTERN_C();
/** Allocate a new string containing no characters.
@@ -783,7 +820,7 @@ void SAL_CALL rtl_string_release( rtl_String * str ) SAL_THROW_EXTERN_C();
pointer to the new string. The pointed-to data must be null or a valid
string.
*/
-void SAL_CALL rtl_string_new( rtl_String ** newStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_new( rtl_String ** newStr ) SAL_THROW_EXTERN_C();
/** Allocate a new string containing space for a given number of characters.
@@ -798,7 +835,7 @@ void SAL_CALL rtl_string_new( rtl_String ** newStr ) SAL_THROW_EXTERN_C();
@param len
the number of characters.
*/
-void SAL_CALL rtl_string_new_WithLength( rtl_String ** newStr, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_new_WithLength( rtl_String ** newStr, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Allocate a new string that contains a copy of another string.
@@ -813,7 +850,7 @@ void SAL_CALL rtl_string_new_WithLength( rtl_String ** newStr, sal_Int32 len ) S
@param value
a valid string.
*/
-void SAL_CALL rtl_string_newFromString( rtl_String ** newStr, const rtl_String * value ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newFromString( rtl_String ** newStr, const rtl_String * value ) SAL_THROW_EXTERN_C();
/** Allocate a new string that contains a copy of a character array.
@@ -828,7 +865,7 @@ void SAL_CALL rtl_string_newFromString( rtl_String ** newStr, const rtl_String *
@param value
a null-terminated character array.
*/
-void SAL_CALL rtl_string_newFromStr( rtl_String ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newFromStr( rtl_String ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C();
/** Allocate a new string that contains a copy of a character array.
@@ -847,7 +884,7 @@ void SAL_CALL rtl_string_newFromStr( rtl_String ** newStr, const sal_Char * valu
@param len
the length of the character array.
*/
-void SAL_CALL rtl_string_newFromStr_WithLength( rtl_String ** newStr, const sal_Char * value, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newFromStr_WithLength( rtl_String ** newStr, const sal_Char * value, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Assign a new value to a string.
@@ -861,7 +898,7 @@ void SAL_CALL rtl_string_newFromStr_WithLength( rtl_String ** newStr, const sal_
@param rightValue
a valid string.
*/
-void SAL_CALL rtl_string_assign( rtl_String ** str, rtl_String * rightValue ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_assign( rtl_String ** str, rtl_String * rightValue ) SAL_THROW_EXTERN_C();
/** Return the length of a string.
@@ -873,7 +910,7 @@ void SAL_CALL rtl_string_assign( rtl_String ** str, rtl_String * rightValue ) SA
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_string_getLength( const rtl_String * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_string_getLength( const rtl_String * str ) SAL_THROW_EXTERN_C();
/** Return a pointer to the underlying character array of a string.
@@ -883,7 +920,7 @@ sal_Int32 SAL_CALL rtl_string_getLength( const rtl_String * str ) SAL_THROW_EXTE
@return
a pointer to the null-terminated character array.
*/
-sal_Char * SAL_CALL rtl_string_getStr( rtl_String * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Char * SAL_CALL rtl_string_getStr( rtl_String * str ) SAL_THROW_EXTERN_C();
/** Create a new string that is the concatenation of two other strings.
@@ -902,7 +939,7 @@ sal_Char * SAL_CALL rtl_string_getStr( rtl_String * str ) SAL_THROW_EXTERN_C();
@param right
a valid string.
*/
-void SAL_CALL rtl_string_newConcat( rtl_String ** newStr, rtl_String * left, rtl_String * right ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newConcat( rtl_String ** newStr, rtl_String * left, rtl_String * right ) SAL_THROW_EXTERN_C();
/** Create a new string by replacing a substring of another string.
@@ -933,7 +970,8 @@ void SAL_CALL rtl_string_newConcat( rtl_String ** newStr, rtl_String * left, rtl
@param subStr
either null or a valid string to be inserted.
*/
-void SAL_CALL rtl_string_newReplaceStrAt( rtl_String ** newStr, rtl_String * str, sal_Int32 idx, sal_Int32 count, rtl_String * subStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newReplaceStrAt(
+ rtl_String ** newStr, rtl_String * str, sal_Int32 idx, sal_Int32 count, rtl_String * subStr ) SAL_THROW_EXTERN_C();
/** Create a new string by replacing all occurrences of a single character
within another string.
@@ -959,7 +997,8 @@ void SAL_CALL rtl_string_newReplaceStrAt( rtl_String ** newStr, rtl_String * str
@param newChar
the new character.
*/
-void SAL_CALL rtl_string_newReplace( rtl_String ** newStr, rtl_String * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newReplace(
+ rtl_String ** newStr, rtl_String * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C();
/** Create a new string by converting all ASCII uppercase letters to lowercase
within another string.
@@ -980,7 +1019,8 @@ void SAL_CALL rtl_string_newReplace( rtl_String ** newStr, rtl_String * str, sal
@param str
a valid string.
*/
-void SAL_CALL rtl_string_newToAsciiLowerCase( rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newToAsciiLowerCase(
+ rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C();
/** Create a new string by converting all ASCII lowercase letters to uppercase
within another string.
@@ -1001,7 +1041,8 @@ void SAL_CALL rtl_string_newToAsciiLowerCase( rtl_String ** newStr, rtl_String *
@param str
a valid string.
*/
-void SAL_CALL rtl_string_newToAsciiUpperCase( rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newToAsciiUpperCase(
+ rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C();
/** Create a new string by removing white space from both ends of another
string.
@@ -1022,7 +1063,8 @@ void SAL_CALL rtl_string_newToAsciiUpperCase( rtl_String ** newStr, rtl_String *
@param str
a valid string.
*/
-void SAL_CALL rtl_string_newTrim( rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string_newTrim(
+ rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C();
/** Create a new string by extracting a single token from another string.
@@ -1068,7 +1110,8 @@ void SAL_CALL rtl_string_newTrim( rtl_String ** newStr, rtl_String * str ) SAL_T
@return
the index of the next token, or -1 if no more tokens follow.
*/
-sal_Int32 SAL_CALL rtl_string_getToken( rtl_String ** newStr , rtl_String * str, sal_Int32 token, sal_Char cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_string_getToken(
+ rtl_String ** newStr , rtl_String * str, sal_Int32 token, sal_Char cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C();
/* ======================================================================= */
@@ -1146,7 +1189,8 @@ sal_Int32 SAL_CALL rtl_string_getToken( rtl_String ** newStr , rtl_String * str,
<http://udk.openoffice.org/cpp/man/spec/textconversion.html> for more
details.
*/
-void SAL_CALL rtl_uString2String( rtl_String ** newStr, const sal_Unicode * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString2String(
+ rtl_String ** newStr, const sal_Unicode * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C();
/**
Converts a Unicode string to a byte string, signalling failure.
@@ -1178,7 +1222,8 @@ void SAL_CALL rtl_uString2String( rtl_String ** newStr, const sal_Unicode * str,
@return
True if the conversion succeeded, false otherwise.
*/
-sal_Bool SAL_CALL rtl_convertUStringToString(rtl_String ** pTarget,
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_convertUStringToString(
+ rtl_String ** pTarget,
sal_Unicode const * pSource,
sal_Int32 nLength,
rtl_TextEncoding nEncoding,
diff --git a/sal/inc/rtl/tencinfo.h b/sal/inc/rtl/tencinfo.h
index cc70d30423ed..304147f336db 100644
--- a/sal/inc/rtl/tencinfo.h
+++ b/sal/inc/rtl/tencinfo.h
@@ -152,7 +152,7 @@ typedef struct _rtl_TextEncodingInfo
True if the given encoding uses single octets as basic units of
information, false otherwise.
*/
-sal_Bool SAL_CALL rtl_isOctetTextEncoding(rtl_TextEncoding nEncoding);
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_isOctetTextEncoding(rtl_TextEncoding nEncoding);
/** Return information about a text encoding.
@@ -167,7 +167,8 @@ sal_Bool SAL_CALL rtl_isOctetTextEncoding(rtl_TextEncoding nEncoding);
True if information about the given encoding is available, false
otherwise.
*/
-sal_Bool SAL_CALL rtl_getTextEncodingInfo( rtl_TextEncoding eTextEncoding, rtl_TextEncodingInfo* pEncInfo );
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_getTextEncodingInfo(
+ rtl_TextEncoding eTextEncoding, rtl_TextEncodingInfo* pEncInfo );
/** Map from a numeric Windows charset to a text encoding.
@@ -178,7 +179,8 @@ sal_Bool SAL_CALL rtl_getTextEncodingInfo( rtl_TextEncoding eTextEncoding, rtl_T
The corresponding rtl_TextEncoding value, or RTL_TEXTENCODING_DONTKNOW if
no mapping is applicable.
*/
-rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCharset( sal_uInt8 nWinCharset );
+SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCharset(
+ sal_uInt8 nWinCharset );
/** Map from a MIME charset to a text encoding.
@@ -189,7 +191,8 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCharset( sal_uInt8 nWinC
The corresponding rtl_TextEncoding value, or RTL_TEXTENCODING_DONTKNOW if
no mapping is applicable.
*/
-rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromMimeCharset( const sal_Char* pMimeCharset );
+SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromMimeCharset(
+ const sal_Char* pMimeCharset );
/** Map from a Unix charset to a text encoding.
@@ -200,7 +203,8 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromMimeCharset( const sal_Char* pM
The corresponding rtl_TextEncoding value, or RTL_TEXTENCODING_DONTKNOW if
no mapping is applicable.
*/
-rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pUnixCharset );
+SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset(
+ const sal_Char* pUnixCharset );
/** Map from a text encoding to the best matching numeric Windows charset.
@@ -210,7 +214,8 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pU
@return
The best matching numeric Windows charset, or 1 if none matches.
*/
-sal_uInt8 SAL_CALL rtl_getBestWindowsCharsetFromTextEncoding( rtl_TextEncoding eTextEncoding );
+SAL_DLLPUBLIC sal_uInt8 SAL_CALL rtl_getBestWindowsCharsetFromTextEncoding(
+ rtl_TextEncoding eTextEncoding );
/** Map from a text encoding to a corresponding MIME charset name, if
available (see <http://www.iana.org/assignments/character-sets>).
@@ -222,8 +227,8 @@ sal_uInt8 SAL_CALL rtl_getBestWindowsCharsetFromTextEncoding( rtl_TextEnco
The (preferred) MIME charset name corresponding to the given encoding, or
NULL if none is available.
*/
-char const * SAL_CALL rtl_getMimeCharsetFromTextEncoding(rtl_TextEncoding
- nEncoding);
+SAL_DLLPUBLIC char const * SAL_CALL rtl_getMimeCharsetFromTextEncoding(
+ rtl_TextEncoding nEncoding );
/** Map from a text encoding to the best matching MIME charset.
@@ -233,7 +238,8 @@ char const * SAL_CALL rtl_getMimeCharsetFromTextEncoding(rtl_TextEncoding
@return
The best matching MIME charset string, or null if none matches.
*/
-const sal_Char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding( rtl_TextEncoding eTextEncoding );
+SAL_DLLPUBLIC const sal_Char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding(
+ rtl_TextEncoding eTextEncoding );
/** Map from a text encoding to the best matching Unix charset.
@@ -243,7 +249,8 @@ const sal_Char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding( rtl_TextEncodin
@return
The best matching Unix charset string, or null if none matches.
*/
-const sal_Char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding( rtl_TextEncoding eTextEncoding );
+SAL_DLLPUBLIC const sal_Char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding(
+ rtl_TextEncoding eTextEncoding );
/** Map from a Windows code page to a text encoding.
@@ -255,7 +262,7 @@ const sal_Char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding( rtl_TextEncodin
encoding, see rtl_isOctetTextEncoding), or RTL_TEXTENCODING_DONTKNOW if no
mapping is applicable.
*/
-rtl_TextEncoding SAL_CALL
+SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL
rtl_getTextEncodingFromWindowsCodePage(sal_uInt32 nCodePage);
/** Map from a text encoding to a Windows code page.
@@ -267,7 +274,7 @@ rtl_getTextEncodingFromWindowsCodePage(sal_uInt32 nCodePage);
The corresponding Windows code page number, or 0 if no mapping is
applicable.
*/
-sal_uInt32 SAL_CALL
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL
rtl_getWindowsCodePageFromTextEncoding(rtl_TextEncoding nEncoding);
#ifdef __cplusplus
diff --git a/sal/inc/rtl/textcvt.h b/sal/inc/rtl/textcvt.h
index 8968c06f17b5..9ca08db12eea 100644
--- a/sal/inc/rtl/textcvt.h
+++ b/sal/inc/rtl/textcvt.h
@@ -51,23 +51,23 @@ typedef void* rtl_TextToUnicodeContext;
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-rtl_TextToUnicodeConverter SAL_CALL rtl_createTextToUnicodeConverter( rtl_TextEncoding eTextEncoding );
+SAL_DLLPUBLIC rtl_TextToUnicodeConverter SAL_CALL rtl_createTextToUnicodeConverter( rtl_TextEncoding eTextEncoding );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-void SAL_CALL rtl_destroyTextToUnicodeConverter( rtl_TextToUnicodeConverter hConverter );
+SAL_DLLPUBLIC void SAL_CALL rtl_destroyTextToUnicodeConverter( rtl_TextToUnicodeConverter hConverter );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-rtl_TextToUnicodeContext SAL_CALL rtl_createTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter );
+SAL_DLLPUBLIC rtl_TextToUnicodeContext SAL_CALL rtl_createTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-void SAL_CALL rtl_destroyTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext );
+SAL_DLLPUBLIC void SAL_CALL rtl_destroyTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-void SAL_CALL rtl_resetTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext );
+SAL_DLLPUBLIC void SAL_CALL rtl_resetTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext );
#define RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_ERROR ((sal_uInt32)0x0001)
#define RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_IGNORE ((sal_uInt32)0x0002)
@@ -97,7 +97,8 @@ void SAL_CALL rtl_resetTextToUnicodeContext( rtl_TextToUni
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-sal_Size SAL_CALL rtl_convertTextToUnicode( rtl_TextToUnicodeConverter hConverter,
+SAL_DLLPUBLIC sal_Size SAL_CALL rtl_convertTextToUnicode(
+ rtl_TextToUnicodeConverter hConverter,
rtl_TextToUnicodeContext hContext,
const sal_Char* pSrcBuf, sal_Size nSrcBytes,
sal_Unicode* pDestBuf, sal_Size nDestChars,
@@ -114,23 +115,23 @@ typedef void* rtl_UnicodeToTextContext;
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-rtl_UnicodeToTextConverter SAL_CALL rtl_createUnicodeToTextConverter( rtl_TextEncoding eTextEncoding );
+SAL_DLLPUBLIC rtl_UnicodeToTextConverter SAL_CALL rtl_createUnicodeToTextConverter( rtl_TextEncoding eTextEncoding );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-void SAL_CALL rtl_destroyUnicodeToTextConverter( rtl_UnicodeToTextConverter hConverter );
+SAL_DLLPUBLIC void SAL_CALL rtl_destroyUnicodeToTextConverter( rtl_UnicodeToTextConverter hConverter );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-rtl_UnicodeToTextContext SAL_CALL rtl_createUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter );
+SAL_DLLPUBLIC rtl_UnicodeToTextContext SAL_CALL rtl_createUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-void SAL_CALL rtl_destroyUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext );
+SAL_DLLPUBLIC void SAL_CALL rtl_destroyUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext );
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-void SAL_CALL rtl_resetUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext );
+SAL_DLLPUBLIC void SAL_CALL rtl_resetUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext );
#define RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR ((sal_uInt32)0x0001)
#define RTL_UNICODETOTEXT_FLAGS_UNDEFINED_IGNORE ((sal_uInt32)0x0002)
@@ -167,7 +168,8 @@ void SAL_CALL rtl_resetUnicodeToTextContext( rtl_UnicodeTo
/** see http://udk.openoffice.org/cpp/man/spec/textconversion.html
*/
-sal_Size SAL_CALL rtl_convertUnicodeToText( rtl_UnicodeToTextConverter hConverter,
+SAL_DLLPUBLIC sal_Size SAL_CALL rtl_convertUnicodeToText(
+ rtl_UnicodeToTextConverter hConverter,
rtl_UnicodeToTextContext hContext,
const sal_Unicode* pSrcBuf, sal_Size nSrcChars,
sal_Char* pDestBuf, sal_Size nDestBytes,
diff --git a/sal/inc/rtl/unload.h b/sal/inc/rtl/unload.h
index d67afb1ee961..5e70690342b5 100644
--- a/sal/inc/rtl/unload.h
+++ b/sal/inc/rtl/unload.h
@@ -164,7 +164,7 @@ have to bother about registering.
@param module a module handle as is obtained by osl_loadModule
@return sal_True - the module could be registered for unloading, sal_False otherwise
*/
-sal_Bool SAL_CALL rtl_registerModuleForUnloading( oslModule module);
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_registerModuleForUnloading( oslModule module);
/**
The function revokes the registration of a module. By calling the function for
@@ -177,7 +177,7 @@ there is no need to call this function unless one means to prevent the unloading
@param module a module handle as is obtained by osl_loadModule
*/
-void SAL_CALL rtl_unregisterModuleForUnloading( oslModule module);
+SAL_DLLPUBLIC void SAL_CALL rtl_unregisterModuleForUnloading( oslModule module);
/**
This function sets off the unloading mechanism. At first it notifies the
unloading listeners in order to give them a chance to do cleanup and get
@@ -203,7 +203,7 @@ registered listeners and release the references to factories on notification.
@param libUnused span of time that a module must be unused to be unloaded. the
argument is optional.
*/
-void SAL_CALL rtl_unloadUnusedModules( TimeValue* libUnused);
+SAL_DLLPUBLIC void SAL_CALL rtl_unloadUnusedModules( TimeValue* libUnused);
/**
rtl_addUnloadingListener takes an argument of this type.
@@ -225,7 +225,7 @@ as it has been registered.
@param this - a value to distinguish different listener instances
@return identifier which is used in rtl_removeUnloadingListener
*/
-sal_Int32 SAL_CALL rtl_addUnloadingListener( rtl_unloadingListenerFunc callback, void* _this);
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_addUnloadingListener( rtl_unloadingListenerFunc callback, void* _this);
/**
Listeners (the callback functions) must be unregistered before the listener code
@@ -235,7 +235,7 @@ registered when <code>component_canUnload</code> returns <code>sal_True</code>.
@param cookie is an identifier as returned by <code>rtl_addUnloadingListener</code> function.
*/
-void SAL_CALL rtl_removeUnloadingListener( sal_Int32 cookie );
+SAL_DLLPUBLIC void SAL_CALL rtl_removeUnloadingListener( sal_Int32 cookie );
/**
@@ -295,17 +295,17 @@ typedef struct _rtl_StandardModuleCount
/** Default implementation for <code>rtl_ModuleCount.acquire</code>. Use this function along with
<code>rtl_StandardModuleCount</code>.
*/
-void rtl_moduleCount_acquire(rtl_ModuleCount * that );
+SAL_DLLPUBLIC void rtl_moduleCount_acquire(rtl_ModuleCount * that );
/** Default implementation for <code>rtl_ModuleCount.release</code>.
Use this function along with
<code>rtl_StandardModuleCount</code>.
*/
-void rtl_moduleCount_release( rtl_ModuleCount * that );
+SAL_DLLPUBLIC void rtl_moduleCount_release( rtl_ModuleCount * that );
/** Default implementation for <code>component_canUnload</code>. Use this function along with
<code>rtl_StandardModuleCount</code>.
*/
-sal_Bool rtl_moduleCount_canUnload( rtl_StandardModuleCount * that, TimeValue* libUnused);
+SAL_DLLPUBLIC sal_Bool rtl_moduleCount_canUnload( rtl_StandardModuleCount * that, TimeValue* libUnused);
#ifdef __cplusplus
diff --git a/sal/inc/rtl/uri.h b/sal/inc/rtl/uri.h
index 16c7ed592359..d0f5e0009971 100644
--- a/sal/inc/rtl/uri.h
+++ b/sal/inc/rtl/uri.h
@@ -220,7 +220,7 @@ rtl_UriDecodeMechanism;
@return
An array of 128 booleans, to be used in calls to rtl_uriEncode().
*/
-sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass)
+SAL_DLLPUBLIC sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass)
SAL_THROW_EXTERN_C();
/** Encode a text as (part of) a URI.
@@ -257,7 +257,8 @@ sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass)
converted to eCharset because it contains unmappable characters (which
implies that pText is not empty), then an empty string is returned.
*/
-void SAL_CALL rtl_uriEncode(rtl_uString * pText,
+SAL_DLLPUBLIC void SAL_CALL rtl_uriEncode(
+ rtl_uString * pText,
sal_Bool const * pCharClass,
rtl_UriEncodeMechanism eMechanism,
rtl_TextEncoding eCharset,
@@ -294,7 +295,8 @@ void SAL_CALL rtl_uriEncode(rtl_uString * pText,
characters (which implies that pText is not empty), then an empty string is
returned.
*/
-void SAL_CALL rtl_uriDecode(rtl_uString * pText,
+SAL_DLLPUBLIC void SAL_CALL rtl_uriDecode(
+ rtl_uString * pText,
rtl_UriDecodeMechanism eMechanism,
rtl_TextEncoding eCharset,
rtl_uString ** pResult)
@@ -342,7 +344,8 @@ void SAL_CALL rtl_uriDecode(rtl_uString * pText,
@return
True if no exception is signalled, otherwise false.
*/
-sal_Bool SAL_CALL rtl_uriConvertRelToAbs(rtl_uString * pBaseUriRef,
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_uriConvertRelToAbs(
+ rtl_uString * pBaseUriRef,
rtl_uString * pRelUriRef,
rtl_uString ** pResult,
rtl_uString ** pException)
diff --git a/sal/inc/rtl/ustrbuf.h b/sal/inc/rtl/ustrbuf.h
index 8ea5c316e80e..bc73f2a1cd18 100644
--- a/sal/inc/rtl/ustrbuf.h
+++ b/sal/inc/rtl/ustrbuf.h
@@ -47,7 +47,8 @@ extern "C" {
@param value the initial value of the string.
@param count the length of value.
*/
-void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength( rtl_uString ** newStr,
+SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength(
+ rtl_uString ** newStr,
const sal_Unicode * value,
sal_Int32 count );
@@ -66,7 +67,8 @@ void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength( rtl_uString ** newStr,
@param oldStr the initial value of the string.
@return the new capacity of the string buffer
*/
-sal_Int32 SAL_CALL rtl_uStringbuffer_newFromStringBuffer( rtl_uString ** newStr,
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_uStringbuffer_newFromStringBuffer(
+ rtl_uString ** newStr,
sal_Int32 capacity,
rtl_uString * olsStr );
@@ -87,7 +89,8 @@ sal_Int32 SAL_CALL rtl_uStringbuffer_newFromStringBuffer( rtl_uString ** newStr,
@param capacity in: old capicity, out: new capacity.
@param minimumCapacity the minimum desired capacity.
*/
-void SAL_CALL rtl_uStringbuffer_ensureCapacity( /*inout*/rtl_uString ** This,
+SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_ensureCapacity(
+ /*inout*/rtl_uString ** This,
/*inout*/sal_Int32* capacity,
sal_Int32 minimumCapacity);
@@ -106,7 +109,8 @@ void SAL_CALL rtl_uStringbuffer_ensureCapacity( /*inout*/rtl_uString ** This,
@param str a character array.
@param len the number of characters to append.
*/
-void SAL_CALL rtl_uStringbuffer_insert( /*inout*/rtl_uString ** This,
+SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insert(
+ /*inout*/rtl_uString ** This,
/*inout*/sal_Int32 * capacity,
sal_Int32 offset,
const sal_Unicode * str,
@@ -129,7 +133,7 @@ void SAL_CALL rtl_uStringbuffer_insert( /*inout*/rtl_uString ** This,
<code>0</code>&ndash;<code>0x10FFFF</code>, but excluding
<code>0xD800</code>&ndash;<code>0xDFFF</code>)
*/
-void SAL_CALL rtl_uStringbuffer_insertUtf32(
+SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insertUtf32(
rtl_uString ** pThis, sal_Int32 * capacity, sal_Int32 offset, sal_uInt32 c)
SAL_THROW_EXTERN_C();
@@ -153,7 +157,8 @@ void SAL_CALL rtl_uStringbuffer_insertUtf32(
@param str a character array.
@param len the number of characters to append.
*/
-void SAL_CALL rtl_uStringbuffer_insert_ascii( /*inout*/rtl_uString ** This,
+SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insert_ascii(
+ /*inout*/rtl_uString ** This,
/*inout*/sal_Int32 * capacity,
sal_Int32 offset,
const sal_Char * str,
@@ -170,7 +175,8 @@ void SAL_CALL rtl_uStringbuffer_insert_ascii( /*inout*/rtl_uString ** This,
@param start The beginning index, inclusive
@param len The substring length
*/
-void SAL_CALL rtl_uStringbuffer_remove( /*inout*/rtl_uString ** This,
+SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_remove(
+ /*inout*/rtl_uString ** This,
sal_Int32 start,
sal_Int32 len );
diff --git a/sal/inc/rtl/ustring.h b/sal/inc/rtl/ustring.h
index 062070dadffc..c77b343d1d23 100644
--- a/sal/inc/rtl/ustring.h
+++ b/sal/inc/rtl/ustring.h
@@ -52,7 +52,8 @@ extern "C" {
the length of the sequence of characters represented by this string,
excluding the terminating NUL character.
*/
-sal_Int32 SAL_CALL rtl_ustr_getLength( const sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_getLength(
+ const sal_Unicode * str ) SAL_THROW_EXTERN_C();
/** Compare two strings.
@@ -72,7 +73,8 @@ sal_Int32 SAL_CALL rtl_ustr_getLength( const sal_Unicode * str ) SAL_THROW_EXTER
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_compare( const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compare(
+ const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C();
/** Compare two strings.
@@ -99,7 +101,8 @@ sal_Int32 SAL_CALL rtl_ustr_compare( const sal_Unicode * first, const sal_Unicod
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_compare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compare_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
/** Compare two strings with a maximum count of characters.
@@ -130,7 +133,8 @@ sal_Int32 SAL_CALL rtl_ustr_compare_WithLength( const sal_Unicode * first, sal_I
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
/** Compare two strings from back to front.
@@ -157,7 +161,8 @@ sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength( const sal_Unicode * fir
compares less than the second string, and a value greater than 0 if the
first string compares greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_reverseCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_reverseCompare_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
/** Compare two strings from back to front for equality.
@@ -180,7 +185,8 @@ sal_Int32 SAL_CALL rtl_ustr_reverseCompare_WithLength( const sal_Unicode * first
true if both strings are equal, false if they are not equal.
*/
-sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( const sal_Unicode * first, const sal_Char * second, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength(
+ const sal_Unicode * first, const sal_Char * second, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Compare two strings, ignoring the case of ASCII characters.
@@ -201,7 +207,8 @@ sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( const sal_Unicode *
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase( const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase(
+ const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C();
/** Compare two strings, ignoring the case of ASCII characters.
@@ -230,7 +237,8 @@ sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase( const sal_Unicode * first, c
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
/** Compare two strings with a maximum count of characters, ignoring the case
of ASCII characters.
@@ -264,7 +272,8 @@ sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength( const sal_Unicode
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
/** Compare two strings.
@@ -289,7 +298,8 @@ sal_Int32 SAL_CALL rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength( const sa
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_ustr_ascii_compare( const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compare(
+ const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
/** Compare two strings.
@@ -317,7 +327,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compare( const sal_Unicode * first, const sal_
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C();
/** Compare two strings with a maximum count of characters.
@@ -349,7 +360,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( const sal_Unicode * first,
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
/** Compare two strings from back to front.
@@ -380,7 +392,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength( const sal_Unicode
compares less than the second string, and a value greater than 0 if the
first string compares greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C();
/** Compare two strings, ignoring the case of ASCII characters.
@@ -406,7 +419,8 @@ sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength( const sal_Unicode
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase(
+ const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C();
/** Compare two strings, ignoring the case of ASCII characters.
@@ -436,7 +450,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( const sal_Unicode * fi
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C();
/** Compare two strings, ignoring the case of ASCII characters.
@@ -469,7 +484,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_U
less than the second string, and a value greater than 0 if the first
string is greater than the second string.
*/
-sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths(
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths(
sal_Unicode const * first, sal_Int32 firstLen,
char const * second, sal_Int32 secondLen) SAL_THROW_EXTERN_C();
@@ -506,7 +521,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths(
is less than the second substring, and a value greater than 0 if the first
substring is greater than the second substring.
*/
-sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
+ const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C();
/** Return a hash code for a string.
@@ -520,7 +536,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( co
@return
a hash code for the given string.
*/
-sal_Int32 SAL_CALL rtl_ustr_hashCode( const sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_hashCode(
+ const sal_Unicode * str ) SAL_THROW_EXTERN_C();
/** Return a hash code for a string.
@@ -537,7 +554,8 @@ sal_Int32 SAL_CALL rtl_ustr_hashCode( const sal_Unicode * str ) SAL_THROW_EXTERN
@return
a hash code for the given string.
*/
-sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength( const sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength(
+ const sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a character within a string.
@@ -553,7 +571,8 @@ sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength( const sal_Unicode * str, sal_In
the index (starting at 0) of the first occurrence of the character in the
string, or -1 if the character does not occur.
*/
-sal_Int32 SAL_CALL rtl_ustr_indexOfChar( const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfChar(
+ const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a character within a string.
@@ -571,7 +590,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfChar( const sal_Unicode * str, sal_Unicode ch
the index (starting at 0) of the first occurrence of the character in the
string, or -1 if the character does not occur.
*/
-sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength( const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength(
+ const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of a character within a string.
@@ -588,7 +608,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength( const sal_Unicode * str, sal
string, or -1 if the character does not occur. The returned value is
always smaller than the string length.
*/
-sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar( const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar(
+ const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of a character within a string.
@@ -607,7 +628,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar( const sal_Unicode * str, sal_Unicod
string, or -1 if the character does not occur. The returned value is
always smaller than the string length.
*/
-sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength( const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength(
+ const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a substring within a string.
@@ -624,7 +646,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength( const sal_Unicode * str,
the index (starting at 0) of the first character of the first occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_ustr_indexOfStr( const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfStr(
+ const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of a substring within a string.
@@ -648,7 +671,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfStr( const sal_Unicode * str, const sal_Unico
the index (starting at 0) of the first character of the first occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_ustr_indexOfStr_WithLength( const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfStr_WithLength(
+ const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
/** Search for the first occurrence of an ASCII substring within a string.
@@ -674,7 +698,7 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfStr_WithLength( const sal_Unicode * str, sal_
@since UDK 3.2.7
*/
-sal_Int32 SAL_CALL rtl_ustr_indexOfAscii_WithLength(
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfAscii_WithLength(
sal_Unicode const * str, sal_Int32 len,
char const * subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C();
@@ -693,7 +717,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfAscii_WithLength(
the index (starting at 0) of the first character of the last occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr( const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr(
+ const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of a substring within a string.
@@ -717,7 +742,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr( const sal_Unicode * str, const sal_U
the index (starting at 0) of the first character of the first occurrence
of the substring within the string, or -1 if the substring does not occur.
*/
-sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr_WithLength( const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr_WithLength(
+ const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C();
/** Search for the last occurrence of an ASCII substring within a string.
@@ -743,7 +769,7 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr_WithLength( const sal_Unicode * str,
@since UDK 3.2.7
*/
-sal_Int32 SAL_CALL rtl_ustr_lastIndexOfAscii_WithLength(
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfAscii_WithLength(
sal_Unicode const * str, sal_Int32 len,
char const * subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C();
@@ -761,7 +787,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfAscii_WithLength(
@param newChar
the new character.
*/
-void SAL_CALL rtl_ustr_replaceChar( sal_Unicode * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_ustr_replaceChar(
+ sal_Unicode * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C();
/** Replace all occurrences of a single character within a string.
@@ -780,7 +807,8 @@ void SAL_CALL rtl_ustr_replaceChar( sal_Unicode * str, sal_Unicode oldChar, sal_
@param newChar
the new character.
*/
-void SAL_CALL rtl_ustr_replaceChar_WithLength( sal_Unicode * str, sal_Int32 len, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_ustr_replaceChar_WithLength(
+ sal_Unicode * str, sal_Int32 len, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C();
/** Convert all ASCII uppercase letters to lowercase within a string.
@@ -791,7 +819,8 @@ void SAL_CALL rtl_ustr_replaceChar_WithLength( sal_Unicode * str, sal_Int32 len,
@param str
a null-terminated string.
*/
-void SAL_CALL rtl_ustr_toAsciiLowerCase( sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiLowerCase(
+ sal_Unicode * str ) SAL_THROW_EXTERN_C();
/** Convert all ASCII uppercase letters to lowercase within a string.
@@ -805,7 +834,8 @@ void SAL_CALL rtl_ustr_toAsciiLowerCase( sal_Unicode * str ) SAL_THROW_EXTERN_C(
@param len
the length of the string.
*/
-void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength(
+ sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Convert all ASCII lowercase letters to uppercase within a string.
@@ -816,7 +846,8 @@ void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength( sal_Unicode * str, sal_Int32
@param str
a null-terminated string.
*/
-void SAL_CALL rtl_ustr_toAsciiUpperCase( sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiUpperCase(
+ sal_Unicode * str ) SAL_THROW_EXTERN_C();
/** Convert all ASCII lowercase letters to uppercase within a string.
@@ -830,7 +861,8 @@ void SAL_CALL rtl_ustr_toAsciiUpperCase( sal_Unicode * str ) SAL_THROW_EXTERN_C(
@param len
the length of the string.
*/
-void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength(
+ sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Remove white space from both ends of a string.
@@ -844,7 +876,8 @@ void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength( sal_Unicode * str, sal_Int32
@return
the new length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_trim( sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_trim(
+ sal_Unicode * str ) SAL_THROW_EXTERN_C();
/** Remove white space from both ends of the string.
@@ -862,7 +895,8 @@ sal_Int32 SAL_CALL rtl_ustr_trim( sal_Unicode * str ) SAL_THROW_EXTERN_C();
@return
the new length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_trim_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_trim_WithLength(
+ sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Create the string representation of a boolean.
@@ -882,7 +916,8 @@ sal_Int32 SAL_CALL rtl_ustr_trim_WithLength( sal_Unicode * str, sal_Int32 len )
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean( sal_Unicode * str, sal_Bool b ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean(
+ sal_Unicode * str, sal_Bool b ) SAL_THROW_EXTERN_C();
#define RTL_USTR_MAX_VALUEOFBOOLEAN RTL_STR_MAX_VALUEOFBOOLEAN
/** Create the string representation of a character.
@@ -898,7 +933,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean( sal_Unicode * str, sal_Bool b ) SAL_
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_valueOfChar( sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfChar(
+ sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C();
#define RTL_USTR_MAX_VALUEOFCHAR RTL_STR_MAX_VALUEOFCHAR
/** Create the string representation of an integer.
@@ -920,7 +956,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfChar( sal_Unicode * str, sal_Unicode ch ) SAL
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_valueOfInt32( sal_Unicode * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfInt32(
+ sal_Unicode * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C();
#define RTL_USTR_MIN_RADIX RTL_STR_MIN_RADIX
#define RTL_USTR_MAX_RADIX RTL_STR_MAX_RADIX
#define RTL_USTR_MAX_VALUEOFINT32 RTL_STR_MAX_VALUEOFINT32
@@ -944,7 +981,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfInt32( sal_Unicode * str, sal_Int32 i, sal_In
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_valueOfInt64( sal_Unicode * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfInt64(
+ sal_Unicode * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C();
#define RTL_USTR_MAX_VALUEOFINT64 RTL_STR_MAX_VALUEOFINT64
/** Create the string representation of a float.
@@ -962,7 +1000,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfInt64( sal_Unicode * str, sal_Int64 l, sal_In
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_valueOfFloat( sal_Unicode * str, float f ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfFloat(
+ sal_Unicode * str, float f ) SAL_THROW_EXTERN_C();
#define RTL_USTR_MAX_VALUEOFFLOAT RTL_STR_MAX_VALUEOFFLOAT
/** Create the string representation of a double.
@@ -980,7 +1019,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfFloat( sal_Unicode * str, float f ) SAL_THROW
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_ustr_valueOfDouble( sal_Unicode * str, double d ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfDouble(
+ sal_Unicode * str, double d ) SAL_THROW_EXTERN_C();
#define RTL_USTR_MAX_VALUEOFDOUBLE RTL_STR_MAX_VALUEOFDOUBLE
/** Interpret a string as a boolean.
@@ -994,7 +1034,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfDouble( sal_Unicode * str, double d ) SAL_THR
@return
true if the string is "1" or "true" in any ASCII case, false otherwise.
*/
-sal_Bool SAL_CALL rtl_ustr_toBoolean( const sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_ustr_toBoolean(
+ const sal_Unicode * str ) SAL_THROW_EXTERN_C();
/** Interpret a string as an integer.
@@ -1012,7 +1053,8 @@ sal_Bool SAL_CALL rtl_ustr_toBoolean( const sal_Unicode * str ) SAL_THROW_EXTERN
the integer value represented by the string, or 0 if the string does not
represent an integer.
*/
-sal_Int32 SAL_CALL rtl_ustr_toInt32( const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_toInt32(
+ const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
/** Interpret a string as a long integer.
@@ -1030,7 +1072,8 @@ sal_Int32 SAL_CALL rtl_ustr_toInt32( const sal_Unicode * str, sal_Int16 radix )
the long integer value represented by the string, or 0 if the string does
not represent a long integer.
*/
-sal_Int64 SAL_CALL rtl_ustr_toInt64( const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_ustr_toInt64(
+ const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C();
/** Interpret a string as a float.
@@ -1044,7 +1087,8 @@ sal_Int64 SAL_CALL rtl_ustr_toInt64( const sal_Unicode * str, sal_Int16 radix )
the float value represented by the string, or 0.0 if the string does not
represent a float.
*/
-float SAL_CALL rtl_ustr_toFloat( const sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC float SAL_CALL rtl_ustr_toFloat(
+ const sal_Unicode * str ) SAL_THROW_EXTERN_C();
/** Interpret a string as a double.
@@ -1058,7 +1102,8 @@ float SAL_CALL rtl_ustr_toFloat( const sal_Unicode * str ) SAL_THROW_EXTERN_C();
the float value represented by the string, or 0.0 if the string does not
represent a double.
*/
-double SAL_CALL rtl_ustr_toDouble( const sal_Unicode * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC double SAL_CALL rtl_ustr_toDouble(
+ const sal_Unicode * str ) SAL_THROW_EXTERN_C();
/* ======================================================================= */
@@ -1088,7 +1133,8 @@ typedef struct _rtl_uString
@param str
a string.
*/
-void SAL_CALL rtl_uString_acquire( rtl_uString * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_acquire(
+ rtl_uString * str ) SAL_THROW_EXTERN_C();
/** Decrement the reference count of a string.
@@ -1097,7 +1143,8 @@ void SAL_CALL rtl_uString_acquire( rtl_uString * str ) SAL_THROW_EXTERN_C();
@param str
a string.
*/
-void SAL_CALL rtl_uString_release( rtl_uString * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_release(
+ rtl_uString * str ) SAL_THROW_EXTERN_C();
/** Allocate a new string containing no characters.
@@ -1105,7 +1152,8 @@ void SAL_CALL rtl_uString_release( rtl_uString * str ) SAL_THROW_EXTERN_C();
pointer to the new string. The pointed-to data must be null or a valid
string.
*/
-void SAL_CALL rtl_uString_new( rtl_uString ** newStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_new(
+ rtl_uString ** newStr ) SAL_THROW_EXTERN_C();
/** Allocate a new string containing space for a given number of characters.
@@ -1120,7 +1168,8 @@ void SAL_CALL rtl_uString_new( rtl_uString ** newStr ) SAL_THROW_EXTERN_C();
@param len
the number of characters.
*/
-void SAL_CALL rtl_uString_new_WithLength( rtl_uString ** newStr, sal_Int32 nLen ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_new_WithLength(
+ rtl_uString ** newStr, sal_Int32 nLen ) SAL_THROW_EXTERN_C();
/** Allocate a new string that contains a copy of another string.
@@ -1135,7 +1184,8 @@ void SAL_CALL rtl_uString_new_WithLength( rtl_uString ** newStr, sal_Int32 nLen
@param value
a valid string.
*/
-void SAL_CALL rtl_uString_newFromString( rtl_uString ** newStr, const rtl_uString * value ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromString(
+ rtl_uString ** newStr, const rtl_uString * value ) SAL_THROW_EXTERN_C();
/** Allocate a new string that contains a copy of a character array.
@@ -1150,7 +1200,8 @@ void SAL_CALL rtl_uString_newFromString( rtl_uString ** newStr, const rtl_uStrin
@param value
a null-terminated character array.
*/
-void SAL_CALL rtl_uString_newFromStr( rtl_uString ** newStr, const sal_Unicode * value ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromStr(
+ rtl_uString ** newStr, const sal_Unicode * value ) SAL_THROW_EXTERN_C();
/** Allocate a new string that contains a copy of a character array.
@@ -1169,7 +1220,8 @@ void SAL_CALL rtl_uString_newFromStr( rtl_uString ** newStr, const sal_Unicode *
@param len
the length of the character array.
*/
-void SAL_CALL rtl_uString_newFromStr_WithLength( rtl_uString ** newStr, const sal_Unicode * value, sal_Int32 len ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromStr_WithLength(
+ rtl_uString ** newStr, const sal_Unicode * value, sal_Int32 len ) SAL_THROW_EXTERN_C();
/** Allocate a new string that contains a copy of a character array.
@@ -1188,7 +1240,8 @@ void SAL_CALL rtl_uString_newFromStr_WithLength( rtl_uString ** newStr, const sa
@param value
a null-terminated ASCII character array.
*/
-void SAL_CALL rtl_uString_newFromAscii( rtl_uString ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromAscii(
+ rtl_uString ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C();
/** Allocate a new string from an array of Unicode code points.
@@ -1209,7 +1262,7 @@ void SAL_CALL rtl_uString_newFromAscii( rtl_uString ** newStr, const sal_Char *
@since UDK 3.2.7
*/
-void SAL_CALL rtl_uString_newFromCodePoints(
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromCodePoints(
rtl_uString ** newString, sal_uInt32 const * codePoints,
sal_Int32 codePointCount) SAL_THROW_EXTERN_C();
@@ -1225,7 +1278,8 @@ void SAL_CALL rtl_uString_newFromCodePoints(
@param rightValue
a valid string.
*/
-void SAL_CALL rtl_uString_assign( rtl_uString ** str, rtl_uString * rightValue ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_assign(
+ rtl_uString ** str, rtl_uString * rightValue ) SAL_THROW_EXTERN_C();
/** Return the length of a string.
@@ -1237,7 +1291,8 @@ void SAL_CALL rtl_uString_assign( rtl_uString ** str, rtl_uString * rightValue )
@return
the length of the string.
*/
-sal_Int32 SAL_CALL rtl_uString_getLength( const rtl_uString * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_uString_getLength(
+ const rtl_uString * str ) SAL_THROW_EXTERN_C();
/** Return a pointer to the underlying character array of a string.
@@ -1247,7 +1302,8 @@ sal_Int32 SAL_CALL rtl_uString_getLength( const rtl_uString * str ) SAL_THROW_EX
@return
a pointer to the null-terminated character array.
*/
-sal_Unicode * SAL_CALL rtl_uString_getStr( rtl_uString * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Unicode * SAL_CALL rtl_uString_getStr(
+ rtl_uString * str ) SAL_THROW_EXTERN_C();
/** Create a new string that is the concatenation of two other strings.
@@ -1266,7 +1322,8 @@ sal_Unicode * SAL_CALL rtl_uString_getStr( rtl_uString * str ) SAL_THROW_EXTERN_
@param right
a valid string.
*/
-void SAL_CALL rtl_uString_newConcat( rtl_uString ** newStr, rtl_uString * left, rtl_uString * right ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newConcat(
+ rtl_uString ** newStr, rtl_uString * left, rtl_uString * right ) SAL_THROW_EXTERN_C();
/** Create a new string by replacing a substring of another string.
@@ -1297,7 +1354,8 @@ void SAL_CALL rtl_uString_newConcat( rtl_uString ** newStr, rtl_uString * left,
@param subStr
either null or a valid string to be inserted.
*/
-void SAL_CALL rtl_uString_newReplaceStrAt( rtl_uString ** newStr, rtl_uString * str, sal_Int32 idx, sal_Int32 count, rtl_uString * subStr ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newReplaceStrAt(
+ rtl_uString ** newStr, rtl_uString * str, sal_Int32 idx, sal_Int32 count, rtl_uString * subStr ) SAL_THROW_EXTERN_C();
/** Create a new string by replacing all occurrences of a single character
within another string.
@@ -1323,7 +1381,8 @@ void SAL_CALL rtl_uString_newReplaceStrAt( rtl_uString ** newStr, rtl_uString *
@param newChar
the new character.
*/
-void SAL_CALL rtl_uString_newReplace( rtl_uString ** newStr, rtl_uString * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newReplace(
+ rtl_uString ** newStr, rtl_uString * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C();
/** Create a new string by converting all ASCII uppercase letters to lowercase
within another string.
@@ -1344,7 +1403,8 @@ void SAL_CALL rtl_uString_newReplace( rtl_uString ** newStr, rtl_uString * str,
@param str
a valid string.
*/
-void SAL_CALL rtl_uString_newToAsciiLowerCase( rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newToAsciiLowerCase(
+ rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C();
/** Create a new string by converting all ASCII lowercase letters to uppercase
within another string.
@@ -1365,7 +1425,8 @@ void SAL_CALL rtl_uString_newToAsciiLowerCase( rtl_uString ** newStr, rtl_uStrin
@param str
a valid string.
*/
-void SAL_CALL rtl_uString_newToAsciiUpperCase( rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newToAsciiUpperCase(
+ rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C();
/** Create a new string by removing white space from both ends of another
string.
@@ -1386,7 +1447,8 @@ void SAL_CALL rtl_uString_newToAsciiUpperCase( rtl_uString ** newStr, rtl_uStrin
@param str
a valid string.
*/
-void SAL_CALL rtl_uString_newTrim( rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_newTrim(
+ rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C();
/** Create a new string by extracting a single token from another string.
@@ -1432,7 +1494,8 @@ void SAL_CALL rtl_uString_newTrim( rtl_uString ** newStr, rtl_uString * str ) SA
@return
the index of the next token, or -1 if no more tokens follow.
*/
-sal_Int32 SAL_CALL rtl_uString_getToken( rtl_uString ** newStr , rtl_uString * str, sal_Int32 token, sal_Unicode cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_uString_getToken(
+ rtl_uString ** newStr , rtl_uString * str, sal_Int32 token, sal_Unicode cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C();
/* ======================================================================= */
@@ -1492,7 +1555,8 @@ sal_Int32 SAL_CALL rtl_uString_getToken( rtl_uString ** newStr , rtl_uString * s
<http://udk.openoffice.org/cpp/man/spec/textconversion.html> for more
details.
*/
-void SAL_CALL rtl_string2UString( rtl_uString ** newStr, const sal_Char * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_string2UString(
+ rtl_uString ** newStr, const sal_Char * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C();
/* ======================================================================= */
/* Interning methods */
@@ -1516,8 +1580,8 @@ void SAL_CALL rtl_string2UString( rtl_uString ** newStr, const sal_Char * str, s
@since UDK 3.2.7
*/
-void SAL_CALL rtl_uString_intern( rtl_uString ** newStr,
- rtl_uString * str) SAL_THROW_EXTERN_C();
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_intern(
+ rtl_uString ** newStr, rtl_uString * str) SAL_THROW_EXTERN_C();
/** Return a canonical representation for a string.
@@ -1554,7 +1618,8 @@ void SAL_CALL rtl_uString_intern( rtl_uString ** newStr,
@since UDK 3.2.7
*/
-void SAL_CALL rtl_uString_internConvert( rtl_uString ** newStr,
+SAL_DLLPUBLIC void SAL_CALL rtl_uString_internConvert(
+ rtl_uString ** newStr,
const sal_Char * str,
sal_Int32 len,
rtl_TextEncoding encoding,
@@ -1613,7 +1678,7 @@ void SAL_CALL rtl_uString_internConvert( rtl_uString ** newStr,
@since UDK 3.2.7
*/
-sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
+SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
rtl_uString const * string, sal_Int32 * indexUtf16,
sal_Int32 incrementCodePoints);
@@ -1650,7 +1715,7 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
@since UDK 3.2.9
*/
-sal_Bool SAL_CALL rtl_convertStringToUString(
+SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_convertStringToUString(
rtl_uString ** target, char const * source, sal_Int32 length,
rtl_TextEncoding encoding, sal_uInt32 flags) SAL_THROW_EXTERN_C();
diff --git a/sal/inc/rtl/uuid.h b/sal/inc/rtl/uuid.h
index ed0180a88985..0c78e6833d07 100644
--- a/sal/inc/rtl/uuid.h
+++ b/sal/inc/rtl/uuid.h
@@ -65,7 +65,8 @@ extern "C" {
@param bUseEthernetAddress ignored (was used when this function returned
Version 1 instead of Version 4 UUIDs).
*/
-void SAL_CALL rtl_createUuid( sal_uInt8 *pTargetUUID ,
+SAL_DLLPUBLIC void SAL_CALL rtl_createUuid(
+ sal_uInt8 *pTargetUUID,
const sal_uInt8 *pPredecessorUUID,
sal_Bool bUseEthernetAddress );
@@ -84,7 +85,8 @@ void SAL_CALL rtl_createUuid( sal_uInt8 *pTargetUUID ,
</ul>
*/
-sal_Int32 SAL_CALL rtl_compareUuid( const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 );
+SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareUuid(
+ const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 );
/** Creates named UUIDs.
@@ -121,7 +123,7 @@ sal_Int32 SAL_CALL rtl_compareUuid( const sal_uInt8 *pUUID1 , const sal_uInt8 *p
@param pName the name
*/
-void SAL_CALL rtl_createNamedUuid(
+SAL_DLLPUBLIC void SAL_CALL rtl_createNamedUuid(
sal_uInt8 *pTargetUUID,
const sal_uInt8 *pNameSpaceUUID,
const rtl_String *pName
diff --git a/sal/inc/sal/detail/log.h b/sal/inc/sal/detail/log.h
index 8fc5776ce71e..74292b76a3ee 100644
--- a/sal/inc/sal/detail/log.h
+++ b/sal/inc/sal/detail/log.h
@@ -63,7 +63,7 @@ enum sal_detail_LogLevel {
SAL_DETAIL_MAKE_FIXED_SIZE = SAL_MAX_ENUM
};
-void SAL_CALL sal_detail_logFormat(
+SAL_DLLPUBLIC void SAL_CALL sal_detail_logFormat(
enum sal_detail_LogLevel level, char const * area, char const * where,
char const * format, ...)
/* TODO: enabling this will produce a huge amount of -Werror=format errors: */
diff --git a/sal/inc/sal/log.hxx b/sal/inc/sal/log.hxx
index 93b00fd6b787..918d9d6441b5 100644
--- a/sal/inc/sal/log.hxx
+++ b/sal/inc/sal/log.hxx
@@ -44,7 +44,7 @@
// recursion.
/// @internal
-extern "C" void SAL_CALL sal_detail_log(
+extern "C" SAL_DLLPUBLIC void SAL_CALL sal_detail_log(
enum sal_detail_LogLevel level, char const * area, char const * where,
char const * message);
diff --git a/sal/inc/sal/main.h b/sal/inc/sal/main.h
index c547a07c163a..f44a2002d2ac 100644
--- a/sal/inc/sal/main.h
+++ b/sal/inc/sal/main.h
@@ -38,8 +38,8 @@
extern "C" {
#endif
-void SAL_CALL sal_detail_initialize(int argc, char ** argv);
-void SAL_CALL sal_detail_deinitialize();
+SAL_DLLPUBLIC void SAL_CALL sal_detail_initialize(int argc, char ** argv);
+SAL_DLLPUBLIC void SAL_CALL sal_detail_deinitialize();
#ifdef IOS
diff --git a/sal/inc/sal/saldllapi.h b/sal/inc/sal/saldllapi.h
new file mode 100644
index 000000000000..a3de15feb899
--- /dev/null
+++ b/sal/inc/sal/saldllapi.h
@@ -0,0 +1,15 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+#ifndef INCLUDED_SALDLLAPI_H
+#define INCLUDED_SALDLLAPI_H
+
+#include "sal/types.h"
+
+#if defined(SAL_DLLIMPLEMENTATION)
+#define SAL_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
+#else
+#define SAL_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
+#endif
+
+#endif /* INCLUDED_SALDLLAPI_H */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h
index 2dc3eaa4f23b..fa3a9d70242c 100644
--- a/sal/inc/sal/types.h
+++ b/sal/inc/sal/types.h
@@ -300,6 +300,8 @@ typedef void * sal_Handle;
#define SAL_EXCEPTION_DLLPRIVATE
#endif
+#include <sal/saldllapi.h>
+
/** Use this as markup for functions and methods whose return value must be
checked.