diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-12-04 13:39:52 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-12-04 13:41:18 +0100 |
commit | f4ad79dcc50b0d40fba3b979eb5d59ee8a19dcf0 (patch) | |
tree | 8783f7f83db849f3b004352d33bcb364a9c398da /sal/osl | |
parent | adding calc add-in for option pricing (diff) | |
download | core-f4ad79dcc50b0d40fba3b979eb5d59ee8a19dcf0.tar.gz core-f4ad79dcc50b0d40fba3b979eb5d59ee8a19dcf0.zip |
Fixup: putting back dummy methods for removed semaphore
We don't want to change sal SONAME just yet.
Change-Id: I3a9de9a53a4ba845c00a26450e281534ca5d97f6
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/all/semaphor.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sal/osl/all/semaphor.c b/sal/osl/all/semaphor.c new file mode 100644 index 000000000000..5afb950ad280 --- /dev/null +++ b/sal/osl/all/semaphor.c @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <sal/types.h> + +// Stubs for removed functionality, to be killed when we bump sal SONAME + +SAL_DLLPUBLIC_EXPORT void* SAL_CALL osl_createSemaphore(sal_uInt32 dummy) +{ + (void)dummy; + return NULL; +} + +SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_destroySemaphore(void* dummy) +{ + (void)dummy; +} + +SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_acquireSemaphore(void* dummy) +{ + (void)dummy; + return sal_False; +} + +SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_tryToAcquireSemaphore(void* dummy) +{ + (void)dummy; + return sal_False; +} + +SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_releaseSemaphore(void* dummy) +{ + (void)dummy; + return sal_False; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |