diff options
author | Jacob Smith <jake.smith@hdfgroup.org> | 2018-12-18 19:42:03 (GMT) |
---|---|---|
committer | Jacob Smith <jake.smith@hdfgroup.org> | 2018-12-18 19:42:03 (GMT) |
commit | 99bc714c4bd1a66b97b5e1d0bca671cf43616b42 (patch) | |
tree | a8e80a8ccf4570cf9a72d6ed2854fa4f1ade7259 /src/H5VLnative.c | |
parent | 5efc08a06d34ceab3de1766cb651ac8978deed16 (diff) | |
download | hdf5-99bc714c4bd1a66b97b5e1d0bca671cf43616b42.zip hdf5-99bc714c4bd1a66b97b5e1d0bca671cf43616b42.tar.gz hdf5-99bc714c4bd1a66b97b5e1d0bca671cf43616b42.tar.bz2 |
Move H5Fset_dset_no_attrs_hint VOL operations to native.
Move minimzied object header tests from separate file to test/ohdr.c
Some formatting changes.
Diffstat (limited to 'src/H5VLnative.c')
-rw-r--r-- | src/H5VLnative.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/H5VLnative.c b/src/H5VLnative.c index 2b0f01f..0d82f38 100644 --- a/src/H5VLnative.c +++ b/src/H5VLnative.c @@ -1614,17 +1614,6 @@ H5VL__native_file_get(void *obj, H5VL_file_get_t get_type, break; } - /* H5Fget_dset_no_attrs_hint */ - case H5VL_FILE_GET_MIN_DSET_OHDR_FLAG: - { - hbool_t *minimize = va_arg(arguments, hbool_t*); - f = (H5F_t*)obj; - if(NULL == f) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file") - *minimize = H5F_MIN_DSET_OHDR(f); - break; - } - default: HGOTO_ERROR(H5E_VOL, H5E_CANTGET, FAIL, "can't get this type of information") } /* end switch */ @@ -2123,6 +2112,18 @@ H5VL__native_file_optional(void *obj, hid_t H5_ATTR_UNUSED dxpl_id, void H5_ATTR } /* H5Fget_dset_no_attrs_hint */ + case H5VL_NATIVE_FILE_GET_MIN_DSET_OHDR_FLAG: + { + hbool_t *minimize = va_arg(arguments, hbool_t *); + *minimize = H5F_GET_MIN_DSET_OHDR(f); +#if 0 + if(H5F_get_min_dset_ohdr(f, (hbool_t)minimize) < 0) + HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, "cannot set file's dataset object header minimization flag") +#endif + break; + } + + /* H5Fset_dset_no_attrs_hint */ case H5VL_NATIVE_FILE_SET_MIN_DSET_OHDR_FLAG: { int minimize = va_arg(arguments, int); |