From 55cf411c056ceb725d8172cc71318d32f5a3b207 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 11 Aug 2021 08:31:03 -0400 Subject: Move MemberAccess/MemberScope to StructureMember Fix rust AddStructureMemebers --- binaryninjaapi.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index ba955230..d6b8c7ac 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2786,7 +2786,6 @@ __attribute__ ((format (printf, 1, 2))) Ref GetEnumeration() const; Ref GetNamedTypeReference() const; Confidence GetScope() const; - Confidence GetAccess() const; Confidence GetStackAdjustment() const; QualifiedName GetStructureName() const; Ref GetRegisteredName() const; @@ -2912,8 +2911,6 @@ __attribute__ ((format (printf, 1, 2))) Ref GetNamedTypeReference() const; Confidence GetScope() const; TypeBuilder& SetScope(const Confidence& scope); - Confidence GetAccess() const; - TypeBuilder& SetAccess(const Confidence& access); TypeBuilder& SetConst(const Confidence& cnst); TypeBuilder& SetVolatile(const Confidence& vltl); TypeBuilder& SetTypeName(const QualifiedName& name); @@ -3030,6 +3027,8 @@ __attribute__ ((format (printf, 1, 2))) Ref type; std::string name; uint64_t offset; + BNMemberAccess access; + BNMemberScope scope; }; class Structure: public CoreRefCountObject @@ -3084,9 +3083,11 @@ __attribute__ ((format (printf, 1, 2))) bool IsUnion() const; StructureBuilder& SetStructureType(BNStructureVariant type); BNStructureVariant GetStructureType() const; - StructureBuilder& AddMember(const Confidence>& type, const std::string& name); + StructureBuilder& AddMember(const Confidence>& type, const std::string& name, + BNMemberAccess access = NoAccess, BNMemberScope scope = NoScope); StructureBuilder& AddMemberAtOffset(const Confidence>& type, - const std::string& name, uint64_t offset, bool overwriteExisting = true); + const std::string& name, uint64_t offset, bool overwriteExisting = true, + BNMemberAccess access = NoAccess, BNMemberScope scope = NoScope); StructureBuilder& RemoveMember(size_t idx); StructureBuilder& ReplaceMember(size_t idx, const Confidence>& type, const std::string& name, bool overwriteExisting = true); }; -- cgit v1.3.1