FunctionPatcherModule/source/fpatching_defines_legacy.h
Daniel K. O. 6c4df9fc0e
Moved function_replacement_data_v2_t to a private header. (#33)
* Moved `function_replacement_data_v2_t` to a private header.

* Sorted includes.

* Sorted includes the way clang likes it.

* Updated Dockerfile.

---------

Co-authored-by: Daniel K. O. (dkosmari) <none@none>
2024-10-12 16:44:50 +02:00

18 lines
930 B
C

#pragma once
/* Types that are kept only for ABI compatibility. */
#include <function_patcher/fpatching_defines.h>
#include <stdint.h>
typedef struct function_replacement_data_v2_t {
uint32_t VERSION;
uint32_t physicalAddr; /* [needs to be filled] */
uint32_t virtualAddr; /* [needs to be filled] */
uint32_t replaceAddr; /* [needs to be filled] Address of our replacement function */
uint32_t *replaceCall; /* [needs to be filled] Address to access the real_function */
function_replacement_library_type_t library; /* [needs to be filled] rpl where the function we want to replace is. */
const char *function_name; /* [needs to be filled] name of the function we want to replace */
FunctionPatcherTargetProcess targetProcess; /* [will be filled] */
} function_replacement_data_v2_t;