5 //#include <zthread/Thread.h>
\r
6 #include "pthreadwrapper/thread.h"
\r
8 #define FMS_VERSION "0.1.15"
\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 // inserts default options into the database
\r
16 void SetupDefaultOptions();
\r
17 // opens logfile and sets it up
\r
18 void SetupLogFile();
\r
20 void SigHandler(int signum);
\r
22 void MainFunction();
\r
25 //void StartThreads(std::vector<PThread::Thread *> &threads);
\r
26 //void ShutdownThreads(std::vector<PThread::Thread *> &threads);
\r
28 // needed for Windows to setup network
\r
29 void SetupNetwork();
\r
30 // cleanup network on Windows
\r
31 void ShutdownNetwork();
\r
33 extern bool wantshutdown;
\r