From e81b57c8daf00fdbf5d2405b0486927885765795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 2 Apr 2016 03:53:33 +0200 Subject: [PATCH] geckolib: Update bindings to repr(C) opaques --- ports/geckolib/gecko_style_structs.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ports/geckolib/gecko_style_structs.rs b/ports/geckolib/gecko_style_structs.rs index 84148ef6944..ab0dc6a6bcc 100644 --- a/ports/geckolib/gecko_style_structs.rs +++ b/ports/geckolib/gecko_style_structs.rs @@ -2276,6 +2276,7 @@ pub struct nsTHashtable { pub mTable: PLDHashTable, pub _phantom0: ::std::marker::PhantomData, } +#[repr(C)] pub struct nsDataHashtable; #[test] fn bindgen_test_layout_nsDataHashtable() { @@ -2323,6 +2324,7 @@ pub enum SheetType { } pub type nscolor = u32; pub type nscoord = i32; +#[repr(C)] pub struct nsIntPoint { pub _bindgen_opaque_blob: [u32; 2usize], } @@ -2373,6 +2375,7 @@ fn bindgen_test_layout_nsMargin() { assert_eq!(::std::mem::size_of::() , 16usize); assert_eq!(::std::mem::align_of::() , 4usize); } +#[repr(C)] pub struct nsIntMargin { pub _bindgen_opaque_blob: [u32; 4usize], } @@ -2462,6 +2465,7 @@ fn bindgen_test_layout_gfxAlternateValue() { assert_eq!(::std::mem::size_of::() , 24usize); assert_eq!(::std::mem::align_of::() , 8usize); } +#[repr(C)] pub struct gfxFontFeatureValueSet { pub _bindgen_opaque_blob: [u64; 8usize], } @@ -2505,6 +2509,7 @@ fn bindgen_test_layout_nsFont() { assert_eq!(::std::mem::size_of::() , 88usize); assert_eq!(::std::mem::align_of::() , 8usize); } +#[repr(C)] pub struct nsIntRect { pub _bindgen_opaque_blob: [u32; 4usize], } @@ -2691,6 +2696,7 @@ impl ::std::clone::Clone for nsIRequest { } pub enum nsIContentSecurityPolicy { } pub enum nsIDOMDocument { } +#[repr(C)] pub struct nsIPrincipal { pub _bindgen_opaque_blob: u64, } @@ -3321,6 +3327,7 @@ pub enum nsCSSPropertyLogicalGroup { eCSSPropertyLogicalGroup_COUNT = 10, } pub enum CSSStyleSheet { } +#[repr(C)] pub struct URLValue { pub _bindgen_opaque_blob: [u64; 7usize], } @@ -3329,6 +3336,7 @@ fn bindgen_test_layout_URLValue() { assert_eq!(::std::mem::size_of::() , 56usize); assert_eq!(::std::mem::align_of::() , 8usize); } +#[repr(C)] pub struct ImageValue { pub _bindgen_opaque_blob: [u64; 13usize], } @@ -3687,6 +3695,7 @@ fn bindgen_test_layout_nsCSSCornerSizes() { assert_eq!(::std::mem::align_of::() , 8usize); } pub enum imgIContainer { } +#[repr(C)] pub struct imgIRequest { pub _bindgen_opaque_blob: u64, } @@ -3700,6 +3709,7 @@ pub enum ProxyBehaviour { } pub enum Image { } pub enum ImageURL { } pub enum ProgressTracker { } +#[repr(C)] pub struct imgRequestProxy { pub _bindgen_opaque_blob: [u64; 15usize], } @@ -3708,6 +3718,7 @@ fn bindgen_test_layout_imgRequestProxy() { assert_eq!(::std::mem::size_of::() , 120usize); assert_eq!(::std::mem::align_of::() , 8usize); } +#[repr(C)] pub struct imgRequestProxyStatic { pub _bindgen_opaque_blob: [u64; 16usize], } @@ -3754,6 +3765,7 @@ fn bindgen_test_layout_AnonymousCounterStyle() { assert_eq!(::std::mem::size_of::() , 48usize); assert_eq!(::std::mem::align_of::() , 8usize); } +#[repr(C)] pub struct CounterStyleManager { pub _bindgen_opaque_blob: [u64; 9usize], }