From d9b1df165f9daad6a5229718ecd0ee50a5ef6bf1 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 16 Nov 2020 17:51:46 +0800 Subject: add support for type xref and variable xref --- ui/commands.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/commands.h') diff --git a/ui/commands.h b/ui/commands.h index d0e8b981..a47f9ab5 100644 --- a/ui/commands.h +++ b/ui/commands.h @@ -33,7 +33,10 @@ bool BINARYNINJAUIAPI overwriteCode(BinaryViewRef data, ArchitectureRef arch, StructureRef BINARYNINJAUIAPI getInnerMostStructureContaining(BinaryViewRef data, StructureRef structure, size_t& memberIndex, const std::vector& nameList, size_t nameIndex, TypeRef& type, std::string& typeName); StructureRef BINARYNINJAUIAPI getInnerMostStructureContainingOffset(BinaryViewRef data, StructureRef structure, - const std::vector& nameList, size_t nameIndex, size_t& offset, TypeRef& type, std::string& typeName); + const std::vector& nameList, size_t nameIndex, size_t offset, TypeRef& type, std::string& typeName); +// Get the offset of the inner most structure, ralative to the supplied outer most structure +uint64_t BINARYNINJAUIAPI getInnerMostStructureOffset(BinaryViewRef data, StructureRef structure, + const std::vector& nameList, size_t nameIndex); // Auto generate a structure name std::string BINARYNINJAUIAPI createStructureName(BinaryViewRef data); -- cgit v1.3.1