summaryrefslogtreecommitdiff
path: root/ui/commands.h
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-11-16 17:51:46 +0800
committerXusheng <xusheng@vector35.com>2021-02-17 12:05:47 +0800
commitd9b1df165f9daad6a5229718ecd0ee50a5ef6bf1 (patch)
tree6307b8c16c80f8203bdb96ebc3d54a8d9f10b3bf /ui/commands.h
parentb651141704a555cf0b6c53152ab0f70d011ec8af (diff)
add support for type xref and variable xref
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);