version 0.1.12
[fms.git] / include / global.h
index 2b0fe20..d9a82e0 100644 (file)
@@ -2,23 +2,32 @@
 #define _global_\r
 \r
 #include <vector>\r
-#include <zthread/Thread.h>\r
+//#include <zthread/Thread.h>\r
+#include "pthreadwrapper/thread.h"\r
 \r
-#define FMS_VERSION    "0.1.1"\r
+#define FMS_VERSION    "0.1.12"\r
 \r
 // opens database and creates tables and initial inserts if necessary\r
 void SetupDB();\r
+void ConvertDB0100To0101();\r
 // inserts default options into the database\r
 void SetupDefaultOptions();\r
 // opens logfile and sets it up\r
 void SetupLogFile();\r
 \r
-void StartThreads(std::vector<ZThread::Thread *> &threads);\r
-void ShutdownThreads(std::vector<ZThread::Thread *> &threads);\r
+void SigHandler(int signum);\r
+\r
+void MainFunction();\r
+void Shutdown();\r
+\r
+//void StartThreads(std::vector<PThread::Thread *> &threads);\r
+//void ShutdownThreads(std::vector<PThread::Thread *> &threads);\r
 \r
 // needed for Windows to setup network\r
 void SetupNetwork();\r
 // cleanup network on Windows\r
 void ShutdownNetwork();\r
 \r
+extern bool wantshutdown;\r
+\r
 #endif // _global_\r