diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:38:03 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:38:03 +0000 |
commit | 5f602cd5018b4fb2bd546a44c42a34c8d7df36e2 (patch) | |
tree | 2cf888061d3e922f7dfef965c3c7855c08c1ce88 /bridges/inc | |
parent | 1756efcc0cb361258416cfc081c8ff6228424797 (diff) |
INTEGRATION: CWS warnings01 (1.2.100); FILE MERGED
2005/09/22 18:04:56 sb 1.2.100.2: RESYNC: (1.2-1.3); FILE MERGED
2005/09/09 12:37:19 sb 1.2.100.1: #i53898# Made code warning-free.
Diffstat (limited to 'bridges/inc')
-rw-r--r-- | bridges/inc/bridges/cpp_uno/shared/bridge.hxx | 53 |
1 files changed, 40 insertions, 13 deletions
diff --git a/bridges/inc/bridges/cpp_uno/shared/bridge.hxx b/bridges/inc/bridges/cpp_uno/shared/bridge.hxx index d485c9903b37..1677ced3d84b 100644 --- a/bridges/inc/bridges/cpp_uno/shared/bridge.hxx +++ b/bridges/inc/bridges/cpp_uno/shared/bridge.hxx @@ -4,9 +4,9 @@ * * $RCSfile: bridge.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2005-09-07 22:09:18 $ + * last change: $Author: hr $ $Date: 2006-06-19 23:38:03 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -44,6 +44,30 @@ namespace bridges { namespace cpp_uno { namespace shared { +// private: +extern "C" typedef void SAL_CALL FreeMapping(uno_Mapping *); +FreeMapping freeMapping; + +// private: +extern "C" +typedef void SAL_CALL AcquireMapping(uno_Mapping *); +AcquireMapping acquireMapping; + +// private: +extern "C" +typedef void SAL_CALL ReleaseMapping(uno_Mapping *); +ReleaseMapping releaseMapping; + +// private: +extern "C" typedef void SAL_CALL Cpp2unoMapping( + uno_Mapping *, void **, void *, typelib_InterfaceTypeDescription *); +Cpp2unoMapping cpp2unoMapping; + +// private: +extern "C" typedef void SAL_CALL Uno2cppMapping( + uno_Mapping *, void **, void *, typelib_InterfaceTypeDescription *); +Uno2cppMapping uno2cppMapping; + /** * Holding environments and mappings. */ @@ -55,8 +79,6 @@ public: uno_ExtEnvironment * pCppEnv, uno_ExtEnvironment * pUnoEnv, bool bExportCpp2Uno) SAL_THROW(()); - static void SAL_CALL freeMapping(uno_Mapping * pMapping) SAL_THROW(()); - // Interface for Cpp/UnoInterfaceProxy: void acquire() SAL_THROW(()); @@ -84,15 +106,6 @@ private: Bridge * pBridge; }; - static void SAL_CALL acquireMapping(uno_Mapping * pMapping) SAL_THROW(()); - static void SAL_CALL releaseMapping(uno_Mapping * pMapping) SAL_THROW(()); - static void SAL_CALL cpp2unoMapping( - uno_Mapping * pMapping, void ** ppUnoI, void * pCppI, - typelib_InterfaceTypeDescription * pTypeDescr) SAL_THROW(()); - static void SAL_CALL uno2cppMapping( - uno_Mapping * pMapping, void ** ppCppI, void * pUnoI, - typelib_InterfaceTypeDescription * pTypeDescr) SAL_THROW(()); - oslInterlockedCount nRef; uno_ExtEnvironment * pCppEnv; @@ -102,6 +115,20 @@ private: Mapping aUno2Cpp; bool bExportCpp2Uno; + + friend void SAL_CALL freeMapping(uno_Mapping * pMapping); + + friend void SAL_CALL acquireMapping(uno_Mapping * pMapping); + + friend void SAL_CALL releaseMapping(uno_Mapping * pMapping); + + friend void SAL_CALL cpp2unoMapping( + uno_Mapping * pMapping, void ** ppUnoI, void * pCppI, + typelib_InterfaceTypeDescription * pTypeDescr); + + friend void SAL_CALL uno2cppMapping( + uno_Mapping * pMapping, void ** ppCppI, void * pUnoI, + typelib_InterfaceTypeDescription * pTypeDescr); }; } } } |