init.h 573 B

12345678910111213141516171819202122
  1. #ifndef AFUN_INIT_H
  2. #define AFUN_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. };
  12. AFUN_CORE_EXPORT extern std::string log_path;
  13. AFUN_CORE_EXPORT extern std::string lang_path;
  14. AFUN_CORE_EXPORT extern std::string varlib_path;
  15. AFUN_CORE_EXPORT extern aFuntool::Logger *aFunCoreLogger;
  16. AFUN_CORE_EXPORT bool aFunCoreInit(InitInfo *info);
  17. }
  18. #endif //AFUN_INIT_H