Skip to content

Commit 7e4d2ec

Browse files
authored
Merge pull request #157 from magnusuMET/feature/options-flags
Add flags to Options
2 parents 9e5ccdb + 5b7f5b0 commit 7e4d2ec

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

netcdf-sys/src/consts.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,13 @@ pub const NC_MPIPOSIX: c_int = {
122122

123123
#[cfg(feature = "4.6.2")]
124124
pub const NC_PERSIST: c_int = 0x4000;
125-
126125
pub const NC_INMEMORY: c_int = 0x8000;
127126

127+
#[cfg(feature = "4.9.0")]
128+
pub const NC_NOATTCREORD: c_int = 0x20000;
129+
#[cfg(feature = "4.9.0")]
130+
pub const NC_NODIMSCALE_ATTACH: c_int = 0x40000;
131+
128132
#[cfg(feature = "4.6.2")]
129133
pub const NC_MAX_MAGIC_NUMBER_LEN: usize = 8;
130134

netcdf/src/file.rs

+9
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ bitflags::bitflags! {
7171
const NETCDF4 = NC_NETCDF4;
7272
/// Read from memory
7373
const INMEMORY = NC_INMEMORY;
74+
/// Disable netcdf-4 (hdf5) attribute creation order tracking
75+
#[cfg(feature = "4.9.0")]
76+
const NOATTCREORD = NC_NOATTCREORD;
77+
/// Disable netcdf-4 (hdf5) attaching dimscales to variables
78+
#[cfg(feature = "4.9.0")]
79+
const NODIMSCALE_ATTACH = NC_NODIMSCALE_ATTACH;
80+
81+
// Unknown flags from C library
82+
const _ = !0;
7483
}
7584
}
7685

0 commit comments

Comments
 (0)