diff --git a/include/dollop.h b/include/dollop.h index df3cdf3a8a65211a50ba1729fdc9cc5b280dacd0..0b18450e7feeb9e9996d9adc6e823accf9b26cb8 100644 --- a/include/dollop.h +++ b/include/dollop.h @@ -71,8 +71,8 @@ class DollopPatch_t : public Placeable_t { class DollopEntry_t : public Placeable_t { public: - DollopEntry_t(libIRDB::Instruction_t *insn, Dollop_t *member_of); - libIRDB::Instruction_t *Instruction() const { return m_instruction; } + DollopEntry_t(IRDB_SDK::Instruction_t *insn, Dollop_t *member_of); + IRDB_SDK::Instruction_t *Instruction() const { return m_instruction; } void TargetDollop(Dollop_t *target) { m_target_dollop = target; } Dollop_t *TargetDollop() const { return m_target_dollop; } Dollop_t *MemberOfDollop() const { return m_member_of_dollop; } @@ -82,16 +82,16 @@ class DollopEntry_t : public Placeable_t { bool operator!=(const DollopEntry_t &); friend std::ostream &operator<<(std::ostream &, const DollopEntry_t &); private: - libIRDB::Instruction_t *m_instruction; + IRDB_SDK::Instruction_t *m_instruction; Dollop_t *m_target_dollop, *m_member_of_dollop; }; class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> { public: - static Dollop_t *CreateNewDollop(libIRDB::Instruction_t *start, + static Dollop_t *CreateNewDollop(IRDB_SDK::Instruction_t *start, DollopManager_t *mgr = NULL); - Dollop_t(libIRDB::Instruction_t *start, DollopManager_t *); + Dollop_t(IRDB_SDK::Instruction_t *start, DollopManager_t *); Dollop_t() : m_size(0), m_fallthrough_dollop(NULL), @@ -101,20 +101,20 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> { m_was_truncated(false), m_dollop_mgr(NULL) {} - void SetDollopManager(DollopManager_t *mgr) { m_dollop_mgr = mgr; } + void setDollopManager(DollopManager_t *mgr) { m_dollop_mgr = mgr; } - size_t GetSize() const { + size_t getSize() const { return m_size; } void SetSize(size_t size) { m_size = size; } - size_t GetDollopEntryCount() const { + size_t getDollopEntryCount() const { return size(); } - Dollop_t *Split(libIRDB::Instruction_t *split_point); + Dollop_t *Split(IRDB_SDK::Instruction_t *split_point); void RemoveDollopEntries(std::list<DollopEntry_t*>::iterator, std::list<DollopEntry_t*>::iterator); diff --git a/include/dollop_man.h b/include/dollop_man.h index e7a0ae157a992f5d763046f1c4a4b3e5701ed7f6..d9acf54cb55cad74778c9c3c296271052f680754 100644 --- a/include/dollop_man.h +++ b/include/dollop_man.h @@ -41,7 +41,7 @@ namespace Zipr_SDK { typedef std::set<Dollop_t*> DollopList_t; -typedef std::map<libIRDB::Instruction_t*,Dollop_t*> InsnToDollopMap_t; +typedef std::map<IRDB_SDK::Instruction_t*,Dollop_t*> InsnToDollopMap_t; typedef std::list<DollopPatch_t*> DollopPatchList_t; typedef std::map<Dollop_t*, DollopPatchList_t > DollopToDollopPatchListMap_t; @@ -60,7 +60,7 @@ class DollopManager_t { /* * Create new dollops from a particular start instruction. */ - virtual Zipr_SDK::Dollop_t *AddNewDollops(libIRDB::Instruction_t *start)=0; + virtual Zipr_SDK::Dollop_t *AddNewDollops(IRDB_SDK::Instruction_t *start)=0; /* * Return the number of dollops under management. @@ -70,8 +70,8 @@ class DollopManager_t { /* * Return the dollop containing an instruction. */ - virtual Zipr_SDK::Dollop_t *GetContainingDollop( - libIRDB::Instruction_t *insn)=0; + virtual Zipr_SDK::Dollop_t *getContainingDollop( + IRDB_SDK::Instruction_t *insn)=0; /* * Add a dollop patch to the dollop manager. diff --git a/include/memory_space.h b/include/memory_space.h index 97b58334ebc2ea30628e92d3a098535a52559f56..47c94dcb5d7b10d1b8ea7936ed29197f0bfa0911 100644 --- a/include/memory_space.h +++ b/include/memory_space.h @@ -48,11 +48,11 @@ class MemorySpace_t : public std::map<RangeAddress_t,char> virtual void MergeFreeRange(RangeAddress_t addr)=0; virtual void MergeFreeRange(Range_t range)=0; virtual RangeSet_t::iterator FindFreeRange(RangeAddress_t addr)=0; - virtual Range_t GetFreeRange(int size)=0; - virtual Range_t GetInfiniteFreeRange()=0; - virtual std::list<Range_t> GetFreeRanges(size_t size = 0) = 0; + virtual Range_t getFreeRange(int size)=0; + virtual Range_t getInfiniteFreeRange()=0; + virtual std::list<Range_t> getFreeRanges(size_t size = 0) = 0; virtual std::pair<RangeSet_t::const_iterator,RangeSet_t::const_iterator> - GetNearbyFreeRanges(const RangeAddress_t hint, size_t count = 0) = 0; + getNearbyFreeRanges(const RangeAddress_t hint, size_t count = 0) = 0; virtual void AddFreeRange(Range_t newRange)=0; virtual void RemoveFreeRange(Range_t newRange)=0; virtual Range_t GetLargeRange(void)=0; diff --git a/include/range.h b/include/range.h index b833a44dbf741487befc934cb8e2e106f5a189b8..93cd8e0c87d4c05c0a25c7d7d89697dc9f976f01 100644 --- a/include/range.h +++ b/include/range.h @@ -44,8 +44,8 @@ class Range_t Range_t(RangeAddress_t p_s, RangeAddress_t p_e) : m_start(p_s), m_end(p_e) { } Range_t() : m_start(0), m_end(0) { } - virtual RangeAddress_t GetStart() const { return m_start; } - virtual RangeAddress_t GetEnd() const { return m_end; } + virtual RangeAddress_t getStart() const { return m_start; } + virtual RangeAddress_t getEnd() const { return m_end; } virtual void SetStart(RangeAddress_t s) { m_start=s; } virtual void SetEnd(RangeAddress_t e) { m_end=e; } @@ -72,7 +72,7 @@ struct Range_tCompare { bool operator() (const Range_t first, const Range_t second) const { - return first.GetEnd() < second.GetStart(); + return first.getEnd() < second.getStart(); } }; diff --git a/include/zipr.h b/include/zipr.h index 1ec2fa4da22cb6ccb5c6157688f7a89a2f25d990..48416dedfb81e8494399631c2a5598c6724fb0eb 100644 --- a/include/zipr.h +++ b/include/zipr.h @@ -67,10 +67,10 @@ class Zipr_t RangeAddress_t = 0) = 0; virtual MemorySpace_t *GetMemorySpace()=0; - virtual ELFIO::elfio *GetELFIO()=0; - virtual libIRDB::FileIR_t *GetFileIR()=0; + virtual ELFIO::elfio *getELFIO()=0; + virtual IRDB_SDK::FileIR_t *getFileIR()=0; virtual InstructionLocationMap_t *GetLocationMap()=0; - virtual DollopManager_t *GetDollopManager()=0; + virtual DollopManager_t *getDollopManager()=0; virtual PlacementQueue_t* GetPlacementQueue()=0; virtual void ApplyPatch( RangeAddress_t from_addr, diff --git a/include/zipr_options.h b/include/zipr_options.h index 48da4742030f4336a9076bd3d38168e3c735e537..2f2d1d967f123e9377c0d758d033a55429311168 100644 --- a/include/zipr_options.h +++ b/include/zipr_options.h @@ -33,7 +33,7 @@ #include <string> #include <unistd.h> -#include <libIRDB-core.hpp> +#include <irdb-core> #include <iostream> #include <sstream> @@ -90,7 +90,7 @@ class ZiprOption_t bool NeedsValue() { return m_needs_value; } - void SetTakesValue(bool takes_value) { + void setTakesValue(bool takes_value) { m_takes_value = takes_value; } bool TakesValue() { @@ -112,7 +112,7 @@ class ZiprOption_t } - void SetDescription(std::string description) { + void setDescription(std::string description) { m_description = description; } diff --git a/include/zipr_plugin.h b/include/zipr_plugin.h index 7ed59a5dd226f02be738362220713319006cfc0a..908bc7896bd4cb67e6987c6f30ca6cf77044c2d3 100644 --- a/include/zipr_plugin.h +++ b/include/zipr_plugin.h @@ -1,7 +1,7 @@ namespace Zipr_SDK { -typedef std::map<libIRDB::Instruction_t*,Zipr_SDK::RangeAddress_t> InstructionLocationMap_t; +typedef std::map<IRDB_SDK::Instruction_t*,Zipr_SDK::RangeAddress_t> InstructionLocationMap_t; enum ZiprPreference { None, @@ -35,12 +35,12 @@ class ZiprPluginInterface_t return None; } - virtual bool WillPluginPlop(libIRDB::Instruction_t*) + virtual bool WillPluginPlop(IRDB_SDK::Instruction_t*) { return false; } - virtual size_t InsnSize(libIRDB::Instruction_t*, bool) + virtual size_t InsnSize(IRDB_SDK::Instruction_t*, bool) { return 0; } diff --git a/include/zipr_sdk.h b/include/zipr_sdk.h index 4c2a092bde6ca576a740660526e6d94986754f24..c894e74972243dfe24944af99fe256900c5a38dc 100644 --- a/include/zipr_sdk.h +++ b/include/zipr_sdk.h @@ -40,7 +40,7 @@ // IRDB includes -#include <libIRDB-core.hpp> +#include <irdb-core> // elfio includes #include "elfio/elfio.hpp"