summaryrefslogtreecommitdiff
path: root/salhelper
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2001-04-19 14:20:49 +0000
committerJoachim Lingner <jl@openoffice.org>2001-04-19 14:20:49 +0000
commit5df33b4c5a415007b6cff324fd5b6bbbac717b7e (patch)
tree93be61008eb68cf379b07bfc8dffe99b1358b925 /salhelper
parent69995796449e513800199ec319d82a46e8eee44b (diff)
lib for test with dynamic loader
Diffstat (limited to 'salhelper')
-rw-r--r--salhelper/test/Symbols/samplelib.cxx37
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;
+}
+
+