From b26a85dda211a0f1f00eecc37441e1725c5ef898 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 30 Jun 2025 10:31:08 -0400 Subject: Expose Add/RemoveDataReference and ensure BinaryViews use this API instead of the _user_ variant --- binaryview.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index bad12407..598f666c 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -2524,6 +2524,18 @@ vector 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); -- cgit v1.3.1