1*cdf0e10cSrcweir #include "samplelib.hxx"
2*cdf0e10cSrcweir #include <sal/types.h>
3*cdf0e10cSrcweir /*
4*cdf0e10cSrcweir 
5*cdf0e10cSrcweir 
6*cdf0e10cSrcweir */
7*cdf0e10cSrcweir 
8*cdf0e10cSrcweir extern "C"
9*cdf0e10cSrcweir SampleLib_Api* SAL_CALL initSampleLibApi(void)
10*cdf0e10cSrcweir {
11*cdf0e10cSrcweir 	static SampleLib_Api aApi= {0,0};
12*cdf0e10cSrcweir     if (!aApi.funcA)
13*cdf0e10cSrcweir     {
14*cdf0e10cSrcweir         aApi.funcA= &funcA;
15*cdf0e10cSrcweir         aApi.funcB= &funcB;
16*cdf0e10cSrcweir         return (&aApi);
17*cdf0e10cSrcweir     }
18*cdf0e10cSrcweir     else
19*cdf0e10cSrcweir     {
20*cdf0e10cSrcweir         return (&aApi);
21*cdf0e10cSrcweir     }
22*cdf0e10cSrcweir 
23*cdf0e10cSrcweir }
24*cdf0e10cSrcweir 
25*cdf0e10cSrcweir 
26*cdf0e10cSrcweir sal_Int32 SAL_CALL funcA( sal_Int32 a)
27*cdf0e10cSrcweir {
28*cdf0e10cSrcweir 	return a;
29*cdf0e10cSrcweir }
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir double SAL_CALL funcB( double a)
33*cdf0e10cSrcweir {
34*cdf0e10cSrcweir 	return a;
35*cdf0e10cSrcweir }
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir 
38