summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2025-06-30 10:31:08 -0400
committerMark Rowe <mark@vector35.com>2025-07-03 09:10:13 -0700
commitb26a85dda211a0f1f00eecc37441e1725c5ef898 (patch)
tree0f4157d209c00b93c8ba1d9a2e93f342209b924a /binaryview.cpp
parente96a7a078a9909fc1212861c9669e6af0b034e46 (diff)
Expose Add/RemoveDataReference and ensure BinaryViews use this API instead of the _user_ variant
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index bad12407..598f666c 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -2524,6 +2524,18 @@ vector<uint64_t> BinaryView::GetDataReferencesFrom(uint64_t addr, uint64_t len)
}
+void BinaryView::AddDataReference(uint64_t fromAddr, uint64_t toAddr)
+{
+ BNAddDataReference(m_object, fromAddr, toAddr);
+}
+
+
+void BinaryView::RemoveDataReference(uint64_t fromAddr, uint64_t toAddr)
+{
+ BNRemoveDataReference(m_object, fromAddr, toAddr);
+}
+
+
void BinaryView::AddUserDataReference(uint64_t fromAddr, uint64_t toAddr)
{
BNAddUserDataReference(m_object, fromAddr, toAddr);