office-gobmx/salhelper/test/Symbols/samplelib.cxx
Sebastian Spaeth a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00

39 lines
562 B
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#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;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */