6 #include "pthreadwrapper/thread.h"
\r
8 #define FMS_VERSION "0.2.23"
\r
10 // opens database and creates tables and initial inserts if necessary
\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 void ConvertDB0107To0108();
\r
19 void ConvertDB0108To0109();
\r
20 void ConvertDB0109To0110();
\r
21 void ConvertDB0110To0111();
\r
22 void ConvertDB0111To0112();
\r
23 // inserts default options into the database
\r
24 void SetupDefaultOptions();
\r
25 // opens logfile and sets it up
\r
26 void SetupLogFile();
\r
28 std::string CreateShortIdentityName(const std::string &name, const std::string &publickey);
\r
30 // TODO remove sometime after 0.1.17
\r
31 void FixCapitalBoardNames();
\r
33 void SigHandler(int signum);
\r
35 void MainFunction();
\r
38 // needed for Windows to setup network
\r
39 void SetupNetwork();
\r
40 // cleanup network on Windows
\r
41 void ShutdownNetwork();
\r
43 extern volatile bool wantshutdown;
\r