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 --- binaryview.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index e0948a1c..547d1fc7 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1482,6 +1482,18 @@ vector BinaryView::GetDataReferencesFrom(uint64_t addr, uint64_t len) } +void BinaryView::AddUserDataReference(uint64_t fromAddr, uint64_t toAddr) +{ + BNAddUserDataReference(m_object, fromAddr, toAddr); +} + + +void BinaryView::RemoveUserDataReference(uint64_t fromAddr, uint64_t toAddr) +{ + BNRemoveUserDataReference(m_object, fromAddr, toAddr); +} + + Ref BinaryView::GetSymbolByAddress(uint64_t addr, const NameSpace& nameSpace) { BNNameSpace ns = nameSpace.GetAPIObject(); -- cgit v1.3.1