From 28cdd331752203f771990844699463d47724e840 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 18 Jan 2022 09:31:18 -0500 Subject: Add getters and setters for syscall number in type objects --- binaryninjaapi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') 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 IsSigned() const; Confidence IsConst() const; Confidence IsVolatile() const; + bool IsSystemCall() const; Confidence> GetChildType() const; Confidence> GetCallingConvention() const; @@ -2803,7 +2804,7 @@ __attribute__ ((format (printf, 1, 2))) Confidence GetStackAdjustment() const; QualifiedName GetStructureName() const; Ref GetRegisteredName() const; - + uint32_t GetSystemCallNumber() const; BNIntegerDisplayType GetIntegerTypeDisplayType() const; uint64_t GetElementCount() const; @@ -2914,6 +2915,7 @@ __attribute__ ((format (printf, 1, 2))) Confidence IsSigned() const; Confidence IsConst() const; Confidence IsVolatile() const; + bool IsSystemCall() const; void SetIntegerTypeDisplayType(BNIntegerDisplayType displayType); Confidence> GetChildType() const; @@ -2932,11 +2934,13 @@ __attribute__ ((format (printf, 1, 2))) TypeBuilder& SetSigned(const Confidence& vltl); TypeBuilder& SetTypeName(const QualifiedName& name); TypeBuilder& SetAlternateName(const std::string& name); + TypeBuilder& SetSystemCall(bool sc, uint32_t n = 0); Confidence GetStackAdjustment() const; QualifiedName GetStructureName() const; uint64_t GetElementCount() const; uint64_t GetOffset() const; + uint32_t GetSystemCallNumber() const; TypeBuilder& SetFunctionCanReturn(const Confidence& canReturn); TypeBuilder& SetParameters(const std::vector& params); -- cgit v1.3.1