diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-02-28 09:35:45 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-02-28 09:35:45 +0000 |
commit | d46018564fa60a348afa0524229529dae44be9b2 (patch) | |
tree | 7432e6661befa17971b142ef0900618718bc4259 | |
parent | 790df2281ae76deb48ea57611c178f2a6838be7b (diff) |
INTEGRATION: CWS gslpatches07 (1.7.66); FILE MERGED
2006/02/14 15:23:31 fs 1.7.66.1: #i52747# +osl_setDetailedDebugMessageFunc
-rw-r--r-- | sal/inc/osl/diagnose.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/sal/inc/osl/diagnose.h b/sal/inc/osl/diagnose.h index 7d0a7bef2f17..e79584432682 100644 --- a/sal/inc/osl/diagnose.h +++ b/sal/inc/osl/diagnose.h @@ -4,9 +4,9 @@ * * $RCSfile: diagnose.h,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2005-09-08 14:26:39 $ + * last change: $Author: kz $ $Date: 2006-02-28 10:35:45 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -58,10 +58,29 @@ sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszErrorM For message delivery */ +/** a message delivery function which receives a pre-formatted message string +*/ typedef void (SAL_CALL *pfunc_osl_printDebugMessage)( const sal_Char * pszMessage ); +/** a message delivery function which receives detailed information about where the message was triggered +*/ +typedef void (SAL_CALL *pfunc_osl_printDetailedDebugMessage)( const sal_Char * pszFileName, sal_Int32 nLine, const sal_Char* pszMessage ); + +/** sets a message delivery function + + The function set here is ignored if a function for detailed message information + (pfunc_osl_printDetailedDebugMessage) has been set. + + The given message handler must be able to cope with a <NULL/> message. +*/ 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 ); + #ifdef __cplusplus } #endif |