@@ -126,7 +126,7 @@ impl Default for H5O_hdr_info_t__mesg {
126
126
127
127
#[ repr( C ) ]
128
128
#[ derive( Debug , Copy , Clone ) ]
129
- pub struct H5O_info_t {
129
+ pub struct H5O_info1_t {
130
130
pub fileno : c_ulong ,
131
131
pub addr : haddr_t ,
132
132
pub type_ : H5O_type_t ,
@@ -137,36 +137,36 @@ pub struct H5O_info_t {
137
137
pub btime : time_t ,
138
138
pub num_attrs : hsize_t ,
139
139
pub hdr : H5O_hdr_info_t ,
140
- pub meta_size : H5O_info_t__meta_size ,
140
+ pub meta_size : H5O_info1_t__meta_size ,
141
141
}
142
142
143
- impl Default for H5O_info_t {
143
+ impl Default for H5O_info1_t {
144
144
fn default ( ) -> Self {
145
145
unsafe { mem:: zeroed ( ) }
146
146
}
147
147
}
148
148
149
149
#[ repr( C ) ]
150
150
#[ derive( Debug , Copy , Clone ) ]
151
- pub struct H5O_info_t__meta_size {
151
+ pub struct H5O_info1_t__meta_size {
152
152
pub obj : H5_ih_info_t ,
153
153
pub attr : H5_ih_info_t ,
154
154
}
155
155
156
156
#[ cfg( not( hdf5_1_12_0) ) ]
157
- impl Default for H5O_info_t__meta_size {
157
+ impl Default for H5O_info1_t__meta_size {
158
158
fn default ( ) -> Self {
159
159
unsafe { mem:: zeroed ( ) }
160
160
}
161
161
}
162
162
163
163
pub type H5O_msg_crt_idx_t = uint32_t ;
164
164
165
- pub type H5O_iterate_t = Option <
165
+ pub type H5O_iterate1_t = Option <
166
166
extern "C" fn (
167
167
obj : hid_t ,
168
168
name : * const c_char ,
169
- info : * const H5O_info_t ,
169
+ info : * const H5O_info1_t ,
170
170
op_data : * mut c_void ,
171
171
) -> herr_t ,
172
172
> ;
@@ -193,23 +193,41 @@ pub enum H5O_mcdt_search_ret_t {
193
193
pub type H5O_mcdt_search_cb_t =
194
194
Option < extern "C" fn ( op_data : * mut c_void ) -> H5O_mcdt_search_ret_t > ;
195
195
196
- #[ cfg( not( hdf5_1_10_3) ) ]
197
196
extern "C" {
198
- pub fn H5Oget_info ( loc_id : hid_t , oinfo : * mut H5O_info_t ) -> herr_t ;
199
- pub fn H5Oget_info_by_name (
200
- loc_id : hid_t , name : * const c_char , oinfo : * mut H5O_info_t , lapl_id : hid_t ,
197
+ #[ cfg_attr( hdf5_1_10_3, deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info2()" ) ) ]
198
+ #[ cfg_attr( not( hdf5_1_10_3) , link_name = "H5Oget_info" ) ]
199
+ pub fn H5Oget_info1 ( loc_id : hid_t , oinfo : * mut H5O_info1_t ) -> herr_t ;
200
+ #[ cfg_attr(
201
+ hdf5_1_10_3,
202
+ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_name2()" )
203
+ ) ]
204
+ #[ cfg_attr( not( hdf5_1_10_3) , link_name = "H5Oget_info_by_name" ) ]
205
+ pub fn H5Oget_info_by_name1 (
206
+ loc_id : hid_t , name : * const c_char , oinfo : * mut H5O_info1_t , lapl_id : hid_t ,
201
207
) -> herr_t ;
202
- pub fn H5Oget_info_by_idx (
208
+ #[ cfg_attr(
209
+ hdf5_1_10_3,
210
+ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_idx2()" )
211
+ ) ]
212
+ #[ cfg_attr( not( hdf5_1_10_3) , link_name = "H5Oget_info_by_idx" ) ]
213
+ pub fn H5Oget_info_by_idx1 (
203
214
loc_id : hid_t , group_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
204
- n : hsize_t , oinfo : * mut H5O_info_t , lapl_id : hid_t ,
215
+ n : hsize_t , oinfo : * mut H5O_info1_t , lapl_id : hid_t ,
205
216
) -> herr_t ;
206
- pub fn H5Ovisit (
207
- obj_id : hid_t , idx_type : H5_index_t , order : H5_iter_order_t , op : H5O_iterate_t ,
217
+ #[ cfg_attr( hdf5_1_10_3, deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_visit2()" ) ) ]
218
+ #[ cfg_attr( not( hdf5_1_10_3) , link_name = "H5Ovisit" ) ]
219
+ pub fn H5Ovisit1 (
220
+ obj_id : hid_t , idx_type : H5_index_t , order : H5_iter_order_t , op : H5O_iterate1_t ,
208
221
op_data : * mut c_void ,
209
222
) -> herr_t ;
210
- pub fn H5Ovisit_by_name (
223
+ #[ cfg_attr(
224
+ hdf5_1_10_3,
225
+ deprecated( note = "deprecated in HDF5 1.10.3, use H5Ovisit_by_name2()" )
226
+ ) ]
227
+ #[ cfg_attr( not( hdf5_1_10_3) , link_name = "H5Ovisit_by_name" ) ]
228
+ pub fn H5Ovisit_by_name1 (
211
229
loc_id : hid_t , obj_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
212
- op : H5O_iterate_t , op_data : * mut c_void , lapl_id : hid_t ,
230
+ op : H5O_iterate1_t , op_data : * mut c_void , lapl_id : hid_t ,
213
231
) -> herr_t ;
214
232
}
215
233
@@ -262,47 +280,26 @@ mod hdf5_1_10_3 {
262
280
use super :: * ;
263
281
264
282
extern "C" {
265
- pub fn H5Oget_info2 ( loc_id : hid_t , oinfo : * mut H5O_info_t , fields : c_uint ) -> herr_t ;
283
+ pub fn H5Oget_info2 ( loc_id : hid_t , oinfo : * mut H5O_info1_t , fields : c_uint ) -> herr_t ;
266
284
pub fn H5Oget_info_by_name2 (
267
- loc_id : hid_t , name : * const c_char , oinfo : * mut H5O_info_t , fields : c_uint ,
285
+ loc_id : hid_t , name : * const c_char , oinfo : * mut H5O_info1_t , fields : c_uint ,
268
286
lapl_id : hid_t ,
269
287
) -> herr_t ;
270
288
pub fn H5Oget_info_by_idx2 (
271
289
loc_id : hid_t , group_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
272
- n : hsize_t , oinfo : * mut H5O_info_t , fields : c_uint , lapl_id : hid_t ,
290
+ n : hsize_t , oinfo : * mut H5O_info1_t , fields : c_uint , lapl_id : hid_t ,
273
291
) -> herr_t ;
274
292
pub fn H5Ovisit2 (
275
- obj_id : hid_t , idx_type : H5_index_t , order : H5_iter_order_t , op : H5O_iterate_t ,
293
+ obj_id : hid_t , idx_type : H5_index_t , order : H5_iter_order_t , op : H5O_iterate1_t ,
276
294
op_data : * mut c_void , fields : c_uint ,
277
295
) -> herr_t ;
278
296
pub fn H5Ovisit_by_name2 (
279
297
loc_id : hid_t , obj_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
280
- op : H5O_iterate_t , op_data : * mut c_void , fields : c_uint , lapl_id : hid_t ,
281
- ) -> herr_t ;
282
- #[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info2()" ) ]
283
- pub fn H5Oget_info1 ( loc_id : hid_t , oinfo : * mut H5O_info_t ) -> herr_t ;
284
- #[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_name2()" ) ]
285
- pub fn H5Oget_info_by_name1 (
286
- loc_id : hid_t , name : * const c_char , oinfo : * mut H5O_info_t , lapl_id : hid_t ,
287
- ) -> herr_t ;
288
- #[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_idx2()" ) ]
289
- pub fn H5Oget_info_by_idx1 (
290
- loc_id : hid_t , group_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
291
- n : hsize_t , oinfo : * mut H5O_info_t , lapl_id : hid_t ,
292
- ) -> herr_t ;
293
- #[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Ovisit2()" ) ]
294
- pub fn H5Ovisit1 (
295
- obj_id : hid_t , idx_type : H5_index_t , order : H5_iter_order_t , op : H5O_iterate_t ,
296
- op_data : * mut c_void ,
297
- ) -> herr_t ;
298
- #[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Ovisit_by_name2()" ) ]
299
- pub fn H5Ovisit_by_name1 (
300
- loc_id : hid_t , obj_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
301
- op : H5O_iterate_t , op_data : * mut c_void , lapl_id : hid_t ,
298
+ op : H5O_iterate1_t , op_data : * mut c_void , fields : c_uint , lapl_id : hid_t ,
302
299
) -> herr_t ;
303
300
}
304
301
305
- #[ cfg( not( hdf5_1_10_5 ) ) ]
302
+ #[ cfg( not( hdf5_1_10_3 ) ) ]
306
303
pub use self :: {
307
304
H5Oget_info1 as H5Oget_info , H5Oget_info_by_idx1 as H5Oget_info_by_idx ,
308
305
H5Oget_info_by_name1 as H5Oget_info_by_name , H5Ovisit1 as H5Ovisit ,
@@ -319,25 +316,25 @@ extern "C" {
319
316
// in 1.10.5 those APIs were copied over to old names in order to be compatible with
320
317
// older library versions - so we can link to them directly again.
321
318
#[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info2()" ) ]
322
- pub fn H5Oget_info ( loc_id : hid_t , oinfo : * mut H5O_info_t ) -> herr_t ;
319
+ pub fn H5Oget_info ( loc_id : hid_t , oinfo : * mut H5O_info1_t ) -> herr_t ;
323
320
#[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_name2()" ) ]
324
321
pub fn H5Oget_info_by_name (
325
- loc_id : hid_t , name : * const c_char , oinfo : * mut H5O_info_t , lapl_id : hid_t ,
322
+ loc_id : hid_t , name : * const c_char , oinfo : * mut H5O_info1_t , lapl_id : hid_t ,
326
323
) -> herr_t ;
327
324
#[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_idx2()" ) ]
328
325
pub fn H5Oget_info_by_idx (
329
326
loc_id : hid_t , group_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
330
- n : hsize_t , oinfo : * mut H5O_info_t , lapl_id : hid_t ,
327
+ n : hsize_t , oinfo : * mut H5O_info1_t , lapl_id : hid_t ,
331
328
) -> herr_t ;
332
329
#[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Ovisit2()" ) ]
333
330
pub fn H5Ovisit (
334
- obj_id : hid_t , idx_type : H5_index_t , order : H5_iter_order_t , op : H5O_iterate_t ,
331
+ obj_id : hid_t , idx_type : H5_index_t , order : H5_iter_order_t , op : H5O_iterate1_t ,
335
332
op_data : * mut c_void ,
336
333
) -> herr_t ;
337
334
#[ deprecated( note = "deprecated in HDF5 1.10.3, use H5Ovisit_by_name2()" ) ]
338
335
pub fn H5Ovisit_by_name (
339
336
loc_id : hid_t , obj_name : * const c_char , idx_type : H5_index_t , order : H5_iter_order_t ,
340
- op : H5O_iterate_t , op_data : * mut c_void , lapl_id : hid_t ,
337
+ op : H5O_iterate1_t , op_data : * mut c_void , lapl_id : hid_t ,
341
338
) -> herr_t ;
342
339
}
343
340
0 commit comments