X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e9ae1f101b5418c0ba2e6c9d86b23c12f0140982..c040d1767a18cb26020b14a6408796502e9e4135:/stargazer/plugins/store/firebird/firebird_store.cpp?ds=inline diff --git a/stargazer/plugins/store/firebird/firebird_store.cpp b/stargazer/plugins/store/firebird/firebird_store.cpp index c2b815a3..c11b442b 100644 --- a/stargazer/plugins/store/firebird/firebird_store.cpp +++ b/stargazer/plugins/store/firebird/firebird_store.cpp @@ -28,22 +28,15 @@ #include "firebird_store.h" -#include "stg/ibpp.h" -#include "stg/plugin_creator.h" +#include "stg/common.h" #include #include -namespace +extern "C" STG::Store* GetStore() { -PLUGIN_CREATOR frsc; -} - -extern "C" STORE * GetStore(); -//----------------------------------------------------------------------------- -STORE * GetStore() -{ -return frsc.GetPlugin(); + static FIREBIRD_STORE plugin; + return &plugin; } //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- @@ -57,7 +50,7 @@ FIREBIRD_STORE::FIREBIRD_STORE() til(IBPP::ilConcurrency), tlr(IBPP::lrWait), schemaVersion(0), - logger(PluginLogger::get("store_firebird")) + logger(STG::PluginLogger::get("store_firebird")) { pthread_mutex_init(&mutex, NULL); } @@ -69,7 +62,7 @@ db->Disconnect(); //----------------------------------------------------------------------------- int FIREBIRD_STORE::ParseSettings() { -std::vector::iterator i; +std::vector::iterator i; std::string s; for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i)