init.hpp 427 B

123456789101112131415161718192021
  1. #ifndef AFUN_INIT_HPP
  2. #define AFUN_INIT_HPP
  3. #include "tool.hpp"
  4. namespace aFuncore {
  5. struct InitInfo {
  6. const std::string &base_dir;
  7. bool log_asyn;
  8. aFuntool::LogLevel level;
  9. };
  10. extern std::string log_path;
  11. extern std::string lang_path;
  12. extern std::string varlib_path;
  13. extern aFuntool::Logger *aFunCoreLogger;
  14. bool aFunCoreInit(InitInfo *info);
  15. }
  16. #endif //AFUN_INIT_HPP