From da0e50c4ef34d05b39a48cb949288265fd837fe2 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Mon, 31 Dec 2018 12:33:07 -0500 Subject: [PATCH] updated to include patcher, pinner, etc. access --- include/zipr.h | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/include/zipr.h b/include/zipr.h index d4199db..1ec2fa4 100644 --- a/include/zipr.h +++ b/include/zipr.h @@ -48,31 +48,34 @@ class Zipr_t /* * These are public functions that the SDK user way want to use. */ - virtual size_t DetermineDollopEntrySize(DollopEntry_t*, bool account_for_fallthrough) = 0; + virtual size_t DetermineDollopEntrySize( + DollopEntry_t*, + bool account_for_fallthrough) = 0; - virtual Zipr_SDK::RangeAddress_t PlopDollopEntry( - DollopEntry_t *, - RangeAddress_t = 0, - RangeAddress_t = 0) - = 0; + virtual RangeAddress_t PlopDollopEntry( + DollopEntry_t *, + RangeAddress_t = 0, + RangeAddress_t = 0) = 0; - virtual Zipr_SDK::RangeAddress_t PlopDollopEntryWithTarget( - DollopEntry_t *, - RangeAddress_t = 0, - RangeAddress_t = 0) - = 0; + virtual RangeAddress_t PlopDollopEntryWithTarget( + DollopEntry_t *, + RangeAddress_t = 0, + RangeAddress_t = 0) = 0; - virtual Zipr_SDK::RangeAddress_t PlopDollopEntryWithCallback( - DollopEntry_t *, - RangeAddress_t = 0) - = 0; + virtual RangeAddress_t PlopDollopEntryWithCallback( + DollopEntry_t *, + RangeAddress_t = 0) = 0; - virtual Zipr_SDK::MemorySpace_t *GetMemorySpace()=0; + virtual MemorySpace_t *GetMemorySpace()=0; virtual ELFIO::elfio *GetELFIO()=0; virtual libIRDB::FileIR_t *GetFileIR()=0; - virtual Zipr_SDK::InstructionLocationMap_t *GetLocationMap()=0; - virtual Zipr_SDK::DollopManager_t *GetDollopManager()=0; - virtual Zipr_SDK::PlacementQueue_t* GetPlacementQueue()=0; + virtual InstructionLocationMap_t *GetLocationMap()=0; + virtual DollopManager_t *GetDollopManager()=0; + virtual PlacementQueue_t* GetPlacementQueue()=0; + virtual void ApplyPatch( + RangeAddress_t from_addr, + RangeAddress_t to_addr)=0; + }; }; -- GitLab