From db48820f5fed420ad298278e8e6b055baa4ddf06 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 13 Sep 2019 09:56:00 -0400 Subject: Type workflow improvements Expand type context for data renderers Add additional linearview helper routines for defining variables inside of structures fix unit tests --- 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 f95664f1..0a591437 100644 --- a/ui/commands.h +++ b/ui/commands.h @@ -18,7 +18,7 @@ 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 createInferredMember(QWidget* parent, BinaryViewRef data, HighlightTokenState& highlight, FunctionRef func); bool BINARYNINJAUIAPI overwriteCode(BinaryViewRef data, ArchitectureRef arch, uint64_t addr, size_t len, const BinaryNinja::DataBuffer& buffer); @@ -29,3 +29,6 @@ StructureRef BINARYNINJAUIAPI getInnerMostStructureContaining(BinaryViewRef data 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); + +// Auto generate a structure name +std::string BINARYNINJAUIAPI createStructureName(BinaryViewRef data); \ No newline at end of file -- cgit v1.3.1