| 1 | #![allow(non_camel_case_types)] |
| 2 | |
| 3 | use core::ffi::*; |
| 4 | pub type RROutput = c_ulong; |
| 5 | pub type VisualID = c_uint; |
| 6 | pub type Display = 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 | /// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Foundation/struct.HANDLE.html> |
| 14 | pub type HANDLE = isize; |
| 15 | /// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Foundation/struct.HINSTANCE.html> |
| 16 | pub type HINSTANCE = HANDLE; |
| 17 | /// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Foundation/struct.HWND.html> |
| 18 | pub type HWND = HANDLE; |
| 19 | /// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Graphics/Gdi/struct.HMONITOR.html> |
| 20 | pub type HMONITOR = HANDLE; |
| 21 | pub type wl_display = c_void; |
| 22 | pub type wl_surface = c_void; |
| 23 | pub type DWORD = c_ulong; |
| 24 | pub type LPCWSTR = *const u16; |
| 25 | pub type zx_handle_t = u32; |
| 26 | pub type _screen_buffer = c_void; |
| 27 | pub type _screen_context = c_void; |
| 28 | pub type _screen_window = c_void; |
| 29 | pub type SECURITY_ATTRIBUTES = c_void; |
| 30 | // Opaque types |
| 31 | pub type ANativeWindow = c_void; |
| 32 | pub type AHardwareBuffer = c_void; |
| 33 | pub type CAMetalLayer = c_void; |
| 34 | // This definition is behind an NDA with a best effort guess from |
| 35 | // https://github.com/google/gapid/commit/22aafebec4638c6aaa77667096bca30f6e842d95#diff-ab3ab4a7d89b4fc8a344ff4e9332865f268ea1669ee379c1b516a954ecc2e7a6R20-R21 |
| 36 | pub type GgpStreamDescriptor = u32; |
| 37 | pub type GgpFrameToken = u64; |
| 38 | pub type IDirectFB = c_void; |
| 39 | pub type IDirectFBSurface = c_void; |
| 40 | pub type __IOSurface = c_void; |
| 41 | pub type IOSurfaceRef = *mut __IOSurface; |
| 42 | pub type MTLBuffer_id = *mut c_void; |
| 43 | pub type MTLCommandQueue_id = *mut c_void; |
| 44 | pub type MTLDevice_id = *mut c_void; |
| 45 | pub type MTLSharedEvent_id = *mut c_void; |
| 46 | pub type MTLTexture_id = *mut c_void; |