office-gobmx/salhelper/test/dynamicloader/samplelib.cxx
Joachim Lingner bc6a2cdcb6 new
2001-04-19 14:26:32 +00:00

37 lines
430 B
C++

#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;
}