From e915356b1a1f04ad55ffe68f8582b78dc54c21fe Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 11 Dec 2024 14:51:36 +0800 Subject: Support setting a function type using a typedef-ed function type. Fix --- ui/commands.h | 5 +++++ 1 file changed, 5 insertions(+) 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 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); + /*! @} */ -- cgit v1.3.1