From 518d53b5fb468f62cd636558b244feb0251386df Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 29 May 2020 17:16:34 +0200 Subject: [PATCH] Update module_defines.h to match latest SetupPayload version --- source/common/module_defines.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/common/module_defines.h b/source/common/module_defines.h index ac2a7d1..219742d 100644 --- a/source/common/module_defines.h +++ b/source/common/module_defines.h @@ -32,12 +32,19 @@ extern "C" { #define DYN_LINK_RELOCATION_LIST_LENGTH 500 #define EXPORT_ENTRY_LIST_LENGTH 100 +#define HOOK_ENTRY_LIST_LENGTH 10 + +typedef struct hook_data_t { + uint32_t type; + uint32_t target = 0; +} hook_data_t; struct module_information_single_t { char path[MAXIMUM_MODULE_PATH_NAME_LENGTH] = ""; // Path where the module is stored dyn_linking_relocation_entry_t linking_entries[DYN_LINK_RELOCATION_LIST_LENGTH]; char module_export_name[MAXIMUM_EXPORT_MODULE_NAME_LENGTH]; export_data_t export_entries[EXPORT_ENTRY_LIST_LENGTH]; + hook_data_t hook_entries[HOOK_ENTRY_LIST_LENGTH]; int32_t priority; // Priority of this module uint32_t bssAddr; uint32_t bssSize;