summaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-04-15 12:17:15 +0200
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-04-15 12:17:15 +0200
commit447afe1c47a1eee9dfd8093e4fed6adeaadf7e22 (patch)
tree6937e4d1f91ed3f63bcbf1062a5b9fc58d78686f /src/types.rs
parent9d3fccc5ae374edfa9cf63933b3a5caeddf96bc4 (diff)
bindgen: Change how opaque comp types are managed
So it's not awfully broken.
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
index 54fce61c..0578d883 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -308,6 +308,11 @@ pub struct CompInfo {
pub has_destructor: bool,
pub has_nonempty_base: bool,
pub hide: bool,
+ /// If this struct should be replaced by an opaque blob.
+ ///
+ /// This is useful if for some reason we can't generate
+ /// the correct layout.
+ pub opaque: bool,
pub base_members: usize,
pub layout: Layout,
/// Typedef'd types names, that we'll resolve early to avoid name conflicts
@@ -347,6 +352,7 @@ impl CompInfo {
has_destructor: false,
has_nonempty_base: false,
hide: false,
+ opaque: false,
base_members: 0,
layout: layout,
typedefs: vec!(),