diff options
Diffstat (limited to 'src/modules/UserDBBackendMysql')
-rw-r--r-- | src/modules/UserDBBackendMysql/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/modules/UserDBBackendMysql/Module.cpp | 4 | ||||
-rw-r--r-- | src/modules/UserDBBackendMysql/UserDBBackendMysql.cpp | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/UserDBBackendMysql/CMakeLists.txt b/src/modules/UserDBBackendMysql/CMakeLists.txt index 8c4f079..80b83d1 100644 --- a/src/modules/UserDBBackendMysql/CMakeLists.txt +++ b/src/modules/UserDBBackendMysql/CMakeLists.txt @@ -4,5 +4,4 @@ mad_module(UserDBBackendMysql Module.cpp Module.h UserDBBackendMysql.cpp UserDBBackendMysql.h ) - mad_module_libraries(UserDBBackendMysql ${MYSQL_LIBRARIES})
\ No newline at end of file diff --git a/src/modules/UserDBBackendMysql/Module.cpp b/src/modules/UserDBBackendMysql/Module.cpp index a4b51c4..6fcbda2 100644 --- a/src/modules/UserDBBackendMysql/Module.cpp +++ b/src/modules/UserDBBackendMysql/Module.cpp @@ -17,11 +17,13 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "../export.h" + #include "Module.h" extern "C" { -Mad::Common::Module* UserDBBackendMysql_create(Mad::Common::Application *application) { +MAD_MODULE_EXPORT Mad::Common::Module* UserDBBackendMysql_create(Mad::Common::Application *application) { return new Mad::Modules::UserDBBackendMysql::Module(application); } diff --git a/src/modules/UserDBBackendMysql/UserDBBackendMysql.cpp b/src/modules/UserDBBackendMysql/UserDBBackendMysql.cpp index 7ca3db2..bf087f2 100644 --- a/src/modules/UserDBBackendMysql/UserDBBackendMysql.cpp +++ b/src/modules/UserDBBackendMysql/UserDBBackendMysql.cpp @@ -70,7 +70,7 @@ bool UserDBBackendMysql::handleConfigEntry(const Core::ConfigEntry &entry, bool val = strtol(entry[2][0].c_str(), &endptr, 10); if(endptr != 0 || val < 0 || val > 65535) - application->log(Core::LoggerBase::WARNING, "UserDBBackendMysql: Invalid port"); + application->log(Core::LoggerBase::LOG_WARNING, "UserDBBackendMysql: Invalid port"); else port = val; } @@ -159,7 +159,7 @@ bool UserDBBackendMysql::handleConfigEntry(const Core::ConfigEntry &entry, bool void UserDBBackendMysql::configFinished() { if(db.empty()) { - application->log(Core::LoggerBase::ERROR, "UserDBBackendMysql: No database name given"); + application->log(Core::LoggerBase::LOG_ERROR, "UserDBBackendMysql: No database name given"); return; } |