ext/khetai/dev/fltk-ui/ai_loader.h in khetai-0.2.3 vs ext/khetai/dev/fltk-ui/ai_loader.h in khetai-0.3.0

- old
+ new

@@ -1,16 +1,15 @@ #ifndef AI_LOADER_H #define AI_LOADER_H +#include "../../khetai_lib.h" #include <dlfcn.h> #include <stdexcept> #include <string> -#include "../../khetai_lib.h" -class AILoader -{ -public: +class AILoader { + public: AILoader(const std::string &lib_path); ~AILoader(); void (*get_init_zobrist())(); void (*get_reset_undo())(); @@ -22,10 +21,10 @@ int (*get_get_start())(Move); int (*get_get_end())(Move); int (*get_get_rotation())(Move); void reload_library(const std::string &lib_path); -private: + private: void *handle; void load_library(const std::string &lib_path); void *get_symbol(const std::string &symbol_name); void check_error(); }; \ No newline at end of file