summaryrefslogtreecommitdiff
path: root/ui/commands.h
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2024-12-11 14:51:36 +0800
committerXusheng <xusheng@vector35.com>2024-12-11 14:51:36 +0800
commite915356b1a1f04ad55ffe68f8582b78dc54c21fe (patch)
treedbaafd97aadda763eb2aa7fb34569ddb232e1274 /ui/commands.h
parent8b212f865c2da667dfe791ecf4d994e56228ea85 (diff)
Support setting a function type using a typedef-ed function type. Fix
Diffstat (limited to 'ui/commands.h')
-rw-r--r--ui/commands.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/commands.h b/ui/commands.h
index 37ed068a..08691703 100644
--- a/ui/commands.h
+++ b/ui/commands.h
@@ -66,6 +66,11 @@ bool IsDefaultArgumentOrParameterName(const std::string& name);
std::optional<std::string> GetVariableNameFromExpr(BinaryNinja::Function* func,
const BinaryNinja::HighLevelILInstruction& instr);
+// Return a function type for a given type. The input type can be a function type itself, or a pointer to a function
+// type, or a NTR to a pointer to a function type. This is used when the user set the type of function using a
+// typedef-ed type
+TypeRef GetFunctionType(BinaryViewRef data, TypeRef type);
+
/*!
@}
*/