summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2026-05-03 02:30:34 -0400
committerGlenn Smith <glenn@vector35.com>2026-05-20 17:10:35 -0400
commit23f619a047ff754eafb84a6ec5f666bbe9e47711 (patch)
tree9d128bc11c50c2a2bb9fbaa5ce291062afa9b979 /binaryninjaapi.h
parent06611c17ae5ee5936889ff029cac042fdba8a0c5 (diff)
Sort switch blocks in graph view by case number
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h6
1 files changed, 6 insertions, 0 deletions
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<std::vector<InstructionTextToken>> GetAnnotations();
+ /*! Hint for sorting this block in graph layouts
+
+ \return Integer for sorting this block, if defined
+ */
+ std::optional<int64_t> 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<std::vector<InstructionTextToken>> GetBlockAnnotations(Architecture* arch, uint64_t addr);
+ std::optional<int64_t> GetBlockSortHint(Architecture* arch, uint64_t addr);
BNIntegerDisplayType GetIntegerConstantDisplayType(
Architecture* arch, uint64_t instrAddr, uint64_t value, size_t operand);