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 --- binaryninjaapi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 2457bf6e..edac64b8 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -5548,6 +5548,21 @@ namespace BinaryNinja { */ std::vector GetDataReferencesFrom(uint64_t addr, uint64_t len); + + /*! Add an auto Data Reference from a virtual address to another virtual address + + \param fromAddr Address referencing the toAddr value + \param toAddr virtual address being referenced + */ + void AddDataReference(uint64_t fromAddr, uint64_t toAddr); + + /*! Remove an auto Data Reference from a virtual address to another virtual address + + \param fromAddr Address referencing the toAddr value + \param toAddr virtual address being referenced + */ + void RemoveDataReference(uint64_t fromAddr, uint64_t toAddr); + /*! Add a user Data Reference from a virtual address to another virtual address \param fromAddr Address referencing the toAddr value -- cgit v1.3.1