From 9c570077a562b4c45e80e6d0cf32f00909e8ebd1 Mon Sep 17 00:00:00 2001 From: Stephen Tong Date: Thu, 23 May 2019 18:45:59 -0400 Subject: Redo/Undo support for user-defined xrefs --- function.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 7ef0926c..54c91541 100644 --- a/function.cpp +++ b/function.cpp @@ -245,12 +245,19 @@ void Function::SetCommentForAddress(uint64_t addr, const string& comment) BNSetCommentForAddress(m_object, addr, comment.c_str()); } + void Function::SetUserXref(uint64_t addr, uint64_t target) { BNSetUserXref(m_object, addr, target); } +void Function::RemoveUserXref(uint64_t addr, uint64_t target) +{ + BNRemoveUserXref(m_object, addr, target); +} + + Ref Function::GetLowLevelIL() const { return new LowLevelILFunction(BNGetFunctionLowLevelIL(m_object)); -- cgit v1.3.1