changed: the way how plugins work
all your plugin functions can have signature either: void my_function(PluginInfo & info); or void my_function(); only the main Init should have: extern "C" void Init(PluginFunction & info); added: directory 'plugins' for plugins added: 'stats' plugin git-svn-id: svn://ttmath.org/publicrep/winix/trunk@624 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -38,6 +38,8 @@ Plugin plugin;
|
||||
|
||||
void signal_term(int)
|
||||
{
|
||||
plugin.Call(WINIX_CLOSE);
|
||||
|
||||
req_controller.SaveSessions();
|
||||
req_controller.DeleteAllPluginsData();
|
||||
log << log1 << "cmslu stopped" << logend << logsave;
|
||||
@@ -103,6 +105,7 @@ int main(int argv, char ** argc)
|
||||
|
||||
// load plugins before loading sessions - req_controller.LoadSessions()
|
||||
plugin.LoadPlugins(data.plugin_file);
|
||||
plugin.Call(WINIX_PLUGIN_INIT);
|
||||
|
||||
request.Init();
|
||||
|
||||
|
Reference in New Issue
Block a user