// // Created by loki on 12/22/19. // #ifndef SUNSHINE_MAIN_H #define SUNSHINE_MAIN_H #include #include "thread_pool.h" #include "thread_safe.h" #include extern util::ThreadPool task_pool; extern bool display_cursor; extern boost::log::sources::severity_logger verbose; extern boost::log::sources::severity_logger debug; extern boost::log::sources::severity_logger info; extern boost::log::sources::severity_logger warning; extern boost::log::sources::severity_logger error; extern boost::log::sources::severity_logger fatal; void log_flush(); void print_help(const char *name); std::string read_file(const char *path); int write_file(const char *path, const std::string_view &contents); namespace mail { #define MAIL(x) \ constexpr auto x = std::string_view { #x } extern safe::mail_t man; MAIL(shutdown); MAIL(broadcast_shutdown); #undef MAIL } // namespace mail #endif //SUNSHINE_MAIN_H