From 23f619a047ff754eafb84a6ec5f666bbe9e47711 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sun, 3 May 2026 02:30:34 -0400 Subject: Sort switch blocks in graph view by case number --- binaryninjaapi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 5a8398d2..bc36f633 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -12641,6 +12641,11 @@ namespace BinaryNinja { \return List of automatic annotations for the start of this block */ std::vector> GetAnnotations(); + /*! Hint for sorting this block in graph layouts + + \return Integer for sorting this block, if defined + */ + std::optional GetSortHint(); /*! property which returns a list of DisassemblyTextLine objects for the current basic block. @@ -13432,6 +13437,7 @@ namespace BinaryNinja { bool IsCallInstruction(Architecture* arch, uint64_t addr); std::vector> GetBlockAnnotations(Architecture* arch, uint64_t addr); + std::optional GetBlockSortHint(Architecture* arch, uint64_t addr); BNIntegerDisplayType GetIntegerConstantDisplayType( Architecture* arch, uint64_t instrAddr, uint64_t value, size_t operand); -- cgit v1.3.1