2
0

core-init.h 822 B

123456789101112131415161718192021222324252627282930
  1. #ifndef AFUN_CORE_INIT_H
  2. #define AFUN_CORE_INIT_H
  3. #include "aFuntool.h"
  4. #include "aFunCoreExport.h"
  5. namespace aFuncore {
  6. struct InitInfo {
  7. const std::string &base_dir;
  8. aFuntool::LogFactory &factor;
  9. bool log_asyn;
  10. aFuntool::LogLevel level;
  11. inline InitInfo(const std::string &base_dir_,
  12. aFuntool::LogFactory &factor_,
  13. bool log_asyn_,
  14. aFuntool::LogLevel level_);
  15. };
  16. AFUN_CORE_EXPORT extern std::string log_path;
  17. AFUN_CORE_EXPORT extern std::string lang_path;
  18. AFUN_CORE_EXPORT extern std::string varlib_path;
  19. AFUN_CORE_EXPORT extern aFuntool::Logger *aFunCoreLogger;
  20. AFUN_CORE_EXPORT bool aFunCoreInit(InitInfo *info);
  21. }
  22. #include "core-init.inline.h"
  23. #endif //AFUN_CORE_INIT_H