summaryrefslogtreecommitdiff
path: root/ui/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/commands.h')
-rw-r--r--ui/commands.h5
1 files changed, 4 insertions, 1 deletions
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<std::string>& nameList, size_t nameIndex, TypeRef& type, std::string& typeName);
StructureRef BINARYNINJAUIAPI getInnerMostStructureContainingOffset(BinaryViewRef data, StructureRef structure,
- const std::vector<std::string>& nameList, size_t nameIndex, size_t& offset, TypeRef& type, std::string& typeName);
+ const std::vector<std::string>& 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<std::string>& nameList, size_t nameIndex);
// Auto generate a structure name
std::string BINARYNINJAUIAPI createStructureName(BinaryViewRef data);