init.h 535 B

123456789101112131415161718192021
  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. bool log_asyn;
  9. aFuntool::LogLevel level;
  10. };
  11. AFUN_CORE_EXPORT extern std::string log_path;
  12. AFUN_CORE_EXPORT extern std::string lang_path;
  13. AFUN_CORE_EXPORT extern std::string varlib_path;
  14. AFUN_CORE_EXPORT extern aFuntool::Logger *aFunCoreLogger;
  15. AFUN_CORE_EXPORT bool aFunCoreInit(InitInfo *info);
  16. }
  17. #endif //AFUN_INIT_H