//#include <zthread/Thread.h>\r
#include "pthreadwrapper/thread.h"\r
\r
-#define FMS_VERSION "0.1.9"\r
+#define FMS_VERSION "0.1.14"\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
// 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
+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