summaryrefslogtreecommitdiff
path: root/extensions/source/logging
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-13 23:44:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-13 23:44:29 +0200
commita6611be6bc145a9f538a9f1bbe6d40f32ebad1c9 (patch)
tree9f816a202a4d299ba7cabb2406c5d31bd6a63422 /extensions/source/logging
parentf5051821bc5da0fa7b3de78d21aee305fce3d46b (diff)
Clean up function declarations and some unused functions
Change-Id: Ie81d270267b6c3c3620ade62eb393b28d995a654
Diffstat (limited to 'extensions/source/logging')
-rw-r--r--extensions/source/logging/consolehandler.cxx1
-rw-r--r--extensions/source/logging/csvformatter.cxx1
-rw-r--r--extensions/source/logging/filehandler.cxx1
-rw-r--r--extensions/source/logging/log_services.cxx11
-rw-r--r--extensions/source/logging/log_services.hxx37
-rw-r--r--extensions/source/logging/logger.cxx1
-rw-r--r--extensions/source/logging/plaintextformatter.cxx1
7 files changed, 43 insertions, 10 deletions
diff --git a/extensions/source/logging/consolehandler.cxx b/extensions/source/logging/consolehandler.cxx
index 740ffb3eea52..81b28e377c7c 100644
--- a/extensions/source/logging/consolehandler.cxx
+++ b/extensions/source/logging/consolehandler.cxx
@@ -19,6 +19,7 @@
#include "log_module.hxx"
+#include "log_services.hxx"
#include "methodguard.hxx"
#include "loghandler.hxx"
diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx
index 7a1034bb38fa..da152f8667af 100644
--- a/extensions/source/logging/csvformatter.cxx
+++ b/extensions/source/logging/csvformatter.cxx
@@ -19,6 +19,7 @@
#include "log_module.hxx"
+#include "log_services.hxx"
#include <stdio.h>
#include <string>
diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx
index 5f94982d5b10..c82175f7d6a9 100644
--- a/extensions/source/logging/filehandler.cxx
+++ b/extensions/source/logging/filehandler.cxx
@@ -19,6 +19,7 @@
#include "log_module.hxx"
+#include "log_services.hxx"
#include "methodguard.hxx"
#include "loghandler.hxx"
diff --git a/extensions/source/logging/log_services.cxx b/extensions/source/logging/log_services.cxx
index 74231ba6622a..1b667d7c1f40 100644
--- a/extensions/source/logging/log_services.cxx
+++ b/extensions/source/logging/log_services.cxx
@@ -18,19 +18,10 @@
*/
#include "log_module.hxx"
-
+#include "log_services.hxx"
namespace logging
{
-
-
-
- extern void createRegistryInfo_LoggerPool();
- extern void createRegistryInfo_FileHandler();
- extern void createRegistryInfo_ConsoleHandler();
- extern void createRegistryInfo_PlainTextFormatter();
- extern void createRegistryInfo_CsvFormatter();
-
static void initializeModule()
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
diff --git a/extensions/source/logging/log_services.hxx b/extensions/source/logging/log_services.hxx
new file mode 100644
index 000000000000..bdca2d5efc4d
--- /dev/null
+++ b/extensions/source/logging/log_services.hxx
@@ -0,0 +1,37 @@
+/* -*- 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/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_EXTENSIONS_SOURCE_LOGGING_LOG_SERVICES_HXX
+#define INCLUDED_EXTENSIONS_SOURCE_LOGGING_LOG_SERVICES_HXX
+
+#include <sal/config.h>
+
+namespace logging {
+
+void createRegistryInfo_LoggerPool();
+void createRegistryInfo_FileHandler();
+void createRegistryInfo_ConsoleHandler();
+void createRegistryInfo_PlainTextFormatter();
+void createRegistryInfo_CsvFormatter();
+
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/logging/logger.cxx b/extensions/source/logging/logger.cxx
index 527be5c0f6d9..6d7c3f8a843d 100644
--- a/extensions/source/logging/logger.cxx
+++ b/extensions/source/logging/logger.cxx
@@ -19,6 +19,7 @@
#include "log_module.hxx"
+#include "log_services.hxx"
#include "logrecord.hxx"
#include "loggerconfig.hxx"
diff --git a/extensions/source/logging/plaintextformatter.cxx b/extensions/source/logging/plaintextformatter.cxx
index 4ba90165a1fd..b044978e4a5b 100644
--- a/extensions/source/logging/plaintextformatter.cxx
+++ b/extensions/source/logging/plaintextformatter.cxx
@@ -19,6 +19,7 @@
#include "log_module.hxx"
+#include "log_services.hxx"
#include <stdio.h>