core_init.h 426 B

123456789101112131415161718192021
  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. bool fe;
  11. bool se;
  12. jmp_buf *buf;
  13. LogLevel level;
  14. };
  15. AFUN_CORE_EXPORT extern Logger *aFunCoreLogger;
  16. AFUN_CORE_EXPORT bool aFunCoreInit(aFunCoreInitInfo *info);
  17. #endif //AFUN_INIT_H