X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Fglobal.h;h=204aa4544c9438cbb3b45c6bf00b010df245bd86;hp=be6dec69bc34de20845f7043ff7beaced9403f08;hb=026dc6b2bc548c945359c4e166eff514f2c47c6a;hpb=df316253862dc50e8e5a790d9634ef90be37badb diff --git a/include/global.h b/include/global.h index be6dec6..204aa45 100644 --- a/include/global.h +++ b/include/global.h @@ -1,33 +1,17 @@ #ifndef _global_ #define _global_ -#include -//#include -#include "pthreadwrapper/thread.h" +#include +#include +#include -#define FMS_VERSION "0.1.11" +#define VERSION_MAJOR "0" +#define VERSION_MINOR "3" +#define VERSION_RELEASE "6" +#define FMS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_RELEASE -// opens database and creates tables and initial inserts if necessary -void SetupDB(); -void ConvertDB0100To0101(); -// inserts default options into the database -void SetupDefaultOptions(); -// opens logfile and sets it up -void SetupLogFile(); +typedef Poco::ScopedLock Guard; -void SigHandler(int signum); - -void MainFunction(); -void Shutdown(); - -//void StartThreads(std::vector &threads); -//void ShutdownThreads(std::vector &threads); - -// needed for Windows to setup network -void SetupNetwork(); -// cleanup network on Windows -void ShutdownNetwork(); - -extern bool wantshutdown; +std::string CreateShortIdentityName(const std::string &name, const std::string &publickey); #endif // _global_