From 651462a342b7c835c3dbebe0428ec13d68407e45 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sun, 2 Feb 2020 01:42:59 -0800 Subject: [PATCH] Fix XCB types (#267) --- ash/src/vk.rs | 4 ++-- generator/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ash/src/vk.rs b/ash/src/vk.rs index 8b469d2..beea055 100644 --- a/ash/src/vk.rs +++ b/ash/src/vk.rs @@ -45,11 +45,11 @@ pub type VisualID = c_uint; pub type Display = *const c_void; pub type Window = c_ulong; #[allow(non_camel_case_types)] -pub type xcb_connection_t = *const c_void; +pub type xcb_connection_t = c_void; #[allow(non_camel_case_types)] pub type xcb_window_t = u32; #[allow(non_camel_case_types)] -pub type xcb_visualid_t = *const c_void; +pub type xcb_visualid_t = u32; pub type MirConnection = *const c_void; pub type MirSurface = *const c_void; pub type HINSTANCE = *const c_void; diff --git a/generator/src/lib.rs b/generator/src/lib.rs index dd71e92..d3da613 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -341,11 +341,11 @@ pub fn platform_specific_types() -> Tokens { pub type Display = *const c_void; pub type Window = c_ulong; #[allow(non_camel_case_types)] - pub type xcb_connection_t = *const c_void; + pub type xcb_connection_t = c_void; #[allow(non_camel_case_types)] pub type xcb_window_t = u32; #[allow(non_camel_case_types)] - pub type xcb_visualid_t = *const c_void; + pub type xcb_visualid_t = u32; pub type MirConnection = *const c_void; pub type MirSurface = *const c_void; pub type HINSTANCE = *const c_void;