diff options
author | Joachim Lingner <jl@openoffice.org> | 2001-04-19 14:20:49 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2001-04-19 14:20:49 +0000 |
commit | 5df33b4c5a415007b6cff324fd5b6bbbac717b7e (patch) | |
tree | 93be61008eb68cf379b07bfc8dffe99b1358b925 /salhelper/test | |
parent | 69995796449e513800199ec319d82a46e8eee44b (diff) |
lib for test with dynamic loader
Diffstat (limited to 'salhelper/test')
-rw-r--r-- | salhelper/test/Symbols/samplelib.cxx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/salhelper/test/Symbols/samplelib.cxx b/salhelper/test/Symbols/samplelib.cxx new file mode 100644 index 000000000000..f4809f51fd2e --- /dev/null +++ b/salhelper/test/Symbols/samplelib.cxx @@ -0,0 +1,37 @@ +#include "samplelib.hxx" +#include <sal/types.h> +/* + + +*/ + +extern "C" +SampleLib_Api* SAL_CALL initSampleLibApi(void) +{ + static SampleLib_Api aApi= {0,0}; + if (!aApi.funcA) + { + aApi.funcA= &funcA; + aApi.funcB= &funcB; + return (&aApi); + } + else + { + return (&aApi); + } + +} + + +sal_Int32 SAL_CALL funcA( sal_Int32 a) +{ + return a; +} + + +double SAL_CALL funcB( double a) +{ + return a; +} + + |