X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..c7801cde8b95a9ef8318030e1caaa0be0603fe80:/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp?ds=inline diff --git a/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp b/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp index 3b28ddd8..8bd0242d 100644 --- a/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp +++ b/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp @@ -1,22 +1,3 @@ -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include // xmlrpc-c devs have missed something :) - -#include "stg/common.h" -#include "stg/admin.h" -#include "stg/module_settings.h" -#include "stg/settings.h" -#include "stg/plugin_creator.h" #include "rpcconfig.h" #include "info_methods.h" @@ -25,12 +6,24 @@ #include "admins_methods.h" #include "messages_methods.h" -namespace -{ -PLUGIN_CREATOR rpcc; -} +#include "stg/common.h" +#include "stg/admin.h" +#include "stg/module_settings.h" +#include "stg/settings.h" + +#include +#include +#include // xmlrpc-c devs have missed something :) +#include +#include +#include +#include -extern "C" PLUGIN * GetPlugin(); +#include +#include +#include +#include +#include RPC_CONFIG_SETTINGS::RPC_CONFIG_SETTINGS() : port(0), @@ -78,9 +71,10 @@ else return 0; } -PLUGIN * GetPlugin() +extern "C" Plugin* GetPlugin() { -return rpcc.GetPlugin(); + static RPC_CONFIG plugin; + return &plugin; } RPC_CONFIG::RPC_CONFIG() @@ -93,7 +87,7 @@ RPC_CONFIG::RPC_CONFIG() running(false), stopped(true), dayFee(0), - logger(GetPluginLogger(GetStgLogger(), "conf_rpc")) + logger(PluginLogger::get("conf_rpc")) { }