From 2161816481322887864999289688022906323855 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 26 Sep 2024 01:33:07 -0400 Subject: Add various missing Type/TypeBuilder getters and settersa --- binaryninjaapi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 7bbd2d48..04d8bd6d 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -8721,6 +8721,12 @@ namespace BinaryNinja { */ Confidence> GetCallingConvention() const; + /*! For Function Types, get the calling convention name + + \return The calling convention name + */ + BNCallingConventionName GetCallingConventionName() const; + /*! For Function Types, get a list of parameters \return A vector of FunctionParameters @@ -8733,6 +8739,12 @@ namespace BinaryNinja { */ Confidence HasVariableArguments() const; + /*! Has no effect currently, just used by the demangler + + \return If the type has the "has template arguments" flag set + */ + bool HasTemplateArguments() const; + /*! For Function Types, whether a function can return (is not marked noreturn) \return Whether the function can return @@ -9142,6 +9154,7 @@ namespace BinaryNinja { Confidence> GetChildType() const; Confidence> GetCallingConvention() const; + BNCallingConventionName GetCallingConventionName() const; std::vector GetParameters() const; Confidence HasVariableArguments() const; Confidence CanReturn() const; @@ -9159,6 +9172,8 @@ namespace BinaryNinja { TypeBuilder& SetConst(const Confidence& cnst); TypeBuilder& SetVolatile(const Confidence& vltl); TypeBuilder& SetChildType(const Confidence>& child); + TypeBuilder& SetCallingConvention(const Confidence>& cc); + TypeBuilder& SetCallingConventionName(BNCallingConventionName cc); TypeBuilder& SetSigned(const Confidence& vltl); TypeBuilder& SetTypeName(const QualifiedName& name); TypeBuilder& SetAlternateName(const std::string& name); -- cgit v1.3.1