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