reorganize files and add missing includes
This commit is contained in:
parent
d80ec89490
commit
21cd133480
5 changed files with 13 additions and 4 deletions
|
|
@ -1,26 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Lysann Tranvouez. All rights reserved.
|
||||
|
||||
#pragma once
|
||||
#ifndef MACH_DETOURS_H
|
||||
#define MACH_DETOURS_H
|
||||
|
||||
#include <mach/error.h>
|
||||
#include <mach/mach_types.h>
|
||||
|
||||
typedef void* detour_func_t;
|
||||
|
||||
#define detour_err_in_progress (err_local | 1)
|
||||
|
||||
mach_error_t detour_transaction_begin();
|
||||
mach_error_t detour_transaction_abort();
|
||||
mach_error_t detour_transaction_commit();
|
||||
mach_error_t detour_transaction_commit_ex(detour_func_t** out_failed_target);
|
||||
|
||||
mach_error_t detour_manage_thread(thread_t thread);
|
||||
|
||||
mach_error_t detour_attach(detour_func_t* inout_pointer, detour_func_t detour);
|
||||
mach_error_t detour_attach_ex(detour_func_t* inout_pointer, detour_func_t detour, detour_func_t* out_real_trampoline, detour_func_t* out_real_target, detour_func_t* out_real_detour);
|
||||
mach_error_t detour_detach(detour_func_t* inout_pointer, detour_func_t detour);
|
||||
|
||||
#endif // MACH_DETOURS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue