ba827c41552867ad87406bde3028bc0d3caf2c10
[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.9"\r
9 \r
10 // opens database and creates tables and initial inserts if necessary\r
11 void SetupDB();\r
12 // inserts default options into the database\r
13 void SetupDefaultOptions();\r
14 // opens logfile and sets it up\r
15 void SetupLogFile();\r
16 \r
17 void StartThreads(std::vector<PThread::Thread *> &threads);\r
18 void ShutdownThreads(std::vector<PThread::Thread *> &threads);\r
19 \r
20 // needed for Windows to setup network\r
21 void SetupNetwork();\r
22 // cleanup network on Windows\r
23 void ShutdownNetwork();\r
24 \r
25 #endif  // _global_\r