From d4d829a39f945ae728a2afc7b0eb81d5ed45f9e8 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 24 Mar 2024 09:30:43 +0100 Subject: [PATCH] Make sure PluginInformation setter are private --- source/plugin/PluginInformation.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/source/plugin/PluginInformation.h b/source/plugin/PluginInformation.h index 109e426..dab997f 100644 --- a/source/plugin/PluginInformation.h +++ b/source/plugin/PluginInformation.h @@ -44,36 +44,22 @@ class PluginInformation { public: PluginInformation(const PluginInformation &) = delete; - PluginInformation(PluginInformation &&src); PluginInformation &operator=(PluginInformation &&src); - - void addHookData(HookData hook_data); - [[nodiscard]] const std::vector &getHookDataList() const; - void addFunctionData(FunctionData function_data); - [[nodiscard]] const std::vector &getFunctionDataList() const; [[nodiscard]] std::vector &getFunctionDataList(); - void addRelocationData(RelocationData relocation_data); - [[nodiscard]] const std::vector &getRelocationDataList() const; - void addFunctionSymbolData(const FunctionSymbolData &symbol_data); - - void addSectionInfo(const SectionInfo §ionInfo); - [[nodiscard]] const std::map &getSectionInfoList() const; [[nodiscard]] std::optional getSectionInfo(const std::string §ionName) const; - void setTrampolineId(uint8_t trampolineId); - [[nodiscard]] uint8_t getTrampolineId() const; [[nodiscard]] const FunctionSymbolData *getNearestFunctionSymbolData(uint32_t address) const; @@ -84,6 +70,19 @@ public: private: PluginInformation() = default; + + void addHookData(HookData hook_data); + + void addFunctionData(FunctionData function_data); + + void addRelocationData(RelocationData relocation_data); + + void addFunctionSymbolData(const FunctionSymbolData &symbol_data); + + void addSectionInfo(const SectionInfo §ionInfo); + + void setTrampolineId(uint8_t trampolineId); + std::vector mHookDataList; std::vector mFunctionDataList; std::vector mRelocationDataList;