-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include nested dependencies in standalone code generation (#2480)
- Loading branch information
1 parent
01fb045
commit 7c835e3
Showing
6 changed files
with
258 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
// Bindings generated by `windows-bindgen` 0.49.0 | ||
|
||
#![allow( | ||
non_snake_case, | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
dead_code, | ||
clippy::all | ||
)] | ||
#[repr(C)] | ||
pub struct DEVMODEW { | ||
pub dmDeviceName: [u16; 32], | ||
pub dmSpecVersion: u16, | ||
pub dmDriverVersion: u16, | ||
pub dmSize: u16, | ||
pub dmDriverExtra: u16, | ||
pub dmFields: DEVMODE_FIELD_FLAGS, | ||
pub Anonymous1: DEVMODEW_0, | ||
pub dmColor: DEVMODE_COLOR, | ||
pub dmDuplex: DEVMODE_DUPLEX, | ||
pub dmYResolution: i16, | ||
pub dmTTOption: DEVMODE_TRUETYPE_OPTION, | ||
pub dmCollate: DEVMODE_COLLATE, | ||
pub dmFormName: [u16; 32], | ||
pub dmLogPixels: u16, | ||
pub dmBitsPerPel: u32, | ||
pub dmPelsWidth: u32, | ||
pub dmPelsHeight: u32, | ||
pub Anonymous2: DEVMODEW_1, | ||
pub dmDisplayFrequency: u32, | ||
pub dmICMMethod: u32, | ||
pub dmICMIntent: u32, | ||
pub dmMediaType: u32, | ||
pub dmDitherType: u32, | ||
pub dmReserved1: u32, | ||
pub dmReserved2: u32, | ||
pub dmPanningWidth: u32, | ||
pub dmPanningHeight: u32, | ||
} | ||
impl ::core::marker::Copy for DEVMODEW {} | ||
impl ::core::clone::Clone for DEVMODEW { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
#[repr(C)] | ||
pub union DEVMODEW_0 { | ||
pub Anonymous1: DEVMODEW_0_0, | ||
pub Anonymous2: DEVMODEW_0_1, | ||
} | ||
impl ::core::marker::Copy for DEVMODEW_0 {} | ||
impl ::core::clone::Clone for DEVMODEW_0 { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
#[repr(C)] | ||
pub struct DEVMODEW_0_0 { | ||
pub dmOrientation: i16, | ||
pub dmPaperSize: i16, | ||
pub dmPaperLength: i16, | ||
pub dmPaperWidth: i16, | ||
pub dmScale: i16, | ||
pub dmCopies: i16, | ||
pub dmDefaultSource: i16, | ||
pub dmPrintQuality: i16, | ||
} | ||
impl ::core::marker::Copy for DEVMODEW_0_0 {} | ||
impl ::core::clone::Clone for DEVMODEW_0_0 { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
#[repr(C)] | ||
pub struct DEVMODEW_0_1 { | ||
pub dmPosition: POINTL, | ||
pub dmDisplayOrientation: DEVMODE_DISPLAY_ORIENTATION, | ||
pub dmDisplayFixedOutput: DEVMODE_DISPLAY_FIXED_OUTPUT, | ||
} | ||
impl ::core::marker::Copy for DEVMODEW_0_1 {} | ||
impl ::core::clone::Clone for DEVMODEW_0_1 { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
#[repr(C)] | ||
pub union DEVMODEW_1 { | ||
pub dmDisplayFlags: u32, | ||
pub dmNup: u32, | ||
} | ||
impl ::core::marker::Copy for DEVMODEW_1 {} | ||
impl ::core::clone::Clone for DEVMODEW_1 { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
pub type DEVMODE_COLLATE = u16; | ||
pub type DEVMODE_COLOR = u16; | ||
pub type DEVMODE_DISPLAY_FIXED_OUTPUT = u32; | ||
pub type DEVMODE_DISPLAY_ORIENTATION = u32; | ||
pub type DEVMODE_DUPLEX = u16; | ||
pub type DEVMODE_FIELD_FLAGS = u32; | ||
pub type DEVMODE_TRUETYPE_OPTION = u16; | ||
#[repr(C)] | ||
pub struct FILETIME { | ||
pub dwLowDateTime: u32, | ||
pub dwHighDateTime: u32, | ||
} | ||
impl ::core::marker::Copy for FILETIME {} | ||
impl ::core::clone::Clone for FILETIME { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
#[repr(C)] | ||
#[derive( | ||
::core::marker::Copy, | ||
::core::clone::Clone, | ||
::core::default::Default, | ||
::core::cmp::PartialEq, | ||
::core::cmp::Eq, | ||
::core::hash::Hash, | ||
)] | ||
pub struct GUID { | ||
pub data1: u32, | ||
pub data2: u16, | ||
pub data3: u16, | ||
pub data4: [u8; 8], | ||
} | ||
impl GUID { | ||
pub const fn from_u128(uuid: u128) -> Self { | ||
Self { | ||
data1: (uuid >> 96) as u32, | ||
data2: (uuid >> 80 & 0xffff) as u16, | ||
data3: (uuid >> 64 & 0xffff) as u16, | ||
data4: (uuid as u64).to_be_bytes(), | ||
} | ||
} | ||
} | ||
pub type HBITMAP = isize; | ||
pub type HENHMETAFILE = isize; | ||
pub type HGLOBAL = isize; | ||
pub type HRESULT = i32; | ||
pub type IEnumSTATSTG = *mut ::core::ffi::c_void; | ||
pub type ISequentialStream = *mut ::core::ffi::c_void; | ||
pub type IStorage = *mut ::core::ffi::c_void; | ||
pub type IStream = *mut ::core::ffi::c_void; | ||
pub type IUnknown = *mut ::core::ffi::c_void; | ||
pub type LOCKTYPE = i32; | ||
pub type PCWSTR = *const u16; | ||
#[repr(C)] | ||
pub struct POINTL { | ||
pub x: i32, | ||
pub y: i32, | ||
} | ||
impl ::core::marker::Copy for POINTL {} | ||
impl ::core::clone::Clone for POINTL { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
pub type PWSTR = *mut u16; | ||
pub type STATFLAG = i32; | ||
#[repr(C)] | ||
pub struct STATSTG { | ||
pub pwcsName: PWSTR, | ||
pub r#type: u32, | ||
pub cbSize: u64, | ||
pub mtime: FILETIME, | ||
pub ctime: FILETIME, | ||
pub atime: FILETIME, | ||
pub grfMode: STGM, | ||
pub grfLocksSupported: LOCKTYPE, | ||
pub clsid: GUID, | ||
pub grfStateBits: u32, | ||
pub reserved: u32, | ||
} | ||
impl ::core::marker::Copy for STATSTG {} | ||
impl ::core::clone::Clone for STATSTG { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
pub type STGC = i32; | ||
pub type STGM = u32; | ||
#[repr(C)] | ||
pub struct STGMEDIUM { | ||
pub tymed: TYMED, | ||
pub u: STGMEDIUM_0, | ||
pub pUnkForRelease: IUnknown, | ||
} | ||
impl ::core::marker::Copy for STGMEDIUM {} | ||
impl ::core::clone::Clone for STGMEDIUM { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
#[repr(C)] | ||
pub union STGMEDIUM_0 { | ||
pub hBitmap: HBITMAP, | ||
pub hMetaFilePict: *mut ::core::ffi::c_void, | ||
pub hEnhMetaFile: HENHMETAFILE, | ||
pub hGlobal: HGLOBAL, | ||
pub lpszFileName: PWSTR, | ||
pub pstm: IStream, | ||
pub pstg: IStorage, | ||
} | ||
impl ::core::marker::Copy for STGMEDIUM_0 {} | ||
impl ::core::clone::Clone for STGMEDIUM_0 { | ||
fn clone(&self) -> Self { | ||
*self | ||
} | ||
} | ||
pub type STGMOVE = i32; | ||
pub type STREAM_SEEK = u32; | ||
pub type TYMED = i32; |