From fccd7d13d9979cbdca3251f4695bc91840252efa Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 21 Oct 2022 18:57:27 +0200 Subject: Unify *::viewInTypesView into UIContext::navigateToType --- ui/uicontext.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/uicontext.h') diff --git a/ui/uicontext.h b/ui/uicontext.h index 070f59cb..424411ab 100644 --- a/ui/uicontext.h +++ b/ui/uicontext.h @@ -264,6 +264,13 @@ class BINARYNINJAUIAPI UIContext virtual QMainWindow* mainWindow() = 0; virtual void viewChanged(ViewFrame* frame, const QString& type); virtual bool navigateForBinaryView(BinaryViewRef view, uint64_t addr); + /*! + Navigate to a named type in the context, optionally at a member offset + \param name Name of type to which to navigate + \param offset Offset of member in type to which to navigate + \return True if navigation succeeded + */ + virtual bool navigateToType(const std::string& name, uint64_t offset = 0) = 0; /*! Get a list of all opened binary views, and their names -- cgit v1.3.1