From 764063b2b44dbeba5f2f318c971e4f4acfb48427 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 7 Jul 2021 08:26:29 -0400 Subject: Refactor Python Types Remove _mutable types --- binaryninjaapi.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 62fdb965..ba955230 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2820,7 +2820,8 @@ __attribute__ ((format (printf, 1, 2))) static Ref NamedType(const QualifiedName& name, Type* type); static Ref NamedType(const std::string& id, const QualifiedName& name, Type* type); static Ref NamedType(BinaryView* view, const QualifiedName& name); - static Ref EnumerationType(Architecture* arch, Enumeration* enm, size_t width = 0, bool issigned = false); + static Ref EnumerationType(Architecture* arch, Enumeration* enm, size_t width = 0, bool isSigned = false); + static Ref EnumerationType(Enumeration* enm, size_t width, bool isSigned = false); static Ref PointerType(Architecture* arch, const Confidence>& type, const Confidence& cnst = Confidence(false, 0), const Confidence& vltl = Confidence(false, 0), BNReferenceType refType = PointerReferenceType); @@ -3044,7 +3045,7 @@ __attribute__ ((format (printf, 1, 2))) size_t GetAlignment() const; bool IsPacked() const; bool IsUnion() const; - BNStructureType GetStructureType() const; + BNStructureVariant GetStructureType() const; Ref WithReplacedStructure(Structure* from, Structure* to); Ref WithReplacedEnumeration(Enumeration* from, Enumeration* to); @@ -3058,7 +3059,7 @@ __attribute__ ((format (printf, 1, 2))) public: StructureBuilder(); StructureBuilder(BNStructureBuilder* s); - StructureBuilder(BNStructureType type, bool packed = false); + StructureBuilder(BNStructureVariant type, bool packed = false); StructureBuilder(const StructureBuilder& s); StructureBuilder(StructureBuilder&& s); StructureBuilder(Structure* s); @@ -3081,8 +3082,8 @@ __attribute__ ((format (printf, 1, 2))) bool IsPacked() const; StructureBuilder& SetPacked(bool packed); bool IsUnion() const; - StructureBuilder& SetStructureType(BNStructureType type); - BNStructureType GetStructureType() const; + StructureBuilder& SetStructureType(BNStructureVariant type); + BNStructureVariant GetStructureType() const; StructureBuilder& AddMember(const Confidence>& type, const std::string& name); StructureBuilder& AddMemberAtOffset(const Confidence>& type, const std::string& name, uint64_t offset, bool overwriteExisting = true); -- cgit v1.3.1