Open hqt opened 7 years ago
For example I want to hook a method named hook_method in two module liba and libb
hook_method
liba
libb
int hook_method(void *ctx); HOOK_INFO custom_hook_info_hook_method={{}, "liba", "hook_method", hook_method, hook_method}; HOOK_INFO custom_hook_info_hook_method={{}, "libb", "hook_method", hook_method, hook_method};
But when compiling, I will meet error:
note: previous definition of 'custom_hook_info_hook_method'
So how can I hook same method name for two different libraries.
For example I want to hook a method named
hook_method
in two moduleliba
andlibb
But when compiling, I will meet error:
So how can I hook same method name for two different libraries.