From 3607e3a8a94c1f1e16caa099bd81eaba6e182cb7 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Tue, 13 Feb 2024 13:10:11 -0500 Subject: Rename ExternalLocation APIs to be more clear, add ExternalLocation and ExternalLibrary API documentation --- binaryview.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index 057c0954..0dd6d8f8 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -5139,13 +5139,13 @@ std::vector> BinaryView::GetExternalLibraries() } -Ref BinaryView::AddExternalLocation(Ref internalSymbol, Ref library, std::optional externalSymbol, std::optional externalAddress, bool isAuto) +Ref BinaryView::AddExternalLocation(Ref sourceSymbol, Ref library, std::optional targetSymbol, std::optional targetAddress, bool isAuto) { BNExternalLocation* loc = BNBinaryViewAddExternalLocation(m_object, - internalSymbol->GetObject(), + sourceSymbol->GetObject(), library ? library->m_object : nullptr, - externalSymbol.has_value() ? externalSymbol.value().c_str() : nullptr, - externalAddress.has_value() ? &externalAddress.value() : nullptr, + targetSymbol.has_value() ? targetSymbol.value().c_str() : nullptr, + targetAddress.has_value() ? &targetAddress.value() : nullptr, isAuto ); @@ -5155,15 +5155,15 @@ Ref BinaryView::AddExternalLocation(Ref internalSymbol } -void BinaryView::RemoveExternalLocation(Ref internalSymbol) +void BinaryView::RemoveExternalLocation(Ref sourceSymbol) { - BNBinaryViewRemoveExternalLocation(m_object, internalSymbol->GetObject()); + BNBinaryViewRemoveExternalLocation(m_object, sourceSymbol->GetObject()); } -Ref BinaryView::GetExternalLocation(Ref internalSymbol) +Ref BinaryView::GetExternalLocation(Ref sourceSymbol) { - BNExternalLocation* loc = BNBinaryViewGetExternalLocation(m_object, internalSymbol->GetObject()); + BNExternalLocation* loc = BNBinaryViewGetExternalLocation(m_object, sourceSymbol->GetObject()); if (!loc) return nullptr; return new ExternalLocation(BNNewExternalLocationReference(loc)); -- cgit v1.3.1