summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-01-18 09:31:18 -0500
committerPeter LaFosse <peter@vector35.com>2022-01-19 10:52:42 -0500
commit28cdd331752203f771990844699463d47724e840 (patch)
tree778a710d6e9ffba9345efcb74b3d11a48c739c2d /binaryninjaapi.h
parent5d66fab3c2b36a14f9efd119a818c48c0950394a (diff)
Add getters and setters for syscall number in type objects
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index a852290d..0fc38edd 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -2790,6 +2790,7 @@ __attribute__ ((format (printf, 1, 2)))
Confidence<bool> IsSigned() const;
Confidence<bool> IsConst() const;
Confidence<bool> IsVolatile() const;
+ bool IsSystemCall() const;
Confidence<Ref<Type>> GetChildType() const;
Confidence<Ref<CallingConvention>> GetCallingConvention() const;
@@ -2803,7 +2804,7 @@ __attribute__ ((format (printf, 1, 2)))
Confidence<int64_t> GetStackAdjustment() const;
QualifiedName GetStructureName() const;
Ref<NamedTypeReference> GetRegisteredName() const;
-
+ uint32_t GetSystemCallNumber() const;
BNIntegerDisplayType GetIntegerTypeDisplayType() const;
uint64_t GetElementCount() const;
@@ -2914,6 +2915,7 @@ __attribute__ ((format (printf, 1, 2)))
Confidence<bool> IsSigned() const;
Confidence<bool> IsConst() const;
Confidence<bool> IsVolatile() const;
+ bool IsSystemCall() const;
void SetIntegerTypeDisplayType(BNIntegerDisplayType displayType);
Confidence<Ref<Type>> GetChildType() const;
@@ -2932,11 +2934,13 @@ __attribute__ ((format (printf, 1, 2)))
TypeBuilder& SetSigned(const Confidence<bool>& vltl);
TypeBuilder& SetTypeName(const QualifiedName& name);
TypeBuilder& SetAlternateName(const std::string& name);
+ TypeBuilder& SetSystemCall(bool sc, uint32_t n = 0);
Confidence<int64_t> GetStackAdjustment() const;
QualifiedName GetStructureName() const;
uint64_t GetElementCount() const;
uint64_t GetOffset() const;
+ uint32_t GetSystemCallNumber() const;
TypeBuilder& SetFunctionCanReturn(const Confidence<bool>& canReturn);
TypeBuilder& SetParameters(const std::vector<FunctionParameter>& params);