[Libreoffice-commits] .: sal/Library_sal.mk sal/osl sal/util

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Dec 4 04:41:43 PST 2012


 sal/Library_sal.mk     |    1 +
 sal/osl/all/semaphor.c |   43 +++++++++++++++++++++++++++++++++++++++++++
 sal/util/sal.map       |    5 +++++
 3 files changed, 49 insertions(+)

New commits:
commit f4ad79dcc50b0d40fba3b979eb5d59ee8a19dcf0
Author: Thorsten Behrens <tbehrens at suse.com>
Date:   Tue Dec 4 13:39:52 2012 +0100

    Fixup: putting back dummy methods for removed semaphore
    
    We don't want to change sal SONAME just yet.
    
    Change-Id: I3a9de9a53a4ba845c00a26450e281534ca5d97f6

diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index 72234a9..51823fe 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -138,6 +138,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
 ))
 $(eval $(call gb_Library_add_cobjects,sal,\
 	sal/osl/all/filepath \
+	sal/osl/all/semaphor \
 ))
 
 ifeq ($(OS),IOS)
diff --git a/sal/osl/all/semaphor.c b/sal/osl/all/semaphor.c
new file mode 100644
index 0000000..5afb950
--- /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: */
diff --git a/sal/util/sal.map b/sal/util/sal.map
index 47dfe39..3c5e787 100644
--- a/sal/util/sal.map
+++ b/sal/util/sal.map
@@ -25,6 +25,7 @@ UDK_3_0_0 {
         osl_acquireSocket;
         osl_acquirePipe;
         osl_acquireMutex;
+        osl_acquireSemaphore;
         osl_addSignalHandler;
         osl_addToSocketSet;
         osl_assertFailedLine;
@@ -46,6 +47,7 @@ UDK_3_0_0 {
         osl_createInetSocketAddr;
         osl_createMutex;
         osl_createPipe;
+        osl_createSemaphore;
         osl_createSocket;
         osl_createSocketSet;
         osl_createSuspendedThread;
@@ -56,6 +58,7 @@ UDK_3_0_0 {
         osl_destroyCondition;
         osl_destroyHostAddr;
         osl_destroyMutex;
+        osl_destroySemaphore;
         osl_destroySocketAddr;
         osl_destroySocketSet;
         osl_destroyThread;
@@ -141,6 +144,7 @@ UDK_3_0_0 {
         osl_releaseDirectoryItem;
         osl_releaseMutex;
         osl_releasePipe;
+        osl_releaseSemaphore;
         osl_releaseSocket;
         osl_removeFromSocketSet;
         osl_removeProfileEntry;
@@ -169,6 +173,7 @@ UDK_3_0_0 {
         osl_terminateThread;
         osl_trace;
         osl_tryToAcquireMutex;
+        osl_tryToAcquireSemaphore;
         osl_unloadModule;
         osl_waitCondition;
         osl_waitThread;


More information about the Libreoffice-commits mailing list