55#include <stdint.h>
66
77#ifdef NO_EXPORT
8- #define TH_API __attribute__((visibility("hidden")))
8+ #define TH_VIS __attribute__((visibility("hidden")))
99#else
10- #define TH_API __attribute__((visibility("default")))
10+ #define TH_VIS __attribute__((visibility("default")))
1111#endif
1212
1313#ifdef __cplusplus
@@ -21,35 +21,35 @@ typedef struct {
2121} th_bak_t ;
2222
2323/* inline hook */
24- TH_API int tiny_hook (void * function , void * destination , void * * origin );
24+ TH_VIS int tiny_hook (void * function , void * destination , void * * origin );
2525
26- TH_API int tiny_hook_ex (th_bak_t * bak , void * function , void * destination , void * * origin );
26+ TH_VIS int tiny_hook_ex (th_bak_t * bak , void * function , void * destination , void * * origin );
2727
28- TH_API int tiny_unhook_ex (const th_bak_t * bak );
28+ TH_VIS int tiny_unhook_ex (const th_bak_t * bak );
2929
30- TH_API int tiny_insert (void * address , void * destination );
30+ TH_VIS int tiny_insert (void * address , void * destination );
3131
3232/* interpose */
33- TH_API int tiny_interpose (uint32_t image_index , const char * symbol_name , void * replacement );
33+ TH_VIS int tiny_interpose (uint32_t image_index , const char * symbol_name , void * replacement );
3434
3535/* objective-c runtime */
36- TH_API int ocrt_hook (const char * cls , const char * sel , void * destination , void * * origin );
36+ TH_VIS int ocrt_hook (const char * cls , const char * sel , void * destination , void * * origin );
3737
38- TH_API int ocrt_swap (const char * cls1 , const char * sel1 , const char * cls2 , const char * sel2 );
38+ TH_VIS int ocrt_swap (const char * cls1 , const char * sel1 , const char * cls2 , const char * sel2 );
3939
40- TH_API void * ocrt_impl (char type , const char * cls , const char * sel );
40+ TH_VIS void * ocrt_impl (char type , const char * cls , const char * sel );
4141
42- TH_API Method ocrt_method (char type , const char * cls , const char * sel );
42+ TH_VIS Method ocrt_method (char type , const char * cls , const char * sel );
4343
4444/* memory access */
45- TH_API int read_mem (void * destination , const void * source , size_t len );
45+ TH_VIS int read_mem (void * destination , const void * source , size_t len );
4646
47- TH_API int write_mem (void * destination , const void * source , size_t len );
47+ TH_VIS int write_mem (void * destination , const void * source , size_t len );
4848
4949/* symbol resolve */
50- TH_API void * symtbl_solve (uint32_t image_index , const char * symbol_name );
50+ TH_VIS void * symtbl_solve (uint32_t image_index , const char * symbol_name );
5151
52- TH_API void * symexp_solve (uint32_t image_index , const char * symbol_name );
52+ TH_VIS void * symexp_solve (uint32_t image_index , const char * symbol_name );
5353
5454#ifdef __cplusplus
5555}
0 commit comments