5 //#include <zthread/Thread.h>
\r
6 #include "pthreadwrapper/thread.h"
\r
8 #define FMS_VERSION "0.1.10"
\r
10 // opens database and creates tables and initial inserts if necessary
\r
12 void ConvertDB0100To0101();
\r
13 // inserts default options into the database
\r
14 void SetupDefaultOptions();
\r
15 // opens logfile and sets it up
\r
16 void SetupLogFile();
\r
18 void SigHandler(int signum);
\r
20 void MainFunction();
\r
23 //void StartThreads(std::vector<PThread::Thread *> &threads);
\r
24 //void ShutdownThreads(std::vector<PThread::Thread *> &threads);
\r
26 // needed for Windows to setup network
\r
27 void SetupNetwork();
\r
28 // cleanup network on Windows
\r
29 void ShutdownNetwork();
\r
31 extern bool wantshutdown;
\r