Skip to content

Commit 8af9aff

Browse files
committed
rename vendored fishhook functions
1 parent b817d7a commit 8af9aff

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

Sources/SentryCrash/Recording/Tools/SentryHook.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,35 +175,35 @@ sentrycrash_install_async_hooks(void)
175175
return;
176176
}
177177

178-
rebind_symbols(
178+
sentrycrash__hook_rebind_symbols(
179179
(struct rebinding[1]) {
180180
{ "dispatch_async", sentrycrash__hook_dispatch_async, (void *)&real_dispatch_async },
181181
},
182182
1);
183-
rebind_symbols(
183+
sentrycrash__hook_rebind_symbols(
184184
(struct rebinding[1]) {
185185
{ "dispatch_async_f", sentrycrash__hook_dispatch_async_f,
186186
(void *)&real_dispatch_async_f },
187187
},
188188
1);
189-
rebind_symbols(
189+
sentrycrash__hook_rebind_symbols(
190190
(struct rebinding[1]) {
191191
{ "dispatch_after", sentrycrash__hook_dispatch_after, (void *)&real_dispatch_after },
192192
},
193193
1);
194-
rebind_symbols(
194+
sentrycrash__hook_rebind_symbols(
195195
(struct rebinding[1]) {
196196
{ "dispatch_after_f", sentrycrash__hook_dispatch_after_f,
197197
(void *)&real_dispatch_after_f },
198198
},
199199
1);
200-
rebind_symbols(
200+
sentrycrash__hook_rebind_symbols(
201201
(struct rebinding[1]) {
202202
{ "dispatch_barrier_async", sentrycrash__hook_dispatch_barrier_async,
203203
(void *)&real_dispatch_barrier_async },
204204
},
205205
1);
206-
rebind_symbols(
206+
sentrycrash__hook_rebind_symbols(
207207
(struct rebinding[1]) {
208208
{ "dispatch_barrier_async_f", sentrycrash__hook_dispatch_barrier_async_f,
209209
(void *)&real_dispatch_barrier_async_f },

Sources/SentryCrash/Recording/Tools/fishhook.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ _rebind_symbols_for_image(const struct mach_header *header, intptr_t slide)
234234
}
235235

236236
int
237-
rebind_symbols_image(
237+
sentrycrash__hook_rebind_symbols_image(
238238
void *header, intptr_t slide, struct rebinding rebindings[], size_t rebindings_nel)
239239
{
240240
struct rebindings_entry *rebindings_head = NULL;
@@ -248,7 +248,7 @@ rebind_symbols_image(
248248
}
249249

250250
int
251-
rebind_symbols(struct rebinding rebindings[], size_t rebindings_nel)
251+
sentrycrash__hook_rebind_symbols(struct rebinding rebindings[], size_t rebindings_nel)
252252
{
253253
int retval = prepend_rebindings(&_rebindings_head, rebindings, rebindings_nel);
254254
if (retval < 0) {

Sources/SentryCrash/Recording/Tools/fishhook.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ struct rebinding {
5656
* is rebound more than once, the later rebinding will take precedence.
5757
*/
5858
FISHHOOK_VISIBILITY
59-
int rebind_symbols(struct rebinding rebindings[], size_t rebindings_nel);
59+
int sentrycrash__hook_rebind_symbols(struct rebinding rebindings[], size_t rebindings_nel);
6060

6161
/*
6262
* Rebinds as above, but only in the specified image. The header should point
6363
* to the mach-o header, the slide should be the slide offset. Others as above.
6464
*/
6565
FISHHOOK_VISIBILITY
66-
int rebind_symbols_image(
66+
int sentrycrash__hook_rebind_symbols_image(
6767
void *header, intptr_t slide, struct rebinding rebindings[], size_t rebindings_nel);
6868

6969
#ifdef __cplusplus

0 commit comments

Comments
 (0)