summaryrefslogtreecommitdiff
path: root/salhelper/test/Symbols/samplelib.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'salhelper/test/Symbols/samplelib.cxx')
-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;
+}
+
+