diff --git a/event/goEvent.h b/event/goEvent.h index ecff854..0af6237 100644 --- a/event/goEvent.h +++ b/event/goEvent.h @@ -149,7 +149,7 @@ int add_event(char *key_event) { // (uint16_t *) cevent = key_event; // Set the logger callback for library output. - hookSetlogger(&loggerProc); + hook_set_logger(&loggerProc); // Set the event callback for IOhook events. hook_set_dispatch_proc(&dispatch_proc); diff --git a/hook/logger_c.h b/hook/logger_c.h index 7ea2c9a..0c7e648 100644 --- a/hook/logger_c.h +++ b/hook/logger_c.h @@ -50,7 +50,7 @@ static bool default_logger(unsigned int level, const char *format, ...) { logger_t logger = &default_logger; -IOHOOK_API void hookSetlogger(logger_t logger_proc) { +IOHOOK_API void hook_set_logger(logger_t logger_proc) { if (logger_proc == NULL) { logger = &default_logger; }