1#[repr(C)]
4#[derive(Debug, Copy, Clone)]
5pub struct DriverDescription_S {
6 pub symbolicname: *const ::std::os::raw::c_char,
7 pub explanation: *const ::std::os::raw::c_char,
8 pub suffix: *const ::std::os::raw::c_char,
9 pub additionalInfo: *const ::std::os::raw::c_char,
10 pub backendSupportsSubPaths: ::std::os::raw::c_int,
11 pub backendSupportsCurveto: ::std::os::raw::c_int,
12 pub backendSupportsMerging: ::std::os::raw::c_int,
13 pub backendSupportsText: ::std::os::raw::c_int,
14 pub backendSupportsImages: ::std::os::raw::c_int,
15 pub backendSupportsMultiplePages: ::std::os::raw::c_int,
16 #[cfg(feature = "pstoedit_4_00")]
17 #[cfg_attr(docsrs, doc(cfg(feature = "pstoedit_4_00")))]
18 pub formatGroup: ::std::os::raw::c_int,
19}
20#[test]
21fn bindgen_test_layout_DriverDescription_S() {
22 const UNINIT: ::std::mem::MaybeUninit<DriverDescription_S> = ::std::mem::MaybeUninit::uninit();
23 let ptr = UNINIT.as_ptr();
24 #[cfg(not(feature = "pstoedit_4_00"))]
25 assert_eq!(
26 ::std::mem::size_of::<DriverDescription_S>(),
27 56usize,
28 concat!("Size of: ", stringify!(DriverDescription_S))
29 );
30 #[cfg(feature = "pstoedit_4_00")]
31 assert_eq!(
32 ::std::mem::size_of::<DriverDescription_S>(),
33 64usize,
34 concat!("Size of: ", stringify!(DriverDescription_S))
35 );
36 assert_eq!(
37 ::std::mem::align_of::<DriverDescription_S>(),
38 8usize,
39 concat!("Alignment of ", stringify!(DriverDescription_S))
40 );
41 assert_eq!(
42 unsafe { ::std::ptr::addr_of!((*ptr).symbolicname) as usize - ptr as usize },
43 0usize,
44 concat!(
45 "Offset of field: ",
46 stringify!(DriverDescription_S),
47 "::",
48 stringify!(symbolicname)
49 )
50 );
51 assert_eq!(
52 unsafe { ::std::ptr::addr_of!((*ptr).explanation) as usize - ptr as usize },
53 8usize,
54 concat!(
55 "Offset of field: ",
56 stringify!(DriverDescription_S),
57 "::",
58 stringify!(explanation)
59 )
60 );
61 assert_eq!(
62 unsafe { ::std::ptr::addr_of!((*ptr).suffix) as usize - ptr as usize },
63 16usize,
64 concat!(
65 "Offset of field: ",
66 stringify!(DriverDescription_S),
67 "::",
68 stringify!(suffix)
69 )
70 );
71 assert_eq!(
72 unsafe { ::std::ptr::addr_of!((*ptr).additionalInfo) as usize - ptr as usize },
73 24usize,
74 concat!(
75 "Offset of field: ",
76 stringify!(DriverDescription_S),
77 "::",
78 stringify!(additionalInfo)
79 )
80 );
81 assert_eq!(
82 unsafe { ::std::ptr::addr_of!((*ptr).backendSupportsSubPaths) as usize - ptr as usize },
83 32usize,
84 concat!(
85 "Offset of field: ",
86 stringify!(DriverDescription_S),
87 "::",
88 stringify!(backendSupportsSubPaths)
89 )
90 );
91 assert_eq!(
92 unsafe { ::std::ptr::addr_of!((*ptr).backendSupportsCurveto) as usize - ptr as usize },
93 36usize,
94 concat!(
95 "Offset of field: ",
96 stringify!(DriverDescription_S),
97 "::",
98 stringify!(backendSupportsCurveto)
99 )
100 );
101 assert_eq!(
102 unsafe { ::std::ptr::addr_of!((*ptr).backendSupportsMerging) as usize - ptr as usize },
103 40usize,
104 concat!(
105 "Offset of field: ",
106 stringify!(DriverDescription_S),
107 "::",
108 stringify!(backendSupportsMerging)
109 )
110 );
111 assert_eq!(
112 unsafe { ::std::ptr::addr_of!((*ptr).backendSupportsText) as usize - ptr as usize },
113 44usize,
114 concat!(
115 "Offset of field: ",
116 stringify!(DriverDescription_S),
117 "::",
118 stringify!(backendSupportsText)
119 )
120 );
121 assert_eq!(
122 unsafe { ::std::ptr::addr_of!((*ptr).backendSupportsImages) as usize - ptr as usize },
123 48usize,
124 concat!(
125 "Offset of field: ",
126 stringify!(DriverDescription_S),
127 "::",
128 stringify!(backendSupportsImages)
129 )
130 );
131 assert_eq!(
132 unsafe {
133 ::std::ptr::addr_of!((*ptr).backendSupportsMultiplePages) as usize - ptr as usize
134 },
135 52usize,
136 concat!(
137 "Offset of field: ",
138 stringify!(DriverDescription_S),
139 "::",
140 stringify!(backendSupportsMultiplePages)
141 )
142 );
143 #[cfg(feature = "pstoedit_4_00")]
144 assert_eq!(
145 unsafe { ::std::ptr::addr_of!((*ptr).formatGroup) as usize - ptr as usize },
146 56usize,
147 concat!(
148 "Offset of field: ",
149 stringify!(DriverDescription_S),
150 "::",
151 stringify!(formatGroup)
152 )
153 );
154}
155#[cfg(not(feature = "pstoedit_4_00"))]
156pub const pstoeditdllversion: ::std::os::raw::c_uint = 301;
157#[cfg(feature = "pstoedit_4_00")]
158pub const pstoeditdllversion: ::std::os::raw::c_uint = 401;
159extern "C" {
160 pub fn pstoedit_plainC(
161 argc: ::std::os::raw::c_int,
162 argv: *const *const ::std::os::raw::c_char,
163 psinterpreter: *const ::std::os::raw::c_char,
164 ) -> ::std::os::raw::c_int;
165}
166extern "C" {
167 pub fn getPstoeditDriverInfo_plainC() -> *mut DriverDescription_S;
168}
169extern "C" {
170 pub fn clearPstoeditDriverInfo_plainC(ptr: *mut DriverDescription_S);
171}
172extern "C" {
173 #[cfg(feature = "pstoedit_4_01")]
174 #[cfg_attr(docsrs, doc(cfg(feature = "pstoedit_4_01")))]
175 pub fn loadpstoeditplugins_plainC(
176 progname: *const ::std::os::raw::c_char,
177 verbose: ::std::os::raw::c_int,
178 );
179}
180extern "C" {
181 #[cfg(feature = "pstoedit_4_00")]
182 #[cfg_attr(docsrs, doc(cfg(feature = "pstoedit_4_00")))]
183 pub fn unloadpstoeditplugins();
184}
185extern "C" {
186 pub fn getPstoeditNativeDriverInfo_plainC() -> *mut DriverDescription_S;
187}
188extern "C" {
189 pub fn pstoedit_checkversion(callersversion: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
190}