mirror of
https://github.com/robotn/gohook.git
synced 2024-12-03 19:36:54 +08:00
update code style
This commit is contained in:
parent
6bfbcf5672
commit
602a6294ff
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user