2019-12-22 23:34:12 +01:00
|
|
|
//
|
|
|
|
// Created by loki on 12/22/19.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SUNSHINE_MAIN_H
|
|
|
|
#define SUNSHINE_MAIN_H
|
|
|
|
|
|
|
|
#include "thread_pool.h"
|
2021-05-17 21:21:57 +02:00
|
|
|
#include <boost/log/common.hpp>
|
2019-12-22 23:34:12 +01:00
|
|
|
|
|
|
|
extern util::ThreadPool task_pool;
|
2019-12-25 20:57:23 +01:00
|
|
|
extern bool display_cursor;
|
2019-12-22 23:34:12 +01:00
|
|
|
|
2020-01-09 22:02:01 +01:00
|
|
|
extern boost::log::sources::severity_logger<int> verbose;
|
|
|
|
extern boost::log::sources::severity_logger<int> debug;
|
|
|
|
extern boost::log::sources::severity_logger<int> info;
|
|
|
|
extern boost::log::sources::severity_logger<int> warning;
|
|
|
|
extern boost::log::sources::severity_logger<int> error;
|
|
|
|
extern boost::log::sources::severity_logger<int> fatal;
|
|
|
|
|
|
|
|
void log_flush();
|
2021-06-04 21:12:06 +02:00
|
|
|
|
2021-06-09 21:55:13 +02:00
|
|
|
void print_help(const char *name);
|
|
|
|
|
2021-06-04 21:12:06 +02:00
|
|
|
std::string read_file(const char *path);
|
|
|
|
int write_file(const char *path, const std::string_view &contents);
|
2019-12-22 23:34:12 +01:00
|
|
|
#endif //SUNSHINE_MAIN_H
|