version 0.1.13
[fms.git] / include / global.h
1 #ifndef _global_\r
2 #define _global_\r
3 \r
4 #include <vector>\r
5 //#include <zthread/Thread.h>\r
6 #include "pthreadwrapper/thread.h"\r
7 \r
8 #define FMS_VERSION     "0.1.13"\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 // inserts default options into the database\r
15 void SetupDefaultOptions();\r
16 // opens logfile and sets it up\r
17 void SetupLogFile();\r
18 \r
19 void SigHandler(int signum);\r
20 \r
21 void MainFunction();\r
22 void Shutdown();\r
23 \r
24 //void StartThreads(std::vector<PThread::Thread *> &threads);\r
25 //void ShutdownThreads(std::vector<PThread::Thread *> &threads);\r
26 \r
27 // needed for Windows to setup network\r
28 void SetupNetwork();\r
29 // cleanup network on Windows\r
30 void ShutdownNetwork();\r
31 \r
32 extern bool wantshutdown;\r
33 \r
34 #endif  // _global_\r