From 10b6e9ae50c35cd5582d2325bfa767ce8083220e Mon Sep 17 00:00:00 2001 From: rollsafe Date: Thu, 30 May 2019 17:27:08 -0400 Subject: Support adding user-defined xrefs --- binaryninjaapi.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 10c64642..fe763064 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1413,10 +1413,13 @@ namespace BinaryNinja std::vector GetCodeReferences(uint64_t addr); std::vector GetCodeReferences(uint64_t addr, uint64_t len); + std::vector GetDataReferences(uint64_t addr); std::vector GetDataReferences(uint64_t addr, uint64_t len); std::vector GetDataReferencesFrom(uint64_t addr); std::vector GetDataReferencesFrom(uint64_t addr, uint64_t len); + void AddUserDataReference(uint64_t fromAddr, uint64_t toAddr); + void RemoveUserDataReference(uint64_t fromAddr, uint64_t toAddr); Ref GetSymbolByAddress(uint64_t addr, const NameSpace& nameSpace=NameSpace()); Ref GetSymbolByRawName(const std::string& name, const NameSpace& nameSpace=NameSpace()); @@ -2588,8 +2591,8 @@ namespace BinaryNinja void SetComment(const std::string& comment); void SetCommentForAddress(uint64_t addr, const std::string& comment); - void SetUserXref(uint64_t addr, uint64_t target); - void RemoveUserXref(uint64_t addr, uint64_t target); + void AddUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr); + void RemoveUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr); Ref GetLowLevelIL() const; size_t GetLowLevelILForInstruction(Architecture* arch, uint64_t addr); -- cgit v1.3.1