#include "conffiles.h"
//-----------------------------------------------------------------------------
-PLUGIN_RUNNER::PLUGIN_RUNNER(const string & pFileName,
+PLUGIN_RUNNER::PLUGIN_RUNNER(const std::string & pFileName,
const MODULE_SETTINGS & ms,
ADMINS * a,
TARIFFS * t,
isPluginLoaded = 0;
}
//-----------------------------------------------------------------------------
-BASE_PLUGIN * PLUGIN_RUNNER::GetPlugin()
+PLUGIN * PLUGIN_RUNNER::GetPlugin()
{
return plugin;
}
if (!libHandle)
{
- errorStr = string("Plugin loading failed. ") + dlerror();
+ errorStr = std::string("Plugin loading failed. ") + dlerror();
printfd(__FILE__, "%s\n", errorStr.c_str());
return -1;
}
-BASE_PLUGIN * (*GetPlugin)();
-GetPlugin = (BASE_PLUGIN * (*)())dlsym(libHandle, "GetPlugin");
+PLUGIN * (*GetPlugin)();
+GetPlugin = (PLUGIN * (*)())dlsym(libHandle, "GetPlugin");
if (!GetPlugin)
{
- errorStr = string("GetPlugin() not found. ") + dlerror();
+ errorStr = std::string("GetPlugin() not found. ") + dlerror();
return -1;
}
plugin = GetPlugin();
return 0;
}
//-----------------------------------------------------------------------------
-const string & PLUGIN_RUNNER::GetStrError() const
+const std::string & PLUGIN_RUNNER::GetStrError() const
{
return errorStr;
}
return plugin->GetStopPosition();
}
//-----------------------------------------------------------------------------
-