From ef97d4703cfd08a4ccc3c00dac7cf84877875245 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 6 Mar 2025 19:54:50 -0500 Subject: Add API to insert Activities after a specified Activity. --- binaryninjaapi.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index a0ad6980..08e3feb5 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -10213,6 +10213,22 @@ namespace BinaryNinja { */ bool Insert(const std::string& activity, const std::vector& activities); + /*! Insert an activity after the specified activity and at the same level. + + \param activity Name of the activity to insert the new one after + \param newActivity Name of the new activity to be inserted + \return true on success, false otherwise + */ + bool InsertAfter(const std::string& activity, const std::string& newActivity); + + /*! Insert a list of activities after the specified activity and at the same level. + + \param activity Name of the activity to insert the new one after + \param newActivity Name of the new activities to be inserted + \return true on success, false otherwise + */ + bool InsertAfter(const std::string& activity, const std::vector& activities); + /*! Remove an activity by name \param activity Name of the activity to remove -- cgit v1.3.1