summaryrefslogtreecommitdiff
path: root/salhelper/test/Symbols/samplelib.cxx
blob: f4809f51fd2e28571eee10ef39434d4a253a465e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
}