mirror of
https://github.com/robotn/gohook.git
synced 2025-04-10 08:24:34 +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) {
|
int add_event(char *key_event) {
|
||||||
// (uint16_t *)
|
// (uint16_t *)
|
||||||
cevent = key_event;
|
cevent = key_event;
|
||||||
add(&dispatch_proc_end);
|
add_hook(&dispatch_proc_end);
|
||||||
|
|
||||||
return cstatus;
|
return cstatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
void add_event_async(){
|
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.
|
// Set the logger callback for library output.
|
||||||
hook_set_logger(&loggerProc);
|
hook_set_logger(&loggerProc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user