From 325ee09f8fa61185efd6ec8b64b6432686170ac8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 20 May 2009 20:04:09 +0200 Subject: Module wieder heil-gebastelt --- src/modules/FileLogger/CMakeLists.txt | 5 +++++ src/modules/FileLogger/FileLogger.cpp | 7 ++----- src/modules/FileLogger/FileLogger.h | 1 - 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 src/modules/FileLogger/CMakeLists.txt (limited to 'src/modules/FileLogger') diff --git a/src/modules/FileLogger/CMakeLists.txt b/src/modules/FileLogger/CMakeLists.txt new file mode 100644 index 0000000..39459d3 --- /dev/null +++ b/src/modules/FileLogger/CMakeLists.txt @@ -0,0 +1,5 @@ +include_directories(${INCLUDES}) + +add_library(FileLogger MODULE + FileLogger.cpp +) diff --git a/src/modules/FileLogger/FileLogger.cpp b/src/modules/FileLogger/FileLogger.cpp index 5e0c021..4655002 100644 --- a/src/modules/FileLogger/FileLogger.cpp +++ b/src/modules/FileLogger/FileLogger.cpp @@ -21,9 +21,6 @@ #include -#define init FileLogger_LTX_init -#define deinit FileLogger_LTX_deinit - namespace Mad { namespace Modules { @@ -62,11 +59,11 @@ bool FileLogger::ConfigHelper::handleConfigEntry(const Common::ConfigEntry &entr extern "C" { -void init() { +void FileLogger_init() { Mad::Modules::FileLogger::registerConfigHelper(); } -void deinit() { +void FileLogger_deinit() { Mad::Modules::FileLogger::unregisterConfigHelper(); } diff --git a/src/modules/FileLogger/FileLogger.h b/src/modules/FileLogger/FileLogger.h index 404299b..2def986 100644 --- a/src/modules/FileLogger/FileLogger.h +++ b/src/modules/FileLogger/FileLogger.h @@ -58,7 +58,6 @@ class FileLogger : private Common::Logger, private Common::RemoteLogger { static void registerConfigHelper() { Common::ConfigManager::get()->registerConfigurable(&configHelper); - Logger::log("Registered!"); } static void unregisterConfigHelper() { -- cgit v1.2.3