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