core_init.h 457 B

12345678910111213141516171819202122
  1. #ifndef AFUN_INIT_H
  2. #define AFUN_INIT_H
  3. #include "aFunCoreExport.h"
  4. #include "stdbool.h"
  5. #include <setjmp.h>
  6. #include "tool.h"
  7. typedef struct aFunCoreInitInfo aFunCoreInitInfo;
  8. struct aFunCoreInitInfo {
  9. char *base_dir;
  10. LogFactoryPrintConsole pc;
  11. bool fe;
  12. bool se;
  13. jmp_buf *buf;
  14. LogLevel level;
  15. };
  16. AFUN_CORE_EXPORT extern Logger *aFunCoreLogger;
  17. AFUN_CORE_EXPORT bool aFunCoreInit(aFunCoreInitInfo *info);
  18. #endif //AFUN_INIT_H