summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2024-09-26 01:33:07 -0400
committerGlenn Smith <glenn@vector35.com>2024-10-14 16:59:09 -0400
commit2161816481322887864999289688022906323855 (patch)
tree0b8ab579b7b288af71dbbf446fc54a9142c5236b /binaryninjaapi.h
parent8747681904104688158650354128100257896501 (diff)
Add various missing Type/TypeBuilder getters and settersa
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h15
1 files changed, 15 insertions, 0 deletions
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<Ref<CallingConvention>> 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<bool> 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<Ref<Type>> GetChildType() const;
Confidence<Ref<CallingConvention>> GetCallingConvention() const;
+ BNCallingConventionName GetCallingConventionName() const;
std::vector<FunctionParameter> GetParameters() const;
Confidence<bool> HasVariableArguments() const;
Confidence<bool> CanReturn() const;
@@ -9159,6 +9172,8 @@ namespace BinaryNinja {
TypeBuilder& SetConst(const Confidence<bool>& cnst);
TypeBuilder& SetVolatile(const Confidence<bool>& vltl);
TypeBuilder& SetChildType(const Confidence<Ref<Type>>& child);
+ TypeBuilder& SetCallingConvention(const Confidence<Ref<CallingConvention>>& cc);
+ TypeBuilder& SetCallingConventionName(BNCallingConventionName cc);
TypeBuilder& SetSigned(const Confidence<bool>& vltl);
TypeBuilder& SetTypeName(const QualifiedName& name);
TypeBuilder& SetAlternateName(const std::string& name);