version 0.2.8
[fms.git] / include / global.h
1 #ifndef _global_\r
2 #define _global_\r
3 \r
4 #include <string>\r
5 #include <vector>\r
6 #include "pthreadwrapper/thread.h"\r
7 \r
8 #define FMS_VERSION     "0.2.8"\r
9 \r
10 // opens database and creates tables and initial inserts if necessary\r
11 void SetupDB();\r
12 void ConvertDB0100To0101();\r
13 void ConvertDB0101To0103();\r
14 void ConvertDB0103To0104();\r
15 void ConvertDB0104To0105();\r
16 void ConvertDB0105To0106();\r
17 void ConvertDB0106To0107();\r
18 // inserts default options into the database\r
19 void SetupDefaultOptions();\r
20 // opens logfile and sets it up\r
21 void SetupLogFile();\r
22 \r
23 std::string CreateShortIdentityName(const std::string &name, const std::string &publickey);\r
24 \r
25 // TODO remove sometime after 0.1.17\r
26 void FixCapitalBoardNames();\r
27 \r
28 void SigHandler(int signum);\r
29 \r
30 void MainFunction();\r
31 void Shutdown();\r
32 \r
33 // needed for Windows to setup network\r
34 void SetupNetwork();\r
35 // cleanup network on Windows\r
36 void ShutdownNetwork();\r
37 \r
38 extern bool wantshutdown;\r
39 \r
40 #endif  // _global_\r