summaryrefslogtreecommitdiffstats
path: root/src/modules/FileLogger
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-20 20:04:09 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-20 20:04:09 +0200
commit325ee09f8fa61185efd6ec8b64b6432686170ac8 (patch)
tree7380bd046d2582034b44905b2dfe71c77f27c0e4 /src/modules/FileLogger
parent4bbe42a77b6782fd6889e673c10316f7e668eae8 (diff)
downloadmad-325ee09f8fa61185efd6ec8b64b6432686170ac8.tar
mad-325ee09f8fa61185efd6ec8b64b6432686170ac8.zip
Module wieder heil-gebastelt
Diffstat (limited to 'src/modules/FileLogger')
-rw-r--r--src/modules/FileLogger/CMakeLists.txt5
-rw-r--r--src/modules/FileLogger/FileLogger.cpp7
-rw-r--r--src/modules/FileLogger/FileLogger.h1
3 files changed, 7 insertions, 6 deletions
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 <Common/ConfigEntry.h>
-#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() {