[core] do not export xhook (#64)

This commit is contained in:
双草酸酯 2021-02-04 02:55:05 +08:00 committed by GitHub
parent 133481065f
commit 0dbfe5ac35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -28,20 +28,18 @@
extern "C" {
#endif
#define XHOOK_EXPORT __attribute__((visibility("default")))
int xhook_register(const char *pathname_regex_str, const char *symbol,
void *new_func, void **old_func) XHOOK_EXPORT;
void *new_func, void **old_func);
int xhook_ignore(const char *pathname_regex_str, const char *symbol) XHOOK_EXPORT;
int xhook_ignore(const char *pathname_regex_str, const char *symbol);
int xhook_refresh(int async) XHOOK_EXPORT;
int xhook_refresh(int async);
void xhook_clear() XHOOK_EXPORT;
void xhook_clear();
void xhook_enable_debug(int flag) XHOOK_EXPORT;
void xhook_enable_debug(int flag);
void xhook_enable_sigsegv_protection(int flag) XHOOK_EXPORT;
void xhook_enable_sigsegv_protection(int flag);
#ifdef __cplusplus
}