2019-09-01 18:53:16 +00:00
|
|
|
#ifndef LINUX_DETOUR_H
|
|
|
|
#define LINUX_DETOUR_H
|
|
|
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
2019-09-01 21:21:13 +00:00
|
|
|
namespace Linux_Detour
|
2019-09-01 18:53:16 +00:00
|
|
|
{
|
2019-09-01 21:21:13 +00:00
|
|
|
int update_thread(pthread_t thread_id);
|
|
|
|
int transaction_begin();
|
|
|
|
int transaction_abort();
|
|
|
|
int transaction_commit();
|
|
|
|
int hook_func(void** ppOriginalFunc, void* _hook);
|
|
|
|
int unhook_func(void** ppOriginalFunc, void* _hook);
|
2019-09-01 18:53:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LINUX_DETOUR_H
|