version 0.2.20
[fms.git] / include / global.h
index ba827c4..2bc49ce 100644 (file)
@@ -1,25 +1,44 @@
 #ifndef _global_\r
 #define _global_\r
 \r
+#include <string>\r
 #include <vector>\r
-//#include <zthread/Thread.h>\r
 #include "pthreadwrapper/thread.h"\r
 \r
-#define FMS_VERSION    "0.1.9"\r
+#define FMS_VERSION    "0.2.20"\r
 \r
 // opens database and creates tables and initial inserts if necessary\r
 void SetupDB();\r
+void ConvertDB0100To0101();\r
+void ConvertDB0101To0103();\r
+void ConvertDB0103To0104();\r
+void ConvertDB0104To0105();\r
+void ConvertDB0105To0106();\r
+void ConvertDB0106To0107();\r
+void ConvertDB0107To0108();\r
+void ConvertDB0108To0109();\r
+void ConvertDB0109To0110();\r
+void ConvertDB0110To0111();\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<PThread::Thread *> &threads);\r
-void ShutdownThreads(std::vector<PThread::Thread *> &threads);\r
+std::string CreateShortIdentityName(const std::string &name, const std::string &publickey);\r
+\r
+// TODO remove sometime after 0.1.17\r
+void FixCapitalBoardNames();\r
+\r
+void SigHandler(int signum);\r
+\r
+void MainFunction();\r
+void Shutdown();\r
 \r
 // needed for Windows to setup network\r
 void SetupNetwork();\r
 // cleanup network on Windows\r
 void ShutdownNetwork();\r
 \r
+extern volatile bool wantshutdown;\r
+\r
 #endif // _global_\r