mirror of
https://github.com/robotn/gohook.git
synced 2024-11-22 02:56:54 +08:00
rename add() func to add_hook()
This commit is contained in:
parent
b5ca357c14
commit
2a4d6bbf54
@ -55,16 +55,16 @@ void endPoll(){
|
||||
int add_event(char *key_event) {
|
||||
// (uint16_t *)
|
||||
cevent = key_event;
|
||||
add(&dispatch_proc_end);
|
||||
add_hook(&dispatch_proc_end);
|
||||
|
||||
return cstatus;
|
||||
}
|
||||
|
||||
void add_event_async(){
|
||||
add(&dispatch_proc);
|
||||
add_hook(&dispatch_proc);
|
||||
}
|
||||
|
||||
int add(dispatcher_t dispatch) {
|
||||
int add_hook(dispatcher_t dispatch) {
|
||||
// Set the logger callback for library output.
|
||||
hook_set_logger(&loggerProc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user