[Libreoffice-commits] core.git: desktop/inc desktop/source include/vcl vcl/inc vcl/source vcl/unx

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 26 07:43:50 UTC 2019


 desktop/inc/app.hxx                |    5 -----
 desktop/source/app/app.cxx         |    1 +
 desktop/source/app/sofficemain.cxx |    1 +
 include/vcl/glxtestprocess.hxx     |   20 ++++++++++++++++++++
 vcl/inc/opengl/x11/glxtest.hxx     |    4 ----
 vcl/source/salmain/salmain.cxx     |    5 +----
 vcl/unx/glxtest.cxx                |    1 +
 7 files changed, 24 insertions(+), 13 deletions(-)

New commits:
commit 99df964c96bc1b715ae6ece47629a5d7afb2a945
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Mar 25 18:27:37 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Mar 26 08:43:28 2019 +0100

    Consolidate declarations of {fire,reap}_glxtest_process in single include file
    
    Change-Id: I7f25cba311d42a7e8751cf3651f684b88d1fb8ac
    Reviewed-on: https://gerrit.libreoffice.org/69711
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/desktop/inc/app.hxx b/desktop/inc/app.hxx
index 01224c68ffeb..9f885cf0bd37 100644
--- a/desktop/inc/app.hxx
+++ b/desktop/inc/app.hxx
@@ -181,11 +181,6 @@ OUString ReplaceStringHookProc(const OUString& rStr);
 
 }
 
-#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID && !defined LIBO_HEADLESS
-bool fire_glxtest_process();
-void reap_glxtest_process();
-#endif
-
 #endif // INCLUDED_DESKTOP_INC_APP_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 4f6dbca894ae..1f910a6b1f21 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -106,6 +106,7 @@
 #include <svtools/miscopt.hxx>
 #include <svtools/menuoptions.hxx>
 #include <rtl/bootstrap.hxx>
+#include <vcl/glxtestprocess.hxx>
 #include <vcl/help.hxx>
 #include <vcl/weld.hxx>
 #include <vcl/settings.hxx>
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx
index 67bb08f48022..805c4f07602e 100644
--- a/desktop/source/app/sofficemain.cxx
+++ b/desktop/source/app/sofficemain.cxx
@@ -33,6 +33,7 @@
 #include <rtl/bootstrap.hxx>
 #include <sal/log.hxx>
 #include <tools/extendapplicationenvironment.hxx>
+#include <vcl/glxtestprocess.hxx>
 #include <vcl/svmain.hxx>
 
 #include <com/sun/star/beans/NamedValue.hpp>
diff --git a/include/vcl/glxtestprocess.hxx b/include/vcl/glxtestprocess.hxx
new file mode 100644
index 000000000000..b13312ebda64
--- /dev/null
+++ b/include/vcl/glxtestprocess.hxx
@@ -0,0 +1,20 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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/.
+ */
+
+#ifndef INCLUDED_INCLUDE_VCL_GLXTESTPROCESS_HXX
+
+#include <sal/config.h>
+
+bool fire_glxtest_process();
+
+void reap_glxtest_process();
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/vcl/inc/opengl/x11/glxtest.hxx b/vcl/inc/opengl/x11/glxtest.hxx
index d74436aae111..5715a6d9fb19 100644
--- a/vcl/inc/opengl/x11/glxtest.hxx
+++ b/vcl/inc/opengl/x11/glxtest.hxx
@@ -16,10 +16,6 @@ VCL_DLLPUBLIC int* getGlxPipe();
 
 VCL_DLLPUBLIC pid_t* getGlxPid();
 
-bool fire_glxtest_process();
-
-void reap_glxtest_process();
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/salmain/salmain.cxx b/vcl/source/salmain/salmain.cxx
index b2b45a89e934..ccf5732260ed 100644
--- a/vcl/source/salmain/salmain.cxx
+++ b/vcl/source/salmain/salmain.cxx
@@ -23,15 +23,12 @@
 
 #include <sal/main.h>
 #include <tools/extendapplicationenvironment.hxx>
+#include <vcl/glxtestprocess.hxx>
 #include <vcl/vclmain.hxx>
 #include <vcl/svmain.hxx>
 
 #include <salinst.hxx>
 
-#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID && !defined LIBO_HEADLESS && !defined HAIKU
-#include <opengl/x11/glxtest.hxx>
-#endif
-
 SAL_IMPLEMENT_MAIN() {
 #if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID && !defined LIBO_HEADLESS && !defined HAIKU
     fire_glxtest_process();
diff --git a/vcl/unx/glxtest.cxx b/vcl/unx/glxtest.cxx
index 38d70aa490e2..b3c6a7521de7 100644
--- a/vcl/unx/glxtest.cxx
+++ b/vcl/unx/glxtest.cxx
@@ -39,6 +39,7 @@
 #include <X11/Xutil.h>
 
 #include <sal/log.hxx>
+#include <vcl/glxtestprocess.hxx>
 
 // stuff from glx.h
 typedef struct __GLXcontextRec *GLXContext;


More information about the Libreoffice-commits mailing list