diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-08-11 08:31:03 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-05 10:09:10 -0400 |
| commit | 55cf411c056ceb725d8172cc71318d32f5a3b207 (patch) | |
| tree | cd20baa655fdabe0207499835bcfe5a4f9ff227d /binaryninjaapi.h | |
| parent | c7b9b0330bc3b7121d8664a3eeec174739e5cc5e (diff) | |
Move MemberAccess/MemberScope to StructureMember
Fix rust AddStructureMemebers
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 11 |
1 files changed, 6 insertions, 5 deletions
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<Enumeration> GetEnumeration() const; Ref<NamedTypeReference> GetNamedTypeReference() const; Confidence<BNMemberScope> GetScope() const; - Confidence<BNMemberAccess> GetAccess() const; Confidence<int64_t> GetStackAdjustment() const; QualifiedName GetStructureName() const; Ref<NamedTypeReference> GetRegisteredName() const; @@ -2912,8 +2911,6 @@ __attribute__ ((format (printf, 1, 2))) Ref<NamedTypeReference> GetNamedTypeReference() const; Confidence<BNMemberScope> GetScope() const; TypeBuilder& SetScope(const Confidence<BNMemberScope>& scope); - Confidence<BNMemberAccess> GetAccess() const; - TypeBuilder& SetAccess(const Confidence<BNMemberAccess>& access); TypeBuilder& SetConst(const Confidence<bool>& cnst); TypeBuilder& SetVolatile(const Confidence<bool>& vltl); TypeBuilder& SetTypeName(const QualifiedName& name); @@ -3030,6 +3027,8 @@ __attribute__ ((format (printf, 1, 2))) Ref<Type> type; std::string name; uint64_t offset; + BNMemberAccess access; + BNMemberScope scope; }; class Structure: public CoreRefCountObject<BNStructure, BNNewStructureReference, BNFreeStructure> @@ -3084,9 +3083,11 @@ __attribute__ ((format (printf, 1, 2))) bool IsUnion() const; StructureBuilder& SetStructureType(BNStructureVariant type); BNStructureVariant GetStructureType() const; - StructureBuilder& AddMember(const Confidence<Ref<Type>>& type, const std::string& name); + StructureBuilder& AddMember(const Confidence<Ref<Type>>& type, const std::string& name, + BNMemberAccess access = NoAccess, BNMemberScope scope = NoScope); StructureBuilder& AddMemberAtOffset(const Confidence<Ref<Type>>& 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<Ref<Type>>& type, const std::string& name, bool overwriteExisting = true); }; |
