summaryrefslogtreecommitdiff
path: root/ui/commands.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2019-08-27 07:37:10 -0400
committerPeter LaFosse <peter@vector35.com>2019-08-27 07:37:15 -0400
commit5019d87a1936a07f86512d6de5cbd4b0db3ea25b (patch)
treeb89783a027351987c11ecaaae9b39c3162adea96 /ui/commands.h
parent6d0c013a6b21aad1afdc413aea0392fe805adabd (diff)
Add support for showing structure offsets and inferring types via hotkey, add changing names/types of structure members from linear/graph view
Diffstat (limited to 'ui/commands.h')
-rw-r--r--ui/commands.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/commands.h b/ui/commands.h
index dd088850..f95664f1 100644
--- a/ui/commands.h
+++ b/ui/commands.h
@@ -18,12 +18,14 @@ bool BINARYNINJAUIAPI askForNewType(QWidget* parent, BinaryViewRef data, Functio
TypeRef& type, BinaryNinja::QualifiedName& name);
bool BINARYNINJAUIAPI inputNewType(QWidget* parent, BinaryViewRef data, FunctionRef currentFunction,
uint64_t currentAddr, HighlightTokenState& highlight);
+bool BINARYNINJAUIAPI createInferredMember(BinaryViewRef data, HighlightTokenState& highlight);
bool BINARYNINJAUIAPI overwriteCode(BinaryViewRef data, ArchitectureRef arch,
uint64_t addr, size_t len, const BinaryNinja::DataBuffer& buffer);
bool BINARYNINJAUIAPI overwriteCode(BinaryViewRef data, ArchitectureRef arch,
uint64_t addr, const BinaryNinja::DataBuffer& buffer);
-StructureRef BINARYNINJAUIAPI getInnerMostStructureContaining(
- StructureRef structure, size_t& memberIndex, const std::vector<std::string>& nameList,
- size_t nameIndex);
+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);