1 #![allow(non_camel_case_types)] 2 3 use std::os::raw::*; 4 pub type RROutput = c_ulong; 5 pub type VisualID = c_uint; 6 pub type Display = *const c_void; 7 pub type Window = c_ulong; 8 pub type xcb_connection_t = c_void; 9 pub type xcb_window_t = u32; 10 pub type xcb_visualid_t = u32; 11 pub type MirConnection = *const c_void; 12 pub type MirSurface = *const c_void; 13 pub type HINSTANCE = *const c_void; 14 pub type HWND = *const c_void; 15 pub type wl_display = c_void; 16 pub type wl_surface = c_void; 17 pub type HANDLE = *mut c_void; 18 pub type HMONITOR = HANDLE; 19 pub type DWORD = c_ulong; 20 pub type LPCWSTR = *const u16; 21 pub type zx_handle_t = u32; 22 pub type _screen_context = c_void; 23 pub type _screen_window = c_void; 24 pub type SECURITY_ATTRIBUTES = c_void; 25 // Opaque types 26 pub type ANativeWindow = c_void; 27 pub type AHardwareBuffer = c_void; 28 pub type CAMetalLayer = c_void; 29 // This definition is behind an NDA with a best effort guess from 30 // https://github.com/google/gapid/commit/22aafebec4638c6aaa77667096bca30f6e842d95#diff-ab3ab4a7d89b4fc8a344ff4e9332865f268ea1669ee379c1b516a954ecc2e7a6R20-R21 31 pub type GgpStreamDescriptor = u32; 32 pub type GgpFrameToken = u64; 33 pub type IDirectFB = c_void; 34 pub type IDirectFBSurface = c_void; 35 pub type __IOSurface = c_void; 36 pub type IOSurfaceRef = *mut __IOSurface; 37 pub type MTLBuffer_id = *mut c_void; 38 pub type MTLCommandQueue_id = *mut c_void; 39 pub type MTLDevice_id = *mut c_void; 40 pub type MTLSharedEvent_id = *mut c_void; 41 pub type MTLTexture_id = *mut c_void; 42