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 /rust/src | |
| parent | c7b9b0330bc3b7121d8664a3eeec174739e5cc5e (diff) | |
Move MemberAccess/MemberScope to StructureMember
Fix rust AddStructureMemebers
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/types.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs index 45ea6d7d..c56611d0 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -1203,7 +1203,7 @@ impl ToOwned for Enumeration { ////////////////////// // StructureBuilder -pub type StructureType = BNStructureType; +pub type StructureType = BNStructureVariant; #[derive(PartialEq, Eq, Hash)] pub struct StructureBuilder { @@ -1263,10 +1263,12 @@ impl StructureBuilder { &'a mut self, t: T, name: S, + access: BNMemberAccess, + scope: BNMemberScope, ) -> &'a mut Self { let name = name.as_bytes_with_nul(); unsafe { - BNAddStructureBuilderMember(self.handle, &t.into().into(), name.as_ref().as_ptr() as _); + BNAddStructureBuilderMember(self.handle, &t.into().into(), name.as_ref().as_ptr() as _, access, scope); } self @@ -1278,6 +1280,8 @@ impl StructureBuilder { name: S, offset: u64, overwrite_existing: bool, + access: BNMemberAccess, + scope: BNMemberScope, ) -> &'a mut Self { let name = name.as_bytes_with_nul(); unsafe { @@ -1287,6 +1291,8 @@ impl StructureBuilder { name.as_ref().as_ptr() as _, offset, overwrite_existing, + access, + scope ); } |
