#ifndef _global_\r
#define _global_\r
\r
-#include <vector>\r
-//#include <zthread/Thread.h>\r
-#include "pthreadwrapper/thread.h"\r
+#include <string>\r
+#include <Poco/ScopedLock.h>\r
+#include <Poco/Mutex.h>\r
\r
-#define FMS_VERSION "0.1.12"\r
+#define VERSION_MAJOR "0"\r
+#define VERSION_MINOR "3"\r
+#define VERSION_RELEASE "7"\r
+#define FMS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_RELEASE\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
+typedef Poco::ScopedLock<Poco::FastMutex> Guard;\r
\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
+std::string CreateShortIdentityName(const std::string &name, const std::string &publickey);\r
\r
#endif // _global_\r