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:
60
plugins/stats/stats.h
Executable file
60
plugins/stats/stats.h
Executable file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef headerfilecmsluplugin_stats_stats
|
||||
#define headerfilecmsluplugin_stats_stats
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Stats
|
||||
{
|
||||
|
||||
|
||||
struct StatsGlobal
|
||||
{
|
||||
int all;
|
||||
int unique;
|
||||
|
||||
int google;
|
||||
int yahoo;
|
||||
|
||||
StatsGlobal()
|
||||
{
|
||||
all = 0;
|
||||
unique = 0;
|
||||
google = 0;
|
||||
yahoo = 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
struct Stats
|
||||
{
|
||||
int all;
|
||||
int google;
|
||||
int yahoo;
|
||||
|
||||
Stats()
|
||||
{
|
||||
all = 0;
|
||||
google = 0;
|
||||
yahoo = 0;
|
||||
}
|
||||
};
|
||||
|
||||
extern std::string stats_file;
|
||||
|
||||
void ReadStats();
|
||||
void SaveStats();
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user